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

FIELDDESCRIPTION
channelemail · sms · whatsapp
recipientAn email address, or a phone number in E.164 (+ and country code) for SMS/WhatsApp
languageOptional, 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.

CODESESSIONMEANING
delivery.module_offnot created (422)The channel's module is off
delivery.recipient_invalidnot created (422)Not a valid email address or phone number
delivery.country_unavailablenot created (422)We do not send SMS/WhatsApp to that country
delivery.sandbox_unavailablenot created (422)SMS or WhatsApp with a sandbox key
delivery.provider_failedcreatedThe provider refused the message; not charged. Send sdk_url another way or try again with Create new link
delivery.limitcreatedThe session already had 3 sends
delivery.daily_capcreatedYour 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