Obtener configuración de webhook
Devuelve la configuración de webhook de un cliente.
Endpoint: GET /v1/webhook/config
Parámetros
Query
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
client_id | number | No | Cliente a consultar. Requiere BSP_CN si difiere del token. |
Request
curl --request GET \
--url 'https://api.chattigo.com/v1/webhook/config?client_id=6' \
--header 'Authorization: Bearer <token>'Response
Éxito (200)
{
"client_id": 1001,
"url": "https://hooks.chattigo.com/evt",
"active": true
}Errores
| Código | Caso |
|---|---|
400 | client_id inválido |
403 | client_id distinto al del token sin BSP_CN |
404 | No existe configuración para ese cliente |