Authorizations
Body
JSON request to create an extract task
The schema to be used for the extraction.
The file to be extracted. Supported inputs:
ch://files/{file_id}
: Reference to an existing file. Upload via the Files APIhttp(s)://...
: Remote URL to fetchdata:*;base64,...
or raw base64 stringtask_id
: Reference to an existingparse
task.
Optional configuration for the parse
task.
Can not be used if file
is a task_id
.
The system prompt to be used for the extraction.
The number of seconds until task is deleted. Expired tasks can not be updated, polled or accessed via web interface.
The name of the file to be extracted. If not set a name will be generated.
Can not be provided if the file
is a task_id
.
Response
Task created successfully.
The date and time when the task was created and queued.
Information about the input file.
A message describing the task's status or any errors that occurred.
The status of the task.
Starting
, Processing
, Succeeded
, Failed
, Cancelled
The unique identifier for the task.
Parse
, Extract
Version information for the task.
The date and time when the task will expire.
The date and time when the task was finished.
The presigned URL of the input file.
Deprecated use file_info.url
instead.
The processed results of a document extraction task.
Shapes:
results
: JSON matching the user-provided schema.citations
: mirror ofresults
; only leaf positions (primitive or array-of-primitives) contain aVec<Citation>
supporting that field.metrics
: mirror ofresults
; only leaf positions contain aMetrics
object for that field.
The ID of the source parse
task that was used for extraction
The date and time when the task was started.
The presigned URL of the task.