ResoneraDocs
Webhooks

Create a webhook endpoint

POST
/webhooks/endpoints

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.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Request Body

application/json
  1. body
url*string
Formaturi
events?array<>

Events to receive. Defaults to all.

description?string
Lengthlength <= 200

Response Body

Created. The signing secret is returned only once.

application/json
  1. response
id?string
Formatuuid
url?string
Formaturi
description?string
events?array<>
enabled?boolean
last_success_at?|
Formatdate-time
last_failure_at?|
Formatdate-time
created_at?string
Formatdate-time
updated_at?string
Formatdate-time
secret?string
curl -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"}