Developer documentation
Add identity verification to your product
The myid API starts a verification session for a flow you built in the panel. Your customer opens a secure link, completes the checks, and you get the result by webhook. Every request below is real and works with your API key.
POST /v1/verifications
curl -X POST https://api.myid.ir/v1/verifications \
-H "Authorization: Bearer $MYID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"flowCode": "01JD7YQK2D1C4M2V7R9T3B6N8P",
"externalRef": "customer-1042"
}'Start here
QuickstartCreate an API key, start a verification session and receive the result by webhook in five steps.Secure verification linkHow the one-time myid verification link works: delivery to the customer, encryption, device binding, expiry and redirect.WebhooksReceive verification events from myid: event types, payload, headers, HMAC-SHA256 signature check in four languages, retries and testing.OverviewBase URL, request format and every endpoint of the myid public API v1.
How an integration works
- 1Create a sessionYour server calls
POST /v1/verificationswith the code of a published flow and gets a one-time link. - 2The customer verifiesThe customer opens the link on their phone and goes through the steps of your flow: inquiries, card OCR, selfie.
- 3You receive the resultmyid sends
verification.completedto your webhook with the outcome and the result of every step.
Services you can put in a flow
See every serviceOfficial registry inquiries
Documents and face
Contact details
API basics
- AuthenticationHow myid API keys work: the Bearer header, the required IP allowlist, rotation with a grace period, expiry and revocation.
- ErrorsThe response envelope, HTTP status codes, validation errors and the common error messages of the myid API.
- PaginationHow list endpoints page through results: page, pageSize, sort and the list response shape.
- Idempotent requestsRetry POST /v1/verifications safely with the Idempotency-Key header and never create a session twice.
- Rate limitsHow many requests per minute each myid API key can make and what to do when you get HTTP 429.
- Verification sessionsThe lifecycle of a myid verification session: statuses, outcomes, options such as externalRef and metadata, expiry and cancel.
- FlowsHow flows define the checks of a myid verification: simple and advanced modes, outcomes, publishing and session snapshots.
- Reading resultsHow to read the steps of a myid verification session: outcomes, scores, reasons and the data each check returns.