Retrieve Result
GET
/v1/parse/:idFetch a previously parsed result by its ID. Results are stored for the duration specified by your plan's data retention period.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The parse result ID returned from POST /v1/parse |
Example
cURL
curl https://api.dokai.dev/v1/parse/parse_abc123 \
-H "Authorization: Bearer dk_live_your_api_key"Response
Returns the same response shape as the parse endpoint.
200 OK
{
"id": "parse_abc123",
"status": "success",
"document_type": "identity_card",
"document_brand": "mykad",
"data": {
"full_name": "AHMAD BIN ABDULLAH",
"id_number": "880503-14-5234",
"date_of_birth": "1988-05-03",
"gender": "M"
},
"metadata": {
"processing_time_ms": 1420,
"ocr_confidence": 0.95,
"extraction_confidence": 0.97
},
"created_at": "2026-03-06T10:30:00Z",
"expires_at": "2026-03-13T10:30:00Z"
}Expired results
When a result has been purged after its retention period, the API returns 410 Gone.
410 Gone
{
"error": {
"code": "result_expired",
"message": "This parse result has expired and been deleted.",
"type": "gone"
}
}Tip: Data retention depends on your plan. Free plans retain results for 7 days, while paid plans offer up to 90 days. Check Usage & Billing for details.