API reference

API reference

The AveTrust REST API — base URL, authentication and endpoints.

Base URL — https://api.avetrust.net/api/v1 (production) or https://api-test.avetrust.net/api/v1 (test).

Authentication — the X-Api-Key header on every request. See Authentication.

Endpoints

MethodPathDescription
POST/sessionsCreate a verification session
GET/sessions/{id}Retrieve a session summary
GET/sessions/{id}/resultDetailed result (checks + decision)
GET/sessionsList sessions (paginated, filter by status)
POST/sessions/{id}/sendSend the hosted link (EMAIL / SMS)
POST/sessions/{id}/decisionDecide (approved / rejected)
GET/sessions/eventsReal-time SSE stream (text/event-stream)

Create — body

{
  "checks": ["DOCUMENT", "LIVENESS", "FACE_MATCH"],
  "decisionMode": "AUTO",
  "externalUserId": "user_42",
  "callbackUrl": "https://your-app.example/kyc/webhook",
  "simulate": "approved"
}

simulate is honored only with a sk_test_ key. Defaults: checks["DOCUMENT","LIVENESS"], decisionModeAUTO.

Create — response

{
  "sessionId": "b0e78b78-…",
  "sessionToken": "st_…",
  "status": "PENDING",
  "expiresAt": "2026-08-05T12:00:00Z",
  "hostedUrl": "https://verify.avetrust.net/s/st_…"
}

Prefer an SDK

The SDKs wrap these endpoints with typed models and webhook signature verification. A full OpenAPI spec is coming.

Next steps

On this page