Guides
Secure verification link
Every session comes with a one-time link. The customer opens it on their phone or computer and goes through your flow. No app or account is needed.
The link
The url in the create response looks like https://verify.myid.ir/v/…. For English it has an /en prefix. It carries a 256-bit random token. myid stores only a SHA-256 hash of the token.
The link is returned only once, in the create response. Store it or send it to the customer right away. If you lose it, cancel the session and create a new one.
Delivering the link
- Redirect: send the customer from your site or app straight to the link.
- Message: send it by SMS or email from your own system.
- QR code: show it on desktop so the customer can continue on their phone camera.
What the customer sees
The link page shows your company name and the steps of the flow, in Persian or English. The flow decides which step comes next on the server, based on each result. Styles you set for the flow in the panel, such as colours and font, are applied.
Security
- The token is random and long enough that it cannot be guessed.
- Data between the browser and myid is encrypted end to end inside TLS (X25519, HKDF-SHA256 and AES-256-GCM).
- The session is bound to the first device that opens it. Opening the link on another device shows a message instead of the steps.
- The link stops working when the session expires, is cancelled or is completed.
- Raw images and documents never leave myid in the API or webhooks. You receive results only.
Sending the customer back
If you set redirectUrl, the final screen shows a button that takes the customer to that address after the session is completed.
Do not treat a visit to your redirect address as proof of the result. Anyone can open that address. Decide only from the webhook or from
GET /v1/verifications/:id.