Menu
Integration
Sending the link
Instead of handing sdk_url to the user yourself, we can send the verification link by email, SMS or WhatsApp. Add delivery to Create session (or to Create new link for a running session).
curl -X POST https://api.idotta.com/v1/sessions \
-H "X-Api-Key: idv_live_XXXX" \
-H "Content-Type: application/json" \
-d '{
"applicant_external_id": "user-42",
"delivery": {
"channel": "sms",
"recipient": "+233241234567",
"language": "fr"
}
}'JSON
// Response 201: the usual session fields, plus the send result
{
"session_id": "550e8400-…",
"sdk_url": "https://verify.idotta.com/session/550e8400-…?token=eyJ…",
…
"delivery": { "channel": "sms", "status": "sent", "code": null }
}Turning it on
- Each channel is its own module (
link_email·link_sms·link_whatsapp), off until you enable it in Panel → My profile → Modules. The same tab shows the SMS and WhatsApp price for any country. - Email is charged per message, SMS per segment and WhatsApp per message by destination country (pricing). SMS and WhatsApp prices follow the provider's cost and are reviewed weekly, so a country's price can change; Panel → My profile → Modules always shows the current one. You are charged only when the provider accepts the message.
- Sandbox: email only, free. SMS and WhatsApp return
422 delivery.sandbox_unavailable.
The request
| FIELD | DESCRIPTION |
|---|---|
| channel | email · sms · whatsapp |
| recipient | An email address, or a phone number in E.164 (+ and country code) for SMS/WhatsApp |
| language | Optional, BCP 47 (fr, pt-BR …; the WebSDK's 57 languages). Falls back to the base language, then English. WhatsApp uses one approved template and is not translated |
The result
Input problems are caught before the session is created: you get 422 with {"detail": {"code": …}} and nothing is opened or charged. Problems at send time do not undo the session: it is created, sdk_url works, and delivery.status is failed with a code.
| CODE | SESSION | MEANING |
|---|---|---|
delivery.module_off | not created (422) | The channel's module is off |
delivery.recipient_invalid | not created (422) | Not a valid email address or phone number |
delivery.country_unavailable | not created (422) | We do not send SMS/WhatsApp to that country |
delivery.sandbox_unavailable | not created (422) | SMS or WhatsApp with a sandbox key |
delivery.provider_failed | created | The provider refused the message; not charged. Send sdk_url another way or try again with Create new link |
delivery.limit | created | The session already had 3 sends |
delivery.daily_cap | created | Your account sent 500 SMS (or 500 WhatsApp messages) in the last 24 hours; the cap protects you against SMS pumping. Ask us to raise it |
The link we send
- It is a short link (
…/l/<code>), valid for the whole session (60 min), not just the 15 minutes ofsdk_url's token: each opening issues a fresh token. - Resend to the same or another address with
POST /v1/sessions/{id}/sdk-linkand adeliveryobject. At most 3 sends per session, counting the first. - The text is fixed and you cannot change it: email subject and button "Verify your identity", body "Verification requested by" your registered name; SMS "<your name>: Verify your identity <link>". Emails come from
noreply@idotta.com, or from your own address with White label. - SMS in a language with non-GSM characters (for example Turkish, Arabic, Russian) uses 70 instead of 160 characters per segment, so it can cost more segments.
- Some countries are not served for SMS (for example Türkiye, where links from foreign senders are blocked); you get
delivery.country_unavailableup front. - We do not store the full address or number: the session keeps a masked version, deleted with the session's personal data.