Skip to content
Framework Docs

Get Result Region

PresignedUrl beta().sheets().getResultTable(SheetGetResultTableParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}/regions/{region_id}/result/{region_type}

Generate a presigned URL to download a specific extracted region. Experimental: not production-ready and subject to change.

ParametersExpand Collapse
SheetGetResultTableParams params
String spreadsheetJobId
String regionId
Optional<RegionType> regionType
TABLE("table")
EXTRA("extra")
CELL_METADATA("cell_metadata")
Optional<Long> expiresAtSeconds
Optional<String> organizationId
Optional<String> projectId
ReturnsExpand Collapse
class PresignedUrl:

Schema for a presigned URL.

LocalDateTime expiresAt

The time at which the presigned URL expires

formatdate-time
String url

A presigned URL for IO operations against a private file

minLength1
formaturi
Optional<FormFields> formFields

Form fields for a presigned POST request

Get Result Region

package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.beta.sheets.SheetGetResultTableParams;
import com.llamacloud_prod.api.models.files.PresignedUrl;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        SheetGetResultTableParams params = SheetGetResultTableParams.builder()
            .spreadsheetJobId("spreadsheet_job_id")
            .regionId("region_id")
            .regionType(SheetGetResultTableParams.RegionType.TABLE)
            .build();
        PresignedUrl presignedUrl = client.beta().sheets().getResultTable(params);
    }
}
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "url": "https://example.com",
  "form_fields": {
    "foo": "string"
  }
}
Returns Examples
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "url": "https://example.com",
  "form_fields": {
    "foo": "string"
  }
}