Webhooks
Create a webhook endpoint
POST
Creates a webhook endpoint. The URL must use HTTPS on a public host. The response includes the endpoint's signing secret, which is returned only once. Each account can have up to 10 endpoints.
Requires the webhooks:manage scope.
apiKeyheader
X-API-Key<token>Your API key, from Settings → API access in the dashboard.
application/json- body
url*stringFormat
urievents?array<>Events to receive. Defaults to all.
description?stringLength
length <= 200Created. The signing secret is returned only once.
application/json- response
id?stringFormat
uuidurl?stringFormat
uridescription?stringevents?array<>enabled?booleanlast_success_at?|Format
date-timelast_failure_at?|Format
date-timecreated_at?stringFormat
date-timeupdated_at?stringFormat
date-timesecret?stringcurl -X POST "https://example.com/webhooks/endpoints" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com", "description": "string", "events": [ "call.ended" ], "enabled": true, "last_success_at": "2019-08-24T14:15:22Z", "last_failure_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "secret": "string"}