Skip to main content
PATCH
curl
Didit’s Update Session Status API lets you approve, decline, or resubmit a verification session and optionally group same-person KYC verifications during approval.

KYC and KYB support

Status updates support User Verification (KYC) and Business Verification (KYB) sessions. Didit resolves the session_id against both session types; status-transition validation is the same for both (the same enum of statuses applies to both). Same-person linking is available only between KYC sessions. The response carries only the session_id. Read session_kind from Retrieve Session when your downstream logic needs to switch on the kind.

Allowed transitions

You can move a session to Approved, Declined, or Resubmitted. Any other new_status, including In Review, returns 400. The session’s current status must be one of Approved, Declined, In Review, Kyc Expired, Abandoned, or Resubmitted; otherwise the API returns 400. Setting Approved or Declined on a session that already has that status returns 200 without a status webhook, status review entry or email. An Approved request can still create a first same-person link. Setting Resubmitted on a session that is already Resubmitted returns 400 (The new status is the same as the current status.). A resubmit whose nodes_to_resubmit contain only backend-only features (AML, DATABASE_VALIDATION, IP_ANALYSIS) executes automatically and returns the session to a decided status with no user interaction. Repeating such a resubmit within 30 seconds returns 429 Too Many Requests with a Retry-After header, since an immediate repeat cannot produce a different result. Do not auto-resubmit from a webhook handler whenever you receive an In Review status - review the finding or change the underlying data first. Send link_to_session_id and link_reason with new_status: "Approved" to record that two verifications belong to the same person. Both must be distinct, live KYC sessions in the same application. The target need not be approved or have a person profile. link_reason is required with a target and rejected without one. It must be nonblank after trimming and at most 2000 characters. The optional status-review comment does not replace it.
Approval and linking succeed together or neither changes. If either verification already belongs to a group, the groups are joined. An already-approved session can gain its first link without another status event or email. Retrying within the same group creates no additional link audit. Grouping does not merge person profiles, profile fields or biometric data. Each verification keeps its original profile association and deletion ownership. Deleting a verification removes it from the group. Link actions have a separate audit recording the actor, time and reason. Group navigation and unlinking are console-only; this API has no public read or unlink endpoint. Invalid, missing, deleted or foreign-application targets, self-links, KYB participants, linking with another status, and invalid reason/target combinations return 400. Concurrent group edits return 409 with {"detail": "The verifications are being changed. Retry the request."}. Neither approval nor linking changes; retry the request. This differs from an email-preview conflict, which requires a new preview.

Preview the email first

With send_email: true, Approved and Declined send the person their decision email, and Resubmitted sends them a fresh link with the reasons. You can see that email before you change anything:
  1. Call Preview Decision Email for Approved or Declined, or Preview Resubmission Email for Resubmitted.
  2. Check the rendered subject and html, the recipient, and will_be_sent / not_sent_reason.
  3. Call this endpoint with the same new_status (and, for a resubmission, the same nodes_to_resubmit), send_email: true, email_address set to recipient, the email_language you previewed, and email_preview_token set to preview_token.
Neither preview changes the session or sends anything. The update then sends exactly the email you previewed. The receipt expires after 15 minutes. If the recipient, language, session status, sender or email changed since the preview, the update returns 409 before anything changes; preview again and confirm with the new receipt. Sending email_preview_token without send_email: true returns 400. The preview step is optional: existing integrations can keep calling this endpoint without it.

Examples

Permission

Requires the write:sessions privilege. The same privilege covers both kinds.

Authorizations

x-api-key
string
header
required

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Headers

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Path Parameters

sessionId
string<uuid>
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.

Example:

"11111111-2222-3333-4444-555555555555"

Body

application/json
new_status
enum<string>
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.

Available options:
Approved,
Declined,
Resubmitted
Example:

"Approved"

comment
string

Free-text reason for the change, stored on the session's review trail and returned in the reviews array of Get Decision. For example Duplicated user.

Example:

"All checks passed manual review"

nodes_to_resubmit
object[]

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 (NFC, IP analysis, age estimation, face search, and KYB document attempts are never auto-selected; non-face-match face attempts are selected as LIVENESS) — features the user never attempted (no recorded attempt) are NOT selected, so a session with zero attempts returns 400 ("No features found that need resubmission") even though nothing was approved; pass nodes_to_resubmit explicitly in that case. Steps are executed in workflow-graph order regardless of the order you send them. KYB_REGISTRY, KYB_KEY_PEOPLE, and the KYB alias are rejected with 400 — those parent checks recompute from their child KYC sessions.

send_email
boolean
default: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.

Example:

false

email_address
string<email>

Recipient for the notification email. Required when send_email is true — omitting it returns 400.

Example:

"user@example.com"

email_language
string
default:en

Language for the notification email. Accepts any string at schema level; unsupported codes silently fall back to English (en).

Example:

"en"

email_preview_token
string
write-only

Optional receipt from Preview Decision Email (for Approved and Declined) or Preview Resubmission Email (for Resubmitted): its preview_token. Valid only with send_email: true; without it the request returns 400. The recipient, language, session status, sender and email (and, for a resubmission, the selected steps) must still match the preview, and the receipt expires after 15 minutes. Otherwise the request returns 409 before the session changes or an email is sent. Existing integrations may omit this field.

Required string length: 1 - 512

Optional UUID of another live KYC verification in the same application. Requires new_status=Approved and link_reason. Both participants must be KYC; self-links, deleted, missing and foreign-application targets return 400. The target need not be approved or have a person profile. Existing groups are joined.

Example:

"22222222-3333-4444-8555-666666666666"

Reviewer reason for the same-person link, required with link_to_session_id and rejected without it. Leading and trailing whitespace is trimmed; the result must be nonblank and at most 2000 characters. Recorded in the separate link audit. comment does not substitute for this field.

Required string length: 1 - 2000
Pattern: \S
Example:

"Reviewed both verifications and confirmed they belong to the same person."

Response

Status updated or already set. The response contains only session_id, including when linking. Fetch the session via Get Decision. A status change fires status.updated once committed. Repeating Approved or Declined creates no status event or email; Approved can still create a first same-person link. A same-group retry creates no additional link audit.

session_id
string<uuid>

UUID of the updated session.

Last modified on November 11, 2026