# Didit

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

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/didit

## Actions

### Create session

Create session.

**Inputs**

- Idempotency key (`idempotency_key`, text): Use the same key when retrying the same operation.
- Workflow (`verification_workflow_id`, text, required): 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 data (`vendor_data`, text): 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
- Callback (`callback`, text): 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 method (`callback_method`, text): 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`.
- Metadata (`metadata`, object): 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.
- Tags (`tags`, list): 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 time (`session_expiration_time`, number): 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 existing. From 3600 to 2419200.
- Language (`language`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "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 ID (`session_id`, text, required): 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 key (`idempotency_key`, text): Use the same key when retrying the same operation.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "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 ID (`session_id`, text, required): 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` *
- Include (`include`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "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 ID (`session_id`, text, required): 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 uuid (`webhook_uuid`, text, required): 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**

- `data` (object): One webhook delivery attempt recorded for a verification session, with the exact request headers and body Didit sent.

**Example output**

```json
{
  "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 uuid (`settings_uuid`, text, required): 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**

- `data` (object): 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**

```json
{
  "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 ID (`session_id`, text, required): 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 ID (`node_id`, text): 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`.
- Month (`month`, text): 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`.
- Limit (`limit`, number): 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`.
- Offset (`offset`, number): 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`.
- Ordering (`ordering`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### List session events

List session events.

**Inputs**

- Session ID (`session_id`, text, required): 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`.
- Limit (`limit`, number): 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`.
- Offset (`offset`, number): 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`.
- Ordering (`ordering`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### List session overrides

List session overrides.

**Inputs**

- Session ID (`session_id`, text, required): UUID of the verification session. Accepts both user (KYC) and business (KYB) session IDs.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "flow_finished_at": "example",
    "overrides": [],
    "person_in_flow": false,
    "session_id": "example"
  }
}
```

### List session reviews

List session reviews.

**Inputs**

- Session ID (`session_id`, text, required): 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`.
- Limit (`limit`, number): Page size. Defaults to `50`. Default: `50`.
- Offset (`offset`, number): 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`.
- Ordering (`ordering`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### List session webhook deliveries

List session webhook deliveries.

**Inputs**

- Session ID (`session_id`, text, required): 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**

- `data` (list): Response.

**Example output**

```json
{
  "data": []
}
```

### List sessions

List sessions.

**Inputs**

- Session kind (`session_kind`, text): 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`.
- Limit (`limit`, number): Maximum number of rows per page (per kind when `session_kind=all`). Defaults to 50. From 1 to 1000000. Default: `50`.
- Offset (`offset`, number): 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`.
- Status (`status`, list): 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 data (`vendor_data`, text): Exact-match filter on the `vendor_data` you sent at session creation (your own user/business identifier). For partial matches use `search` instead.
- Search (`search`, text): 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 ID (`verification_workflow_id`, text): 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 from (`date_from`, date): Only sessions created on or after this date (UTC), format `YYYY-MM-DD`. Malformed dates return `400`.
- Date to (`date_to`, date): 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 from (`decided_from`, date 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 to (`decided_to`, date and time): ISO 8601 datetime. Returns the sessions whose status last changed before it. Combine with `decided_from` for a half-open window.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### List workflows

List workflows.

**Inputs**

- Limit (`limit`, number): Page size (number of workflows per page). Default: `50`.
- Offset (`offset`, number): Number of rows to skip before the first returned workflow. Default: `0`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### Simulate session

Simulate session.

**Inputs**

- Session ID (`session_id`, text, required): UUID of the sandbox verification session. Accepts both user (KYC) and business (KYB) session IDs.
- Idempotency key (`idempotency_key`, text): Use the same key when retrying the same operation.
- New status (`new_status`, text, required): 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`.
- Comment (`comment`, text): Note added to the activity entry the status change records.
- Send webhooks (`send_webhooks`, true/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 the. Default: `true`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "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 ID (`session_id`, text, required): 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 key (`idempotency_key`, text): Use the same key when retrying the same operation.
- New status (`new_status`, text, required): 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`.
- Comment (`comment`, text): 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 resubmit (`nodes_to_resubmit`, list): 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 email (`send_email`, true/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 address (`email_address`, text): Recipient for the notification email. **Required when `send_email` is `true`** , omitting it returns `400`.
- Email language (`email_language`, text): Language for the notification email. Accepts any string at schema level; unsupported codes silently fall back to English (`en`). Default: `en`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "session_id": "example"
  }
}
```
