Menu
SDK steps (session token)
Get session config
GET
/v1/sessions/{id}/configWhat the flow has to show: modules, liveness_mode, branding, the platform-registered requester name, consent_business (the controller named in the consent text; null = the generic phrase), model_improvement_offer (whether the consent text carries the model improvement sentence, see Get consent text), environment, and the documents offered per country (document_options, keyed by ISO alpha-3, "*" = any other country).
Authorization: Bearer JWT (session token, SDK)
Send value as document_type and the country as document_country to Submit document details; requires_back tells you whether to capture the back.
Request
curl https://api.idotta.com/v1/sessions/{id}/config \
-H "Authorization: Bearer <access_token>"JSON
// Response 200 (abridged)
{
"modules": ["document", "liveness"],
"liveness_mode": "active",
"environment": "sandbox",
"default_lang": "en",
"document_options": {
"*": [ { "kind": "id_card", "value": "id_card", "requires_back": true },
{ "kind": "passport", "value": "passport", "requires_back": false } ],
"GHA": [ { "kind": "id_card", "value": "gh_id_card", "requires_back": true }, … ]
},
"countries": [ { "alpha3": "GHA", "alpha2": "GH" }, … ]
}