Getting Started
Parse your first document in under 5 minutes. Follow the steps below to get up and running.
1
Create an account
Sign up at app.dokai.dev and create an organization. Each organization gets its own API keys, usage quotas, and billing.
2
Get an API key
Navigate to Developers → API Keys in the dashboard and create a new key. You'll get a key starting with dk_test_ (sandbox) or dk_live_ (production).
Test keys return mock data and don't count toward your quota. Start with a test key while integrating.
3
Parse a document
Send a document image to the parse endpoint. The API accepts JPEG, PNG, and WebP files up to 10 MB.
curl -X POST https://api.dokai.dev/v1/parse \
-H "Authorization: Bearer dk_test_your_api_key" \
-F "file=@mykad.jpg" \
-F "document_type=identity_card" \
-F "document_brand=mykad"4
Get structured data
The API returns a JSON object with extracted fields, confidence scores, and processing metadata.
Response
{
"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",
"address": "42 JALAN MERDEKA, 50100 KUALA LUMPUR"
},
"metadata": {
"processing_time_ms": 1420,
"ocr_confidence": 0.95,
"extraction_confidence": 0.97
}
}Next steps
- Authentication — Learn about API key types and security best practices
- Parse endpoint — Full parameter reference and response schema
- Error handling — Understand error codes and rate limiting