curl --request GET \
--url https://api.tensorlake.ai/documents/v1/jobs/{job_id} \
--header 'Authorization: Bearer <token>'
{
"chunks": [
"<string>"
],
"document": "<any>",
"extractSettings": null,
"fileId": "<string>",
"fileName": "<string>",
"jobId": "<string>",
"jobType": "extract",
"message": "<string>",
"outputs": null,
"parseSettings": null,
"settings": null,
"status": "failure",
"structuredOutput": "<any>",
"tasksCompleted": 123,
"tasksTotal": 123
}
Retrieve the output of a job.
This API call returns a JSON object containing the results of the job.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The identifier of the job given at creation. Starts with job-
Available options:
extract
,
parse
Available options:
failure
,
pending
,
processing
,
successful
Available options:
vlm
,
object_detection
The model provider to use for structured data extraction.
Available options:
tensorlake
,
claude-3-5-sonnet-latest
,
gpt-4o-mini
Available options:
tsr
,
vlm
outputs.structured_data.pages
outputs.structured_data.pages.json_result
outputs.structured_data.pages.page_number
parseSettings.figureSummarization
parseSettings.formDetectionMode
Available options:
vlm
,
object_detection
Output mode determines the format of the output.
Available options:
json
,
markdown
parseSettings.tableOutputMode
Available options:
json
,
markdown
,
html
parseSettings.tableParsingStrategy
Available options:
tsr
,
vlm
parseSettings.tableSummarization
parseSettings.chunkStrategy
Chunking strategy determines how the document is chunked into smaller pieces.
This is only supported in Markdown mode.
Available options:
page
,
section
,
fragment
parseSettings.figureSummarizationPrompt
parseSettings.tableSummarizationPrompt
settings.formDetectionMode
Available options:
vlm
,
object_detection
Available options:
json
,
markdown
,
html
settings.tableParsingStrategy
Available options:
tsr
,
vlm
Chunking strategy determines how the document is chunked into smaller pieces.
This is only supported in Markdown mode.
Available options:
page
,
section
,
fragment
settings.figureSummarizationPrompt
The model provider to use for structured data extraction.
Available options:
tensorlake
,
claude-3-5-sonnet-latest
,
gpt-4o-mini
settings.tableSummarizationPrompt