Register a webhook endpoint. CallingBox will POST signed payloads to
url whenever a subscribed event fires. The returned
signing_secret is shown only once — store it securely and use it
to verify the CallingBox-Signature header on inbound requests.
curl --request POST \
--url https://api.callingbox.io/v1/webhook_endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://your-server.com/callingbox-webhook",
"description": "<string>",
"enabled_events": [
"<string>"
]
}
'{
"signing_secret": "whsec_1234567890abcdef1234567890abcdef",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"enabled_events": [
"<string>"
],
"status": "enabled",
"disabled_reason": "<string>",
"disabled_at": "2023-11-07T05:31:56Z",
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}API key starting with sk_
Endpoint created
The HMAC-SHA256 signing secret. Returned only on create and rotate -- CallingBox never shows it again.
"whsec_1234567890abcdef1234567890abcdef"
enabled, disabled Populated when CallingBox auto-disables the endpoint after 10
consecutive exhausted deliveries (too_many_failures) or when
manually disabled.
Consecutive exhausted deliveries. Resets on success.
curl --request POST \
--url https://api.callingbox.io/v1/webhook_endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://your-server.com/callingbox-webhook",
"description": "<string>",
"enabled_events": [
"<string>"
]
}
'{
"signing_secret": "whsec_1234567890abcdef1234567890abcdef",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"enabled_events": [
"<string>"
],
"status": "enabled",
"disabled_reason": "<string>",
"disabled_at": "2023-11-07T05:31:56Z",
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}