Skip to content

Verify Code Channel Updated

POST

The event verify_code.channel.updated is triggered when the verification code status changes during processing.

Webhook notifications

Media type application/json
object
id

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
api_version

Version of the notification webhook data structure

string
name

Webhook’s event name

string
created_at

Timestamp when the entity was added to the system by the user

integer
attempt_total

Total number of notification webhook delivery attempts

integer
>= 1 <= 4
attempt_number

Current webhook notification attempt number

integer
>= 1
notification_task_id

Notification task identifier (request identifier)

string format: uuid
name
Allowed values: verify_code.channel.updated
data

Data for verify_code.success, verify_code.failed and verify_code.channel.updated events

object
id

Verify code ID (UUID)

string
user_id

User ID

integer
phone

Phone number

string
routing_strategy

Routing strategy configuration

Array<object>
object
channel
string
Allowed values: telegram sms
timeout_sec

Timeout in seconds. Only applicable for the telegram channel.

integer
sender_id
string
status

Verify code status

integer
delivered_channel

Channel that delivered the code

string | null
cost

Cost in cents

integer | null
currency

Currency code

string | null
code

Verification code

string | null
code_length

Code length

integer | null
payload

Custom payload

string | null
created_at

Creation timestamp

integer
updated_at

Last update timestamp

integer
history

Processing history

Array<object>
object
id
string
channel
string
status
integer
processed_at
integer
external_id
string
is_code_deleted

Whether the verification code has been deleted from storage after being sent.

boolean
Examples
Example updated

Verify Code Channel Updated Event

Event sent when the verification code task status changes during processing

{
"id": "a7b8c9d0-1e2f-4a3b-4c5d-6e7f8a9b0c1d",
"api_version": "2022-05-25",
"name": "verify_code.channel.updated",
"created_at": 1735689650,
"attempt_total": 3,
"attempt_number": 1,
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": 12345,
"phone": "+4915112345678",
"routing_strategy": [
{
"channel": "telegram",
"timeout_sec": 30,
"sender_id": "LOX24"
},
{
"channel": "sms",
"timeout_sec": 60,
"sender_id": "LOX24"
}
],
"status": 5,
"delivered_channel": null,
"cost": 10,
"currency": "EUR",
"code": "1234",
"code_length": 4,
"payload": "session_abc123",
"created_at": 1735689540,
"updated_at": 1735689650,
"history": [
{
"id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
"channel": "telegram",
"status": 20,
"processed_at": 1735689575,
"external_id": "tg_msg_001"
},
{
"id": "b5a6c7d8-e9f0-1234-abcd-ef5678901234",
"channel": "sms",
"status": 5,
"processed_at": 1735689640,
"external_id": "sms_msg_002"
}
],
"is_code_deleted": false
},
"notification_task_id": "88edf307-fd11-4fd1-0a7e-7b65f96ff086"
}

Webhook received

Invalid webhook request’s body structure

Webhook request unauthorized

Webhook access forbidden

Webhook access forbidden

Server error