Get webhook configuration
Returns the webhook configuration of a client.
Endpoint: GET /v1/webhook/config
Parameters
Query
| Parameter | Type | Required | Description |
|---|---|---|---|
client_id | number | No | Client to query. Requires BSP_CN if it differs from the token. |
Request
curl --request GET \
--url 'https://api.chattigo.com/v1/webhook/config?client_id=6' \
--header 'Authorization: Bearer <token>'Response
Success (200)
{
"client_id": 1001,
"url": "https://hooks.chattigo.com/evt",
"active": true
}Errors
| Code | Case |
|---|---|
400 | Invalid client_id |
403 | client_id different from the token without BSP_CN |
404 | No configuration exists for that client |