Parse

Get the status and result of an async parse job

GET
/api/v1/parse/{id}

Get the status and result of an async parse job

Poll for the status and result of an async parse job submitted via POST /api/v1/parse with options.async=true. Returns the same envelope shape as the synchronous parse endpoint once status is completed.

curl https://api.context212.com/api/v1/parse/parse_Kg \  -H 'Authorization: Bearer $TOKEN'

Recommended polling cadence: 1s for the first 10s, then 5s, capped at 30s. Stop polling once status is in {completed, failed}.

Authorization

bearerAuth
AuthorizationBearer <token>

Console session token (Authorization: Bearer <session>) or product API key (Authorization: Bearer <api-key> or x-api-key). Session tokens are validated via Better Auth get-session; API keys against the shared database.

In: header

Path Parameters

id*Id

Public parse job id (e.g. parse_Kg) returned by POST /api/v1/parse with options.async=true. Malformed or unknown tokens return 404.

Header Parameters

authorization?string|null
x-api-key?string|null

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/parse/0"
{  "id": "string",  "status": "string",  "created_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "processing_time_ms": 0,  "document": {    "filename": "string",    "page_count": 0,    "file_size_bytes": 0,    "mime_type": "string"  },  "result": {    "pages": [      {        "index": 0,        "markdown": "string"      }    ]  },  "usage": {    "pages_processed": 0  },  "progress": {    "percentage": 0,    "pages_processed": 0  },  "error": {    "message": "string"  }}