Architecture
Authentication
All requests require thex-api-key header with your application’s API key. See API authentication for key rotation, environment separation, and scopes.
Session creation
Single endpoint:POST /v3/session/. The workflow’s type determines whether the session is KYC or KYB — no explicit “business” flag is needed.
Recommended fields on creation:
Full schema: create session.
Delivering the hosted link
The responseurl is a hosted verification link. Options for delivery:
- Email it from your own platform.
- Embed it in your onboarding UI as a link.
- Open it in an in-app webview (iOS / Android / React Native).
Polling vs webhooks
Webhooks are the recommended pattern. Didit POSTs completion events to your subscribed endpoint as soon as processing finishes. Polling is supported for development or when your webhook endpoint is unreachable:- Poll
GET /v3/session/{id}/decision/with exponential backoff (every 10s initially, up to 60s). - Stop polling when
statusis one of"Approved","Declined","In Review".
Webhook handling
Subscribe to the events you care about — the same events cover both KYC and KYB, withsession_kind: "business" inside the payload to identify business-session events:
status.updated— session status changed. Filter onsession_kind === "business"for KYB sessions.data.updated— a reviewer edited registry data or Key People in the console, or the registry reported a change. It is not sent when the applicant uploads a document or submits Key People: followstatus.updatedfor that. Samesession_kindfilter applies.business.status.updated/business.data.updated— the linked Business entity changed.
Handling decisions
Resubmission flow
When a Business Verification (KYB) session transitions toResubmitted (or a feature is marked for resubmission), the business needs to upload corrected or additional data.
You can:
- Re-deliver the same
url— the hosted flow picks up where resubmission is needed. - Reissue a dead key-person link — a party whose child KYC session was deleted, or expired before the person started it, gets a new session with Regenerate Key People KYC Session.
- Open a case in the Business Console to track the back-and-forth internally.
Run the steps from your own front end
The documents and Key People steps can also be driven from your server with your API key, so you keep the user interface and Didit keeps the verification and the decision. Every call is scoped to the KYB session, needs thewrite:businesses permission (reading the extracted parties also accepts read:businesses or read:sessions), and runs the same checks, billing and step advance as the hosted page.
- Upload the corporate documents while the session is on the KYB Documents step.
- Read the parties the documents name, including shareholders and ownership percentages, and show them to your applicant.
- Create, edit and delete party drafts. A draft is not declared and costs nothing.
- Submit the drafts. Didit decides which parties must be verified, creates a KYC session for each one and returns its
kyc_session_urlfor you to send or embed. - Read the consolidated decision from the session, as for the hosted flow.
409 kyb_step_mismatch with the step it is on, and a finished session answers 409 kyb_session_not_writable.
Business profile aggregation
If you passvendor_data on session creation, Didit aggregates all sessions for that business into a single Business entity. Use the entity’s features map to answer “is this business fully verified right now?” without iterating sessions.
Benefits:
- Periodic re-KYB flows append to the same profile.
- Transactions monitored against the same
vendor_datacarry the business’s risk context. - UBOs and officers linked to User entities populate cross-entity relationships.
Best practices
Error handling
Full rate limiting reference.
Next steps
Webhooks
Every KYB event and payload.
Statuses
State machine reference.
Response schema
Decoding the KYB decision.