Get specific data from your files using a template
POST/v1/extract
Extract specific information from your files (like names, dates, amounts) by providing a template (JSON schema) of what you want to find.
Request
- application/json
Body
required
List of file URLs to process for extraction. Supports two URL types:
1. Public URLs - accessible from the internet
2. `nomic://` prefixed URLs - obtained from the `/upload` endpoint
JSON schema defining the structure and data types for the extracted information. This schema guides the AI model to extract specific fields and maintain consistent output format.
Custom system prompt to guide the AI extraction process across the entire file. Use this to provide specific instructions, context, or constraints for how information should be extracted and formatted according to your requirements.
Responses
- 201
- 403
- 422
The task id of the extraction task.
- application/json
- Schema
- Example (from schema)
Schema
The id of the task.
{
"task_id": "string"
}
The user is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}