Ir al contenido

Webhook de Suscripción de Teléfono

POST

Se activa cuando un número de teléfono se suscribe mediante el envío de un formulario

Media type application/json
object
id

UUID único de entidad

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

Versión de la estructura de datos de notificación

string
name

Nombre del evento de Webhook

string
created_at

Fecha en la que se añadió la entidad al sistema por el usuario

integer
attempt_total

Número total de intentos de entrega de webhooks de notificación

integer
>= 1 <= 4
attempt_number

Número de intento de notificación webhook actual

integer
>= 1
notification_task_id

Notification task identifier (request identifier)

string format: uuid
name
Allowed values: phone.subscribe
data
object
phone
required

Phone number that subscribed

string
user_id
required

ID of the user associated with the phone number

integer
created_at
required

Unix timestamp when the subscribe occurred

integer
campaign_code
required

Campaign code associated with the subscribe

string
additional_data
required

Additional data related to the subscribe event

Array
short_link_code
required

Short link code associated with the subscribe

string
group_id
required

ID of the group associated with the phone subscribe

integer
Examples
Example subscribe

Evento de suscripción de teléfono

{
"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 recibido

Estructura del cuerpo de la solicitud de webhook no válida

Solicitud de webhook no autorizada

Acceso Webhook prohibido

No se ha encontrado el punto final del webhook

Error del servidor