Didit Create Session API: <code>vendor_data</code> and Duplicate Sessions
Send a stable <code>vendor_data</code> on every <code>POST /v3/session/</code>. If an unfinished session with the same <code>vendor_data</code> exists on the workflow's latest published version, Didit returns that session.

Contents
In this guide
Jump to the part you need.
This page is for teams whose app can send the same Create Session request twice. Send a stable vendor_data on every POST /v3/session/ call and Didit returns the unfinished session it already holds instead of starting a second one. Creating a session is not a billed step; a full ID check is $0.33. The caveat: reuse covers four statuses only, and only on the workflow's latest published version.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Didit Create Session API idempotency at a glance
| Question | Answer |
|---|---|
| Endpoint | POST https://verification.didit.me/v3/session/ with the x-api-key header. KYC and KYB use the same endpoint; the workflow type decides which session is created. |
| Duplicate key | vendor_data, your stable identifier for the user or business. Optional in the schema, strongly recommended in the docs. |
| Statuses that are reused | Not Started, In Progress, Resubmitted, Awaiting User |
| What comes back | The existing session with HTTP 201, its callback and metadata updated, and status reflecting the session that already exists |
| Scope of the lookup | The workflow you pass and its latest published version |
| Cost of a create call | Not billed. Billing is per completed check from prepaid credit. |
| Full ID check (KYC) | $0.33 per completed check |
| Free plan credit | $10 of credit every month for eligible organizations, sandbox free and unlimited |
Start free in the sandbox at business.didit.me, no sales call. This endpoint creates the session behind our User Verification (KYC) flow, and the per-check rates are on the Didit pricing page. Developers who build with an AI assistant can connect Didit to it through the Didit MCP server.
The outcome and the method we recommend
The outcome is one unfinished session per entity, per workflow, and per that workflow's latest published version, even when a double click, a page reload or a mobile network retry sends the create request more than once.
The method is vendor_data. The docs describe it as your stable identifier for the entity, and it is the field Didit uses for duplicate detection across sessions. When you send it and an unfinished session with the same value exists, the API returns that session with HTTP 201 instead of creating another. The callback and metadata on the existing session are updated with what you send, and the returned status reflects the session that already exists.
Decide the value on your server, once per entity, before the first call, and keep it next to the session_id so a repeat call is easy to trace. That record is our recommendation for your own bookkeeping, not something the API reads. Do not derive the value from an email address that can change or from a timestamp, because a new value is a new entity as far as the API is concerned.

Prerequisites
- A Didit organization and an application. Sign up at business.didit.me; the sandbox is free.
- An API key with access to the session endpoint. Find it in the Business Console under Developers, then API keys. Keys start with
sk_live_orsk_test_, and older keys without a prefix keep working. - A published workflow and its UUID. KYC workflows create user verification sessions, KYB workflows create business verification sessions.
- A field in your own system that identifies the person or business and does not change, for example
user-42. - If your application has allowed domains set, an HTTP or HTTPS callback on one of those origins. Custom app schemes such as
myapp://are always accepted.
How to avoid duplicate sessions, step by step
Pick one stable
vendor_dataper entity. Write it next to the user or business record, not inside a request builder. The value you use on the first call is the value the API must see on every later call.Create the session with that value in the body. The request below is the documented create call with
vendor_dataandcallback. The match coversworkflow_idand that workflow's latest published version, so a session created by an earlier published version is not returned.
curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workflow_id":"<WORKFLOW_ID>","vendor_data":"user-42","callback":"https://myapp.com/return"}'
Read
statusandsession_idbefore doing anything else. Ifstatusis one of the four reusable statuses in the table at the top of this page, that is the live session for this entity, so send the user to itsurl.Send the
callbackandmetadatayou want on every call, not only the first. On reuse those two fields are written onto the existing session, so a retry can repair a return URL or an internal reference.Store the mapping from
vendor_datatosession_id, plus the last status you saw. Recommended, not required: that record lets you skip the create call entirely once the session is past the reusable statuses.De-duplicate your webhooks separately. The session envelope carries
event_id,session_id,vendor_data,statusandmetadata, and Didit can deliver the same event more than once, so de-duplicate onevent_id. For the full result, fetch the decision fromGET /v3/session/<session_id>/decision/.
A create call that also carries metadata, tags and a callback method looks like this. Every field below is documented on the Create Session page.
curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflow_id": "<WORKFLOW_ID>",
"vendor_data": "user-42",
"callback": "https://myapp.com/kyc/return",
"callback_method": "both",
"metadata": {"signup_attempt": 2},
"tags": ["ONBOARDING Q4"]
}'
Expected output
A successful create answers HTTP 201, whether the session is new or reused. Read the body in this order:
HTTP/1.1 201 Created
{
"session_id": "b3f1...",
"url": "<hosted verification link>",
"session_token": "<session token>",
"status": "In Progress",
"vendor_data": "user-42",
"metadata": {"signup_attempt": 2}
}
A reused session returns the same session_id you stored on the first call: if the value above, b3f1..., is one you already had, nothing new was created and the user carries on where they stopped. If status reads In Progress while your own record says the link was never sent, the session has been opened, and you should send the user back to the same url rather than start a second flow. Tags come back in the create response and appear on the session in the console, where you can filter by them.
Inputs and outputs
| Field | Type | Required | Effect on duplicate sessions |
|---|---|---|---|
workflow_id | string, UUID | Required | Selects the workflow. The lookup runs against this workflow and its latest published version. The workflow type decides KYC or KYB; there is no separate KYB endpoint. |
vendor_data | string | Optional, strongly recommended | The duplicate key. Same value plus an unfinished session returns the existing session. Without it, the vendor_data duplicate check cannot match the request to an existing session. |
callback | string, URL | Optional | Updated on the existing session when it is reused. Must sit on one of the application's allowed domains when that list is set, or the call fails with 400. |
callback_method | string | Optional, default initiator | One of initiator, completer, both. Use both if the callback sometimes fails to fire. |
metadata | object | Optional | Echoed in responses and webhooks, never shown to the user. Updated on the existing session when it is reused. |
tags | array of strings | Optional | Up to 10 tags, 50 characters each, stored in upper case. Returned in the create response. |
session_expiration_time | integer | Optional | Seconds between 3600 and 2419200. Overrides the workflow setting for this session only. |
multi_account_segment | string, max 64 | Optional | Realm for duplicate face checks inside your organization. It does not control session reuse, and blocklist and allowlist matching ignore it. |
| Output | What it is | What to do with it |
|---|---|---|
session_id | The session identifier, new or existing | Store it next to vendor_data and use it for the decision call |
url | The hosted verification link | Redirect the user to it, or open it in the SDK |
session_token | Token returned with the create response | Keep it server side, alongside the session id |
status | Exact, case-sensitive session status | On a reused session it reflects the session that already exists |
vendor_data | Your identifier | Echo it in logs so a repeat call is easy to trace |
tags | The tags on the session | Filter on them in the Business Console |
Failure cases and recovery
| Status | What it means | Recovery | Retry |
|---|---|---|---|
| 400 | The callback is not on one of the application's allowed domains | Move the callback to an allowed origin, or add the domain to allowed_domains on PATCH /v3/webhook/ | After fixing |
| 400 | Not enough credits to perform the request | Top up in the Business Console | After topping up |
| 400 | A field failed validation, for example a missing workflow_id or a session_expiration_time outside 3600 to 2419200 | Fix the field the body names | After fixing |
| 401 | The key is wrong, malformed, revoked or expired | Use a valid key, or create a new one | After fixing |
| 403 | No key, a scoped key without access, a call from outside the key's IP list, or a suspended contract billing state | Read the body, then use a key with that access | After fixing |
| 404 | The session sits outside the key's workflow or status limits | Use a key whose limits include it | No |
| 409 | The request conflicts with the current state, for example a reused Idempotency-Key or a step that already ran | Read code and reload the state | Depends on the code |
| 429 | A rate limit or quota was reached | Wait for Retry-After | Yes, after waiting |
| 500, 502, 503 | An unexpected error, a dependency error, or a temporary outage | Back off and retry; the body may not be JSON | Yes, with backoff |
When vendor_data does not stop a duplicate
Four situations account for almost every report of a duplicate session that still appeared although vendor_data was sent:
- The earlier session is past the reusable statuses. Only the four statuses in the table at the top of this page are matched. A session in In Review, Approved, Declined, Expired, Abandoned or Kyc Expired is not returned, so the call creates a new one. Recovery: check your stored status or the decision endpoint before calling create again.
- The value changed between calls. A random suffix, a temporary ID or a mutable email address produces a different entity. Recovery: use the record ID that never changes and backfill it for existing users.
- The request used a different workflow. Treat the pair of workflow and
vendor_dataas the key, and keep one workflow per verification purpose. - A new workflow version was published. The lookup targets the latest published version, so sessions created on an earlier version are no longer the match. Recovery: store the
session_idand skip the create call while that session is alive.

What is billed, and where review starts
Creating a session is not a billed step. Billing is per completed check from prepaid credit, so a duplicate session costs money only when the checks inside it actually run. That is exactly why the reuse matters: two sessions for one person can mean two ID checks and two liveness checks for one human.
- Full ID check (KYC): $0.33, made up of ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03.
- AML screening: $0.20 per check. KYC plus AML is $0.53.
- Business verification (KYB): registry data priced by country and data tier, from $2.00 per company, with linked KYC and person AML billed per person.
- Plans: Free with $10 of credit a month, Growth at $99 a month with $115 of credit and 4% off every Didit price, Scale at $299 a month with $350 of credit and 10% off. Enterprise is a custom annual contract from $15,000 a year. See the Didit pricing page before you quote a plan.
- Listed as free or included: Workflow Orchestrator, Reusable KYC and the MCP server are currently listed as free or included, and the sandbox is free and unlimited.
Review is a decision boundary, not a duplicate control. A session in In Review is waiting on a person in the Business Console, or on PATCH /v3/session/<sessionId>/update-status/, and it is not one of the four statuses that Create Session will return. If you need one open session per person even during review, enforce that in your own record before you call create.
Worked cost example
An onboarding team adds 5,000 new users a month and runs a full ID check plus AML screening on each: $0.33 + $0.20 = $0.53 per completed check, so 5,000 x $0.53 = $2,650 a month.
Before vendor_data, 12% of users triggered the create call twice because the page reloaded during signup: 5,000 x 0.12 = 600 extra sessions. In 500 of those the user finished the second flow as well, so the team paid twice for one person: 500 x $0.53 = $265.00 a month, or $265 x 12 = $3,180 a year.
After vendor_data, a repeat call returns the session that already exists only while that original session is still in one of the four reusable statuses. The example above assumes all 600 repeats stay eligible for the whole month, which is the best case. Where the first session is already Approved, a second flow still starts and still bills. On that assumption the second completed check disappears and the annual saving is the $3,180. On the Scale plan the numbers shift, not disappear: $0.33 x 0.9 = $0.297 and $0.20 x 0.9 = $0.18, so $0.477 per bundle and 500 x $0.477 = $238.50 a month.
On credit, $10 of monthly credit at $0.33 buys about 30 live full ID checks ($10 / $0.33 = 30.3). Sandbox testing itself is free and unlimited, so watch the reuse work there first, then spend the $10 on live traffic.

Didit runs identity and fraud checks for 4,000+ companies. For KYB flows, the same duplicate rule matters more, because a parent business session waiting on key people sits in Awaiting User, which is one of the four reusable statuses. A repeat create call for that business returns the parent instead of starting a second key-people collection round. See business verification for what that flow covers.
Sources
- Didit docs: Create Session API, the field list and
vendor_datawith its duplicate-detection role - Didit docs: Verification statuses and session lifecycle
- Didit docs: Webhooks, envelope and de-duplication on
event_id - Didit docs: API errors, status codes and retry guidance
- Didit docs: Quick start and API authentication
- Didit docs: Pricing and billing rules
- Didit pricing page and pricing as JSON, read November 26, 2026
- Didit public price book, per-line prices including the free Workflow Orchestrator and Reusable KYC
- Didit MCP server and site index for AI agents
Start with one sandbox session and one vendor_data value: sign up at business.didit.me, create the workflow, send the call twice, and watch the second response come back with the same session_id. No sales call, and the sandbox is free.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
Does the Didit Create Session API return an existing session when vendor_data matches?
Yes, for unfinished sessions. If you send vendor_data on POST /v3/session/ and an unfinished session with the same value exists on the workflow's latest published version, Didit returns that session with HTTP 201 instead of creating a new one. The returned status reflects the session that already exists, and its callback and metadata are updated with the values you sent. Sessions in a terminal or review status are not matched.
Which session statuses count as unfinished for the vendor_data check?
Four: Not Started, In Progress, Resubmitted and Awaiting User. Every other status, including In Review, Approved, Declined, Expired, Abandoned and Kyc Expired, is not matched, so a create call with the same vendor_data starts a new session. All status strings are exact and case-sensitive, and Kyc Expired uses a single capital K.
Is vendor_data required to create a Didit session?
No. The field is optional, but the docs strongly recommend it because it binds the session to a user or business entity and is used for duplicate detection across sessions. Without it, two identical create calls produce two sessions. With it, the second call returns the first session while that session is still unfinished.
What HTTP status does Didit return when it reuses a session?
Didit answers HTTP 201 and returns the existing session in the body, not a new one. session_id is the identifier you already stored, so comparing it with your own record is the quickest way to confirm nothing was created. Read status to learn how far the user got.
What happens to callback and metadata when an existing session is returned?
They are updated on the existing session. Whatever callback and metadata you send on the repeat call are written to the session you get back, so a retry can repair a return URL or an internal reference. Do not assume the session keeps the values from its first creation.
Why did I still get a duplicate session after sending vendor_data?
Four common causes. The earlier session is past the reusable statuses, for example In Review or Approved. The value differs between calls because of a random suffix, a temporary ID or a mutable email. The request went to a different workflow, or a new workflow version was published so the older session is no longer on the latest published version. Check your stored session_id and the current status before you assume the API failed.
Does creating a Didit session cost anything?
No. Creating a session is not a billed step; Didit bills per completed check from prepaid credit. A full ID check is $0.33 and AML screening is $0.20, so KYC plus AML is $0.53. A duplicate session costs money only when the checks inside it actually run, which is why the reuse saves budget rather than API calls alone.
How is vendor_data different from multi_account_segment?
vendor_data is your identifier for the entity, and it controls whether Create Session returns an unfinished session. multi_account_segment is a duplicate-detection realm for face duplicate checks inside your own organization, so separate account bases do not report one person as a duplicate. Blocklist and allowlist matching ignore multi_account_segment, and it has no effect on session reuse.
How do I stop creating a second session after the first one is Approved or Declined?
The API will not do that for you, because only the four unfinished statuses are reused. Store vendor_data next to session_id and the last status you saw, then check GET /v3/session/<id>/decision/ or your own record before calling create again. For a genuine re-verification, a new session is the correct outcome, so make that a deliberate decision in your code.
Can I reuse the same vendor_data across two workflows?
The duplicate lookup runs against the workflow you pass and its latest published version, so treat the pair of workflow and vendor_data as the key rather than the value alone. Keep one workflow per verification purpose to avoid surprises. A KYC workflow and a KYB workflow are separate in any case, and only the workflow type decides which kind of session is created.
What does a 409 mean on create session?
The error reference lists 409 as a request that conflicts with the current state, for example a reused Idempotency-Key or a step that already ran. Read code in the body and reload the state before retrying, because the right action depends on that code. For duplicate sessions specifically, the documented control on Create Session is vendor_data.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


