Aller au contenu principal

GET /events

List all events belonging to the webhook. A filter can be specified in order to get more specific results.

Optional Parameters

ParameterTypeDescription
statusstringThe event status (failed, success)
pagestringThe page number
itemsstringThe number of items per page
subscriptionsstring[]Comma separated values of the events to subscribe on this webhook (e.g message_created)

Example Request

curl -X GET "https://api.callbell.eu/v1/webhooks/events" \
-H "Authorization: Bearer test_gshuPaZoeEG6ovbc8M79w0QyM" \
-H "Content-Type: application/json"

Response

ParameterTypeDescription
webhook_eventsWebhookEventList of webhook events.

Example Response

response.json
{
"webhook_events": [
{
"event": "message_created",
"payload": "message_object",
"response": {
"body": {},
"code": 200,
"headers": {}
},
"success": true,
"createdAt": "2022-11-08T15:41:49Z"
},
{
"event": "message_created",
"payload": "message_object",
"response": {
"body": {},
"code": 200,
"headers": {}
},
"success": true,
"createdAt": "2022-11-08T14:52:31Z"
},
{
"event": "message_created",
"payload": "contact_object",
"response": {
"body": {},
"code": 200,
"headers": {}
},
"success": true,
"createdAt": "2022-11-08T14:51:51Z"
}
],
"meta": {
"page": 1,
"pages": 2
}
}