Menu

Integration

Creating a session

Every verification starts with a session, created from your backend. Every field is optional; the full list is on Create session.

curl -X POST https://api.idotta.com/v1/sessions \
  -H "X-Api-Key: idv_test_XXXX" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2e0a-0d7b-4c43-9f5e-2b9d1a7c8e44" \
  -d '{
    "applicant_external_id": "user-42",
    "modules": [
      "document",
      "liveness"
    ],
    "expected_identity": {
      "first_name": "Ama",
      "last_name": "Mensah",
      "date_of_birth": "1990-04-12"
    }
  }'

Response (201)

JSON
{
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "access_token": "eyJ…",
  "sdk_url": "https://verify.idotta.com/session/550e8400-…?token=eyJ…",
  "status": "not_started",
  "status_label": "Not Started",
  "step": "created",
  "environment": "sandbox",
  "expires_at": "2026-09-20T13:00:00Z"
}
  • applicant_external_id (recommended): your id for the user. Repeat verifications link to one applicant record, which reuse, the applicant endpoints and erasure work on.
  • expected_identity: who you expect. If the document belongs to someone else the session goes to review instead of being approved: it catches a link forwarded to another person.
  • reuse_if_verified: true: a user approved in the last 180 days gets approved at once, without capturing anything again.
  • Idempotency-Key header: retry a timed-out create safely; the same key returns the same session.
  • delivery: we email/SMS/WhatsApp the link for you (paid modules); otherwise send sdk_url yourself.

The access_token lives 15 min and the session 60 min. If the user comes back later, issue a new link with POST /v1/sessions/{id}/sdk-link.