Get Spreadsheet Job
client.beta.sheets.get(stringspreadsheetJobID, SheetGetParams { include_results, organization_id, project_id } query?, RequestOptionsoptions?): SheetsJob { id, config, created_at, 10 more }
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}
Get a spreadsheet parsing job.
When include_results=True (default), the response will include extracted regions and results if the job is complete, eliminating the need for a separate /results call.
Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Parameters
spreadsheetJobID: string
Returns
Get Spreadsheet Job
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const sheetsJob = await client.beta.sheets.get('spreadsheet_job_id');
console.log(sheetsJob.id);{
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}Returns Examples
{
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}