Files APIs
Extract Structured Data - Async Start
Starts an asynchronous operation to extract structured data from a file. Supported file types are image, pdf (more coming soon!). It accepts the file and requested schema for the data to be extracted. It responds with an ID to track the operation status and retrieve the result.
POST
/
{workspaceId}
/
files
/
extract
/
structuredData
/
start
Authorizations
x-api-key
string
headerrequiredAPI Key used to authenticate your requests. How to create one.
Path Parameters
workspaceId
string
requiredYour workspace ID. How to find it?
Body
application/json
dataSchema
object
requiredThe schema (in JSONSchema) to which the extracted data should conform to. More about JSONSchema
file
object
requiredImage file data to extract from
prompt
string
Prompt given to the AI model to help with extraction.
strategy
object
The strategy to extract structured data from a file. Includes the model and type of extraction.
Response
201 - application/json
operationId
string
requiredOperation ID
status
enum<string>
requiredOperation status.
Available options:
pending