Documents
Download result
Retrieve the status of a document, or download the processed
Download result
cURL
curl --request GET \
--url 'https://api.handwritingocr.com/v2/documents/abcde12345?format=SOME_STRING_VALUE' \
--header 'Authorization: Bearer your-api-token' {
"id": "abc123",
"status": "processed",
"action": "transcribe",
"created_at": "2024-03-15T14:30:00Z",
"updated_at": "2024-03-15T14:35:00Z"
} Retrieve the status of a document, or download the processed results. The format extension is optional — if not provided, returns a JSON status response. If the format extension is provided, downloads the processed document in that format.
Image thumbnail URLs are provided for each page. These images must be authenticated with your API token to download.
Webhooks
We strongly encourage using a webhook instead of polling this endpoint repeatedly. Configure a webhook in the user dashboard.
Headers
- Authorization string required header
Bearer your-api-token - Accept string required header
application/json
Path parameters
- id string required path
The document's unique identifier.
Query parameters
- format string query
Output format passed as a URL extension on the path. Varies by action:
txt,docx,xlsx,csv,json.
Response codes
HTTP status- 200
Returns the processed result.
- 202
Accepted — document is still being processed.
- 400
Bad Request — invalid format for action type.
- 401
Unauthorized — invalid or missing API token.
- 403
Forbidden — no permission to access document.
- 404
Not found — document not found.
- 429
Too many requests — rate limited.
- 500
Server Error — error preparing file for download.