Vai al contenuto principale
POST
curl
Didit Phone Verifications API sposta una verifica in attesa al canale successivo senza attendere il timer di fallback. Invia channel per passare invece a un canale specifico. L’ID della verifica e la scadenza restano invariati, ma il nuovo canale può consegnare un codice diverso da quelli degli invii precedenti: solo un nuovo tentativo garantisce lo stesso codice. Controlla status nella risposta HTTP 200. Un invio riuscito restituisce pending. Se la consegna è bloccata, la verifica termina e la risposta restituisce blocked con reason. Per reinviare sull’ultimo canale, effettua un nuovo tentativo di verifica. Una verifica terminata restituisce 409 already_final. Una sequenza senza canali rimanenti restituisce 409 no_next_channel, e un canale non consentito per la verifica restituisce 400 channel_not_allowed. Una finestra chiusa restituisce 410 expired. Il limite di tre invii restituisce 429 max_sends_reached, e il limite orario di reinvii restituisce 429 velocity_limit. Possono essere modificate solo le verifiche avviate dalla tua applicazione con invio: un passaggio telefonico di una sessione di verifica ospitata è di sola lettura qui e restituisce 404 not_found. Mentre un altro invio dello stesso numero ha il proprio turno e questo non riesce a ottenerlo in tempo, la risposta è 409 verification_in_progress; se Didit non riesce a stabilire se un altro invio è in corso, risponde 503 phone_send_unavailable e non viene inviato nulla, quindi riprova tra poco.

Autorizzazioni

x-api-key
string
header
obbligatorio

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Intestazioni

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Parametri del percorso

verification_id
string<uuid>
obbligatorio

The verification.

Esempio:

"c9b18621-9f8f-4590-a3b4-f8ebea4baa7d"

Corpo

application/json

The channel to jump to; left out, the next one in the order.

The channel to move to.

channel
enum<string>

Jump to this channel instead of the next one.

Opzioni disponibili:
silent,
sms,
whatsapp,
telegram,
voice,
rcs,
viber,
zalo,
email,
push,
totp,
passkey
Esempio:

"sms"

Risposta

Inspect status. A successful send returns pending. A blocked attempt ends the verification and returns blocked with a reason.

verification_id
string<uuid>
obbligatorio

The verification.

Esempio:

"c9b18621-9f8f-4590-a3b4-f8ebea4baa7d"

channel
enum<string>
obbligatorio

The channel trying now.

Opzioni disponibili:
silent,
sms,
whatsapp,
telegram,
voice,
rcs,
viber,
zalo,
email,
push,
totp,
passkey
Esempio:

"sms"

status
enum<string>
obbligatorio

A successful send remains pending. A blocked send ends the verification.

Opzioni disponibili:
pending,
blocked
Esempio:

"pending"

reason
string | null

Returned on a blocked send. May be null when no reason is available.

Esempio:

"suspicious"

Ultima modifica il 24 novembre 2026