Menu
Your backend (X-Api-Key)
Start contact verification
POST
/v1/contact-verificationsStand-alone email or phone verification (no document or selfie): sends a 6-digit one-time code. Request it only from an action the user takes on your screen, after showing who you are, where the code goes and the verification notice.
Authorization: X-Api-Key (your backend)
| ERROR | WHEN |
|---|---|
| 403 module_disabled | email_verification / phone_verification is off |
| 422 verification.recipient_invalid · verification.country_unavailable | Not a valid address or number, or a country we do not send codes to |
| 422 verification.external_id_required | external_id missing |
| 429 verification.rate_limited | 3 codes to the same recipient within 10 minutes (across records) |
| 429 verification.daily_cap | Your account sent 500 codes on this channel in the last 24 hours |
| 502 verification.provider_failed · 503 verification.unavailable | The provider failed or is not reachable: not charged, the send is not used up; try again |
Errors come as {"detail": {"code": …}}. Rate limits on these endpoints count per calling IP (your server): start 300/min, check and resend 60/min.
The code is valid 10 minutes with 5 attempts; at most 3 sends per record. not_verified (time or attempts ran out) is information, not a rejection. Sandbox: email is really sent; phone codes are not sent and are always 000000.
Request
curl -X POST https://api.idotta.com/v1/contact-verifications \
-H "X-Api-Key: idv_test_XXXX" \
-H "Content-Type: application/json" \
-d '{
"channel": "email",
"recipient": "user@example.com",
"external_id": "user-42"
}'JSON
// Request (phone in E.164; language optional)
{ "channel": "sms", "recipient": "+905321234567", "external_id": "user-42", "language": "en" }
// Response 201
{
"id": "…", "channel": "sms", "status": "pending", "recipient_masked": "+90 ••• •• 67",
"external_id": "user-42", "sends": 1, "sends_left": 2, "attempts_left": 5,
"code_expires_at": "2026-11-18T12:10:00Z", "created_at": "…", "finished_at": null
}