Webhooks

Create an endpoint; the signing secret is shown once

POST
/v1/webhooks

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Request Body

application/json
  1. body
url*string
Formaturi
Lengthlength <= 2048
event_types?array<>
Items1 <= items <= 15
Default
[  "*"]

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com"}'
{  "success": true,  "data": {    "endpoint": {      "id": "string",      "url": "string",      "event_types": [        "string"      ],      "status": "string",      "disabled_reason": "string",      "disabled_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "secret": "string"  },  "meta": {    "request_id": "string"  }}