Webhooks

Create webhook

POST
/v1/webhooks

Authorization

basic auth
AuthorizationBasic <token>

Authorization header with value of Basic <auth string> where the auth string value is a base64 encoded string of <client id>:<client secret>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/webhooks" \  -H "Content-Type: application/json" \  -d '{    "webhook": "https://www.example.com/my-webhook",    "events": [      "policy_bind_complete"    ]  }'
{  "events": [    "policy_bind_complete"  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "webhook": "https://www.example.com/my-webhook",  "signature_key": "wh_AsDfASjklh123hGh3asHDgfdDfgh",  "platform_level": true,  "version": 0,  "created_at": "2019-08-24T14:15:22Z"}