curl --request POST \
--url https://extraction-api.nanonets.com/api/v2/parse/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "file://a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"parse_config": {
"output_format": "markdown"
}
}
'
{
"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": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Document Parsing
Synchronous Parse
Parse a document into Markdown or HTML synchronously. Returns the full result immediately.
Provide a file://<uuid> URI (from file upload) or a public URL as input. Optionally reference a saved config or provide inline parameters.
Tip: You can save and reuse parse settings by creating a config via Create Config. Pass the returned
config_idinstead of repeatingparse_configeach time.
POST
/
api
/
v2
/
parse
/
sync
curl --request POST \
--url https://extraction-api.nanonets.com/api/v2/parse/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "file://a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"parse_config": {
"output_format": "markdown"
}
}
'
{
"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": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key as Bearer token: Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Parse completed
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