Didit

App · 14 actions

Create verification sessions, check decisions, review session activity and manage sandbox tests.

Actions

ActionWhat it does
Create sessionCreate session.
Delete sessionDelete session.
Get session decisionGet session decision.
Get session webhook deliveryGet session webhook delivery.
Get workflowGet workflow.
List session aml screeningsList session aml screenings.
List session eventsList session events.
List session overridesList session overrides.
List session reviewsList session reviews.
List session webhook deliveriesList session webhook deliveries.
List sessionsList sessions.
List workflowsList workflows.
Simulate sessionSimulate session.
Update session statusUpdate session status.

Create session

Create session.

Inputs

Idempotency keyidempotency_keytext
Use the same key when retrying the same operation.
Workflowverification_workflow_idtextRequired
Stable identifier of the workflow that defines which verification steps the session will run. Workflows are created and managed in the [Workflows](/console/workflows) page of the Console. The `workflow_id` also implicitly selects whether the session is KYC or KYB.
Vendor datavendor_datatext
A unique identifier for the user being verified, such as a UUID, email, or internal user ID. This field is used for: (1) **User grouping** , sessions with the same vendor_data are linked to the same user profile in the Users tab. (2) **Cross-session duplicate detection** , when checking for duplicated faces, documents, phone numbers, emails, IP addresses, or device fingerprints, sessions with the same vendor_data are treated as the same user and excluded f
Callbackcallbacktext
URL to redirect the user to after verification completes. Didit automatically appends `verificationSessionId` and `status` (Approved, Declined, In Review) as query parameters. Custom URL schemes (e.g. `myapp://`) are supported for mobile callbacks. If omitted, the workflow's default `callback_url` is used. When the application has allowed domains (`allowed_domains` on `PATCH /v3/webhook/`), an `http` or `https` callback must be on one of those origins (sam
Callback methodcallback_methodtext
Determines which device should handle the redirect to the provided callback URL. Use `initiator` to redirect only the device that started the flow, `completer` for the device that finishes it, or `both` to allow either device to trigger the callback. If you ever notice the callback not triggering reliably, we recommend setting this value to `both`.One of: initiator, completer, both. Default: initiator.
Metadatametadataobject
Arbitrary JSON stored with the session and echoed back in the response and webhooks. Any JSON value is accepted (object, string, number, array), but a JSON object of key/value pairs is recommended. Not shown to the end user. Use it to pass your own correlation ids, A/B variants, or business context.
Tagstagslist
Tags added to the session when it is created, by name. Up to 10, each up to 50 characters. Names are case-insensitive and stored in upper case. A name that does not exist yet in the application is created as a new tag. The tags show on the session in the console, where you can filter by them.
Session expiration timesession_expiration_timenumber
Seconds this session's link stays valid, overriding the workflow's `session_expiration_time` for this session only. Whole number between 3600 (1 hour) and 2419200 (4 weeks), the same bounds as the workflow setting. Omit it to use the workflow's setting. A value outside the range, or one that is not a whole number, returns `400` on `session_expiration_time`. A session created by this call takes this lifetime from creation. When the call returns an existingFrom 3600 to 2419200.
Languagelanguagetext
Language code (ISO 639-1) for the verification process interface. Controls the language displayed to the end user during verification. If not provided, the browser's language will be automatically detected and used. Check all the supported languages [here](/integration/supported-languages).One of: en, ar, bg, bn, bs, ca, cnr, cs, da, de, and 44 more.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "callback": "example",
    "expires_at": "example",
    "metadata": null,
    "session_id": "example",
    "session_number": 1,
    "session_token": "example",
    "status": "Not Started",
    "tags": [],
    "url": "example",
    "vendor_data": "example",
    "workflow_id": "example",
    "workflow_version": 1
  }
}

Delete session

Delete session.

Inputs

Session IDsession_idtextRequired
UUID (`session_id`) of the User Verification (KYC) or Business Verification (KYB) session to delete, as returned when the session was created. Must be a canonical hyphenated UUID , a non-UUID value does not match the route and returns `404`.
Idempotency keyidempotency_keytext
Use the same key when retrying the same operation.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "biometric_template_expires_at": "example",
    "biometric_template_uuid": "example",
    "deleted_child_verifications": 1,
    "face_retention_outcome": "retained_with_user",
    "session_id": "example",
    "session_number": 1
  }
}

Get session decision

Get session decision.

Inputs

Session IDsession_idtextRequired
UUID of the verification session whose decision you want to retrieve. This is the `session_id` returned by `POST /v3/session/`. The same path works for both User Verification (KYC) and Business Verification (KYB) sessions , the server resolves the id against both session types. **Must be a valid UUID.** The route only matches well-formed UUIDs, so a malformed value is rejected by the URL router before any application code runs and the response is a `404` *
Includeincludetext
Comma-separated list of extra payload sections. Supported values: `events` and `resubmissions`, alone or together (`events,resubmissions`). When `include=events` is passed, the response additionally contains the session event timeline (`events`, including the `WORKFLOW_BRANCH_EVALUATED` / `WORKFLOW_STATUS_NODE_REACHED` routing events described on the Retrieve Session page), the full activity log (`activity_reviews`), blocklist flags (`blocklisted`), a per-One of: events, resubmissions, events,resubmissions.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "aml_screenings": [],
    "assignee": {
      "assigned_at": "example",
      "email": "example"
    },
    "bank_verifications": [],
    "biometric_consent": {
      "declared_state": "example",
      "decline_reason": "BIOMETRIC_CONSENT_DECLINED",
      "declined_at": "example",
      "detected_city": "example",
      "detected_country_code": "example",
      "detected_ip_address": "example",
      "detected_state": "example",
      "document_state": "example",
      "face_data_deleted_at": "example",
      "given_at": "example",
      "ip_address": "example",
      "ip_city": "example",
      "ip_country_code": "example",
      "ip_state": "example",
      "jurisdictions": [],
      "locale": "example",
      "node_id": "example",
      "policy_url": "example",
      "reason": "BIOMETRIC_CONSENT_UNSUPPORTED_SDK",
      "required": false,
      "retention_months": 1,
      "status": "not_required",
      "step": "example",
      "text_hash": "example",
      "text_version": "example",
      "trigger": "declared_state",
      "user_agent": "example"
    },
    "biometric_retention": {
      "deletes_at": "example",
      "jurisdictions": []
    },
    "callback": "example",
    "contact_details": {
      "email": "example",
      "email_lang": "example",
      "phone": "example",
      "send_notification_emails": false
    },
    "created_at": "example",
    "database_validation_not_performed_reason": {
      "code": "example",
      "message": "example"
    },
    "database_validations": [],
    "decision_trace": {
      "actor": {
        "actor_type": "example",
        "user": "example"
      },
      "automatic_status": "example",
      "decided_at": "example",
      "decided_by": "manual",
      "status": "example",
      "status_warnings": [],
      "terminal_node_id": "example",
      "warning_counts": {}
    },
    "document_ai_documents": [],
    "document_verifications": [],
    "email_verifications": [],
    "environment": "live",
    "expected_details": {
      "address": "example",
      "company_name": "example",
      "country": "example",
      "date_of_birth": "example",
      "expected_document_types": [],
      "first_name": "example",
      "gender": "M",
      "id_country": "example",
      "identification_number": "example",
      "ip_address": "example",
      "last_name": "example",
      "nationality": "example",
      "poa_country": "example",
      "registration_number": "example",
      "registry_country": "example"
    },
    "expires_at": "example",
    "face_matches": [],
    "features": [],
    "fraud_check": {},
    "full_session_video": "example",
    "full_session_video_recorded_at": "example",
    "geolocation_attempts": [],
    "geolocation_checks": [],
    "id_verifications": [],
    "investigator": {
      "automated": false,
      "confidence": "high",
      "decided_by": "investigator",
      "decision": {
        "action": "approve",
        "actor_email": "example",
        "actor_name": "example",
        "agreed": false,
        "billed": false,
        "decided_at": "example",
        "decided_by": "investigator",
        "final_status": "example",
        "original_outcome": {
          "action": "example",
          "decided_at": "example",
          "final_status": "example"
        },
        "outcome": "accepted",
        "override_category": "missing_context",
        "override_reason": "example",
        "overrides": []
      },
      "is_open": false,
      "prepared_at": "example",
      "queue": "kyc",
      "ready_to_accept": false,
      "recommendation": "approve",
      "recommendation_detail": "example",
      "run_id": "example",
      "stage": "shadow",
      "status": "running",
      "summary": "example"
    },
    "ip_analyses": [],
    "key_people_checks": [],
    "linked_records": {
      "earlier_verifications": {
        "count": 1,
        "vendor_user_id": "example"
      },
      "networks": {
        "count": 1,
        "dismissed": 1,
        "items": [],
        "open": 1
      },
      "same_face": {
        "best_match": {
          "session_id": "example",
          "session_number": 1,
          "similarity_percentage": 1.0,
          "vendor_user_id": "example"
        },
        "count": 1
      }
    },
    "liveness_checks": [],
    "metadata": {},
    "nfc_skip_reason": "USER_SKIPPED",
    "nfc_verifications": [],
    "phone_verifications": [],
    "poa_verifications": [],
    "questionnaire_responses": [],
    "registry_checks": [],
    "resubmissions": [],
    "reviews": [],
    "sandbox_scenario": "example",
    "session_id": "example",
    "session_kind": "user",
    "session_number": 1,
    "session_url": "example",
    "shared_from_session": "example",
    "shared_from_session_number": 1,
    "signatures": [],
    "sla_due_at": "example",
    "status": "Not Started",
    "status_override": {
      "automatic_status": "example",
      "overridden_at": "example"
    },
    "vendor_data": "example",
    "waiting_since": "example",
    "workflow_id": "example"
  }
}

Get session webhook delivery

Get session webhook delivery.

Inputs

Session IDsession_idtextRequired
UUID of the verification session, user (KYC) or business (KYB): the `session_id` returned by `POST /v3/session/`. The server resolves it against both session types. **Must be a valid UUID.** The route only matches well-formed UUIDs, so a malformed value is rejected by the URL router before any application code runs and the response is a `404` **HTML** page rather than the JSON `{"detail": ...}` envelope shown below.
Webhook uuidwebhook_uuidtextRequired
UUID of the delivery: the `uuid` of an entry returned by `GET /v3/session/{sessionId}/webhooks/`. It must belong to the session in the path.

Outputs

dataobject
One webhook delivery attempt recorded for a verification session, with the exact request headers and body Didit sent.
Example output
{
  "data": {
    "created_at": "example",
    "request_body": "example",
    "request_header": "example",
    "request_url": "example",
    "response_status": 1,
    "session_id": "example",
    "status": "example",
    "uuid": "example",
    "webhook_type": "status.updated"
  }
}

Get workflow

Get workflow.

Inputs

Settings uuidsettings_uuidtextRequired
Per-version UUID of the workflow (the `uuid` value returned by the list endpoint). Each version of a workflow has its own `settings_uuid`.

Outputs

dataobject
The fields below are typed; the object also carries every other column of the workflow configuration (feature toggles, thresholds, warning actions, allowed documents, callbacks) as additional properties. Fields that do not apply to the `workflow_type` are `null`. For a workflow built from a `workflow_graph`, `face_match_score_decline_threshold` and `face_match_score_review_threshold` report the thresholds its Face Match step applies: the step's own values, or the defaults `30` and `60` when the step sets none (the step's `config` in `workflow_graph` states the same values). When the workflow has several Face Match steps with different thresholds, read each step's `config`.
Example output
{
  "data": {
    "bank_verification_config": {},
    "created_at": "example",
    "features": "example",
    "geolocation_config": {},
    "is_archived": false,
    "is_bank_verification_enabled": false,
    "is_default": false,
    "is_editable": false,
    "is_geolocation_enabled": false,
    "is_simple_workflow": false,
    "is_welcome_handoff_enabled": false,
    "kyb_role_settings": [],
    "max_price": 1.0,
    "max_retry_attempts": 1,
    "min_price": 1.0,
    "published_at": "example",
    "questionnaire": {},
    "retry_window_days": 1,
    "session_expiration_time": 1,
    "signature_availability": {
      "aes": false,
      "qes": false,
      "simple": false
    },
    "special_add_on_prices": {},
    "status": "draft",
    "total_price": 1.0,
    "updated_at": "example",
    "uuid": "example",
    "version": 1,
    "workflow_graph": {},
    "workflow_id": "example",
    "workflow_label": "example",
    "workflow_type": "kyc",
    "workflow_url": "example"
  }
}

List session aml screenings

List session aml screenings.

Inputs

Session IDsession_idtextRequired
UUID of the verification session (the `session_id` returned by `POST /v3/session/`). Accepts both User Verification (KYC) and Business Verification (KYB) session IDs: the server resolves the ID across both session types. Must be a well-formed UUID; a malformed value does not match the route and returns an HTML `404`.
Node IDnode_idtext
Workflow graph node ID of the AML check. Needed only when the session ran more than one AML step; without it the most recent AML check is used. An unknown node returns `404`.
Monthmonthtext
A UTC calendar month as `YYYY-MM`. Only screenings completed in that month are returned; without it every month is returned. A malformed month returns `400`.
Limitlimitnumber
Maximum number of screening runs per page. Defaults to 50. A value below 1 or a non-numeric value falls back to 50; a value above 1,000,000 returns `400`.From 1 to 1000000. Default: 50.
Offsetoffsetnumber
Number of results to skip before the first returned one. Defaults to 0; a negative or non-numeric value falls back to 0, a value above 1,000,000 returns `400`. Prefer following the `next` and `previous` URLs.From 0 to 1000000. Default: 0.
Orderingorderingtext
Optional sort override. The default order is `-completed_at`. Pass a result field name (for example `completed_at`, `started_at`, `outcome` or `score`) to sort ascending, prefix it with `-` to sort descending, and separate several fields with commas. Unknown fields are ignored.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}

List session events

List session events.

Inputs

Session IDsession_idtextRequired
UUID of the verification session (the `session_id` returned by `POST /v3/session/`). Accepts both User Verification (KYC) and Business Verification (KYB) session IDs: the server resolves the ID across both session types. Must be a well-formed UUID; a malformed value does not match the route and returns an HTML `404`.
Limitlimitnumber
Maximum number of events per page. Defaults to 50. A value below 1 or a non-numeric value falls back to 50; a value above 1,000,000 returns `400`.From 1 to 1000000. Default: 50.
Offsetoffsetnumber
Number of results to skip before the first returned one. Defaults to 0; a negative or non-numeric value falls back to 0, a value above 1,000,000 returns `400`. Prefer following the `next` and `previous` URLs.From 0 to 1000000. Default: 0.
Orderingorderingtext
Optional sort override. The default order is `-sent_at`. Pass a result field name (for example `sent_at`, `created_at`, `event_type`, `feature_step` or `step`) to sort ascending, prefix it with `-` to sort descending, and separate several fields with commas. Unknown fields are ignored.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}

List session overrides

List session overrides.

Inputs

Session IDsession_idtextRequired
UUID of the verification session. Accepts both user (KYC) and business (KYB) session IDs.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "flow_finished_at": "example",
    "overrides": [],
    "person_in_flow": false,
    "session_id": "example"
  }
}

List session reviews

List session reviews.

Inputs

Session IDsession_idtextRequired
UUID of the User Verification (KYC) session. Must belong to the same application as the API key , cross-application UUIDs, deleted sessions, and Business Verification (KYB) session IDs all return `404`.
Limitlimitnumber
Page size. Defaults to `50`.Default: 50.
Offsetoffsetnumber
Number of entries to skip from the start of the (ordered) feed. Defaults to `0`. The `next` / `previous` URLs in the response carry the right values for walking the feed.Default: 0.
Orderingorderingtext
Sort order. The feed defaults to newest first (`-created_at`); pass `created_at` to read it oldest first. Unknown values are silently ignored (default order is used); other serializer field names are also accepted.Default: -created_at.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}

List session webhook deliveries

List session webhook deliveries.

Inputs

Session IDsession_idtextRequired
UUID of the verification session, user (KYC) or business (KYB): the `session_id` returned by `POST /v3/session/`. The server resolves it against both session types. **Must be a valid UUID.** The route only matches well-formed UUIDs, so a malformed value is rejected by the URL router before any application code runs and the response is a `404` **HTML** page rather than the JSON `{"detail": ...}` envelope shown below.

Outputs

datalist
Response.
Example output
{
  "data": []
}

List sessions

List sessions.

Inputs

Session kindsession_kindtext
Which kind of sessions to list: `user` (KYC only, default), `business` (KYB only), or `all` (both, concatenated - see the description for merged-pagination semantics). Matching is case-insensitive (`BUSINESS` works); any value other than a case variant of `user`/`business`/`all` returns `400`.One of: user, business, all. Default: user.
Limitlimitnumber
Maximum number of rows per page (per kind when `session_kind=all`). Defaults to 50.From 1 to 1000000. Default: 50.
Offsetoffsetnumber
Number of rows to skip before the first returned row. Defaults to 0. Prefer following the `next`/`previous` URLs from the response.From 0 to 1000000. Default: 0.
Statusstatuslist
Comma-separated list of session statuses to include, e.g. `Approved,In Review`. Values are case-sensitive; see [Verification Statuses](/integration/verification-statuses). Unknown values match nothing.One or more of: Not Started, In Progress, In Review, Approved, Declined, Resubmitted, Expired, Abandoned, Kyc Expired, Awaiting User.
Vendor datavendor_datatext
Exact-match filter on the `vendor_data` you sent at session creation (your own user/business identifier). For partial matches use `search` instead.
Searchsearchtext
A complete displayed reference such as `S-0001` (user) or `B-0001` (business) matches only that session number and kind; leading zeros and letter case do not affect matching. Smart free-text search. A full UUID matches `session_id`; numeric input matches session-number prefix, document/personal numbers, phone prefix, or `vendor_data`; input containing `@` matches email prefixes; other text matches names (accent-insensitive) and `vendor_data`. Free text con
Workflow IDverification_workflow_idtext
Comma-separated workflow UUIDs (find them on the Workflows page in the Console). Malformed UUIDs in the list are ignored; if none are valid the result is empty.
Date fromdate_fromdate
Only sessions created on or after this date (UTC), format `YYYY-MM-DD`. Malformed dates return `400`.
Date todate_todate
Only sessions created up to this date (UTC), format `YYYY-MM-DD`. For KYC rows the entire day is included; for KYB rows the comparison is `created_at <= date_to` (midnight), so use the next day's date to include a full day of KYB sessions.
Decided fromdecided_fromdate and time
ISO 8601 datetime. Returns the sessions whose status last changed at or after it. It filters on the time of the last status change, not on creation time.
Decided todecided_todate and time
ISO 8601 datetime. Returns the sessions whose status last changed before it. Combine with `decided_from` for a half-open window.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}

List workflows

List workflows.

Inputs

Limitlimitnumber
Page size (number of workflows per page).Default: 50.
Offsetoffsetnumber
Number of rows to skip before the first returned workflow.Default: 0.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}

Simulate session

Simulate session.

Inputs

Session IDsession_idtextRequired
UUID of the sandbox verification session. Accepts both user (KYC) and business (KYB) session IDs.
Idempotency keyidempotency_keytext
Use the same key when retrying the same operation.
New statusnew_statustextRequired
The status to set. When you leave it out, it defaults to the default status of the risk case (`risk`, or the first risk the scenario's magic values carry), else to the scenario's default status.One of: Approved, Declined, In Review, Expired, Abandoned.
Commentcommenttext
Note added to the activity entry the status change records.
Send webhookssend_webhookstrue/false
`true` sends exactly the webhooks a real status change sends to the sandbox application's destinations: `status.updated`, plus the `user.status.updated` / `user.data.updated` (or `business.status.updated` / `business.data.updated`) events the change causes, for destinations subscribed to them. `false` changes the status without logging or sending any webhook: the missed-webhook recovery never re-sends that decision, the console still updates live, and theDefault: true.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "previous_status": "Not Started",
    "risk": "example",
    "scenario": "example",
    "send_webhooks": false,
    "session_id": "example",
    "status": "Approved"
  }
}

Update session status

Update session status.

Inputs

Session IDsession_idtextRequired
UUID of the verification session to update. Accepts both user (KYC) and business (KYB) session IDs , the service resolves the ID across both session types.
Idempotency keyidempotency_keytext
Use the same key when retrying the same operation.
New statusnew_statustextRequired
Target status. `Approved` and `Declined` record a final manual decision (each can also overturn the other). `Resubmitted` clears the selected steps and sends the session back to the user. Any other value returns `400`.One of: Approved, Declined, Resubmitted.
Commentcommenttext
Free-text reason for the change, stored on the session's review trail and returned in the `reviews` array of [Get Decision](#get-/v3/session/-sessionId-/decision/). For example `Duplicated user`.
Nodes to resubmitnodes_to_resubmitlist
Workflow steps the user must redo. Only acted on when `new_status` is `Resubmitted`. For `Approved`/`Declined` the entries are still schema-validated (an invalid `feature` value returns `400`) but schema-valid entries are semantically ignored. If omitted, the server auto-selects existing OCR, Liveness, Face Match, POA, Phone, Email, AML, Database Validation, and Questionnaire attempts whose status is `Declined`, `In Review`, `Not Finished`, or `Expired` (N
Send emailsend_emailtrue/false
Whether to email the user about the change. Requires `email_address`. For `Approved`/`Declined` the user receives a status notice; for `Resubmitted` the email includes the verification link and the per-step resubmission reasons.Default: false.
Email addressemail_addresstext
Recipient for the notification email. **Required when `send_email` is `true`** , omitting it returns `400`.
Email languageemail_languagetext
Language for the notification email. Accepts any string at schema level; unsupported codes silently fall back to English (`en`).Default: en.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "session_id": "example"
  }
}

On this page