Menu
SDK steps (session token)
Submit document details
/v1/sessions/{id}/access-keysStarts the document step with the chosen document type and country (and, on the MRZ path, the MRZ lines). The session must be created or document_pending; you can resend it to change the choice until images are uploaded.
Authorization: Bearer JWT (session token, SDK)
Always send document_type (a value from Get session config) and document_country (ISO alpha-3): a calibrated country profile is used where we have one, otherwise the country-independent ICAO profile. 422: unknown type, wrong MRZ check digits, document_type_not_allowed (not in the session's document_types), document_type_not_supported_for_country. 409: images already uploaded, or consent.required (Record consent first). 429: per-IP daily limit (this request counts as the end user's IP).
curl -X POST https://api.idotta.com/v1/sessions/{id}/access-keys \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"method": "manual",
"document_type": "passport",
"document_country": "KEN"
}'// Photo path
{ "method": "manual", "document_type": "passport", "document_country": "KEN" }
// MRZ path (TD1 = 3 × 30 characters, TD3 passport = 2 × 44)
{ "method": "mrz", "document_type": "id_card",
"mrz_line1": "I<UTOD231458907<<<<<<<<<<<<<<<",
"mrz_line2": "7408122F1204159UTO<<<<<<<<<<<6",
"mrz_line3": "ERIKSSON<<ANNA<MARIA<<<<<<<<<<" }
// Response 200
{ "status": "document_pending" }