Skip to content

Phone Subscribe Webhook

POST

Triggered when a phone number subscribes by form submit

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
Example
2022-05-25
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
Example
4
attempt_number

Current webhook notification attempt number

integer
>= 1
Example
1
data

Event-specific data payload

object
notification_task_id

Notification task identifier (request identifier)

string format: uuid
Example
3378de83-de66-4de8-9d29-2b10d41bb641
name
Allowed values: phone.subscribe
data
object
phone
required

Phone number that subscribed

string
Example
+99559122567
user_id
required

ID of the user associated with the phone number

integer
Example
21911
created_at
required

Unix timestamp when the subscribe occurred

integer
Example
1757926648
campaign_code
required

Campaign code associated with the subscribe

string
Example
1dkGdCC2xnBc
additional_data
required

Additional data related to the subscribe event

Array
Example
[]
short_link_code
required

Short link code associated with the subscribe

string
Example
baaIoP
group_id
required

ID of the group associated with the phone subscribe

integer
Example
123
Examples

Phone subscribe event

{
"id": "ed18a290-766d-46cf-ab4e-6fa421405fbd",
"data": {
"phone": "+99559122567",
"user_id": 21911,
"created_at": 1757926648,
"campaign_code": "1dkGdCC2xnBc",
"additional_data": [],
"short_link_code": "baaIoP",
"group_id": 123
},
"name": "phone.subscribe",
"created_at": 1757926648,
"api_version": "2022-05-25",
"attempt_number": 1,
"attempts_total": 4
}

Webhook received

Invalid webhook request’s body structure

Webhook request unauthorized

Webhook access forbidden

Webhook access forbidden

Server error