Skip to Content

Get classification status and result

GET
/v1/documents/{document_id}/classifications/{classification_id}

Read this run's immutable schema, current status, matched categories and evaluated page numbers. Empty categories mean no match only when completed. Requires results:read. Recovery webhooks do not signal classification completion.

Authorization

Bearer
headerAuthorizationBearer <token>

Send your API key in the Authorization header: Bearer <api_key>.

Path Parameters

document_id*string
classification_id*string

Response Body

Classification status and result

application/json
  1. response
id*string
status*string
Value in"pending""processing""completed""failed"
document_id*string

Null until upload confirmation creates the Document.

schema*array<>
Items1 <= items <= 20
categories*array<string>|

Null until completed. An empty array is a successful classification with no matches.

evaluated_pages*array<>

Original page numbers evaluated. Sampled or partially recovered content cannot establish categories on other pages.

detail*|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
completed_at*|
Formatdate-time
Example Response
{  "id": "string",  "status": "pending",  "document_id": "string",  "schema": [    {      "category": "string",      "criteria": [        "string"      ]    }  ],  "categories": [    "string"  ],  "evaluated_pages": [    1  ],  "detail": {    "code": "classification_failed",    "message": "string"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z"}