Menu

SDK steps (session token)

Record consent

POST/v1/sessions/{id}/consent

Records that the end user accepted the consent text (their tap on the button named in it). Call it before any capture: without it every evidence call (Submit document details, Upload document images, NFC, Start/Submit liveness) returns 409 with code: consent.required. Our SDKs call it for you.

Authorization: Bearer JWT (session token, SDK)

Idempotent: a second call returns the first record. The record (time, version, language and, from version 2026-12-02, business: the controller the consent was given to, by its registered name at that time, null if none was registered and the generic phrase was shown) is kept as proof of consent; it holds no personal data about the end user. 422 for a malformed version or language.

Request
curl -X POST https://api.idotta.com/v1/sessions/{id}/consent \
  -H "Authorization: Bearer <access_token>"
JSON
// Request: the version and language you showed (from Get consent text)
{ "text_version": "2026-12-02", "language": "en" }
// + only if the text you showed carried the model improvement sentence (model_improvement.offered):
// "model_improvement": true, "model_improvement_text_version": "2026-12-02"

// Response 200
{ "consent": { "given_at": "2026-12-02T10:00:00+00:00", "text_version": "2026-12-02", "language": "en", "business": "Acme Ltd" } }