For a full integration walkthrough, see KYC for marketplaces.
What you get
Pre-account verification
Verify sellers or buyers during your onboarding, even without a DHMAD account
Email-based flow
DHMAD emails the Didit link — the session URL is never returned to your API
Automatic linking
Approved KYC attaches when the user registers with the same email
Webhooks
identity.verification.updated and identity.verification.linked eventsEndpoints
All endpoints require API key authentication. They do not require associating your developer account with a user account.
Typical flow
- Create —
POSTwithemail, optionalexternal_user_id, optionalredirect_url - User completes Didit — from the DHMAD verification email (production only)
- Webhook —
identity.verification.updatedwhen status becomesapprovedorrejected - User registers on DHMAD — same email, email OTP verified
- Webhook —
identity.verification.linkedwithlinked_user_id
Important constraints
Response fields (common)
Error codes
Sandbox behavior
When usinghttps://sandbox.dhmad.tn/api/v1 with a sk_sandbox_* key:
- New verifications are auto-approved immediately
- No Didit flow and no verification email
- Webhook
identity.verification.updatedfires withstatus_source: "sandbox"
Monitoring in the dashboard
View sessions started by your API keys in Developer Dashboard → Identity verifications. Document images and full Didit payloads are not shown — use webhooks or the GET endpoints from your backend.Related
- KYC for marketplaces — step-by-step integration guide
- Webhooks — event payloads
- OAuth userinfo — read
kyc_verifiedfor connected users