Sessions

A session represents a single identity verification attempt for one end-user.

Create a session

POST /v1/sessions · Header: x-api-key

FieldTypeRequiredDescription
countrystringISO 3166-1 alpha-3 (e.g. COD)
flow"user" | "business"Flow type
tier"tier1" | "tier2" | "tier3"Assurance level
external_user_referencestringYour internal user ID
redirect_urlstringPost-verification redirect
metadataobjectCustom key-value data
POST
/v1/sessions
curl -X POST http://localhost:3002/v1/sessions \ -H "x-api-key: sk_sandbox_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "country": "COD", "flow": "user", "tier": "tier2", "external_user_reference": "user_123" }'

Response

{
  "session_id": "ses_01hzabc123",
  "verify_url": "http://localhost:3005/verify/tok_xyz",
  "status": "created",
  "required_steps": ["consent", "id_document", "liveness"],
  "expires_at": "2026-06-01T12:00:00Z"
}

Other endpoints

MethodPathDescription
GET/v1/sessionsList sessions
GET/v1/sessions/:idGet session
DELETE/v1/sessions/:idCancel session
POST/v1/sessions/:id/submitSubmit for processing
GET/v1/sessions/:id/resultGet decision

Session statuses

StatusDescription
createdInitialized, awaiting user
collectingUser started the flow
processingAI review in progress
approvedVerified
rejectedFailed
review_requiredManual review
expiredTTL exceeded
cancelledCancelled by tenant

Was this page helpful?