curl --request POST \
--url https://extraction-api.nanonets.com/api/v2/extract/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "file://a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"extraction_config": {
"output_format": "json",
"json_options": [
"invoice_number",
"date",
"total"
]
}
}
'{
"success": true,
"message": "<string>",
"record_id": "<string>",
"file_id": "<string>",
"config_id": "<string>",
"status": "completed",
"result": {
"content": "<string>",
"elements": [
{}
],
"overall_confidence": 50,
"page_confidence": {},
"confidence_source": "<string>"
},
"processing_time": 123,
"filename": "<string>",
"output_format": "<string>",
"file_size": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Document Extraction
Asynchronous Extraction
Queue one or more documents for extraction. Accepts a single input or a list of up to 50 inputs for batch processing.
Single input returns a V2Response with record_id. List input returns a BatchResponse with per-item status.
Tip: You can save and reuse extraction settings by creating a config via Create Config. Pass the returned
config_idinstead of repeatingextraction_configeach time.
POST
/
api
/
v2
/
extract
/
async
curl --request POST \
--url https://extraction-api.nanonets.com/api/v2/extract/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "file://a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"extraction_config": {
"output_format": "json",
"json_options": [
"invoice_number",
"date",
"total"
]
}
}
'{
"success": true,
"message": "<string>",
"record_id": "<string>",
"file_id": "<string>",
"config_id": "<string>",
"status": "completed",
"result": {
"content": "<string>",
"elements": [
{}
],
"overall_confidence": 50,
"page_confidence": {},
"confidence_source": "<string>"
},
"processing_time": 123,
"filename": "<string>",
"output_format": "<string>",
"file_size": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key as Bearer token: Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Job(s) queued
- Option 1
- Option 2
Job ID for retrieving results
file://<uuid> reference
config://<uuid> reference
Available options:
completed, processing, failed Show child attributes
Show child attributes
Time in seconds
Size in bytes