APIWebhooks

Create a webhook

Create a webhook. Returns the signing secret (shown only here and on rotate).

POST/webhooks

Create a webhook. Returns the signing secret (shown only here and on rotate).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for creating a webhook.

Response Body

application/json

application/json

curl -X POST "https://example.com/webhooks" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "url": "string",    "events": [      "string"    ]  }'
{  "webhook": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "url": "string",    "events": [      "string"    ],    "status": "active",    "disabled_reason": "circuit_breaker",    "failing_since": "2019-08-24T14:15:22Z",    "last_delivery_status": "pending",    "last_delivery_at": "2019-08-24T14:15:22Z",    "format": "single",    "max_events": 0,    "has_custom_headers": true,    "header_keys": [      "string"    ],    "template": "string",    "condition": "string",    "destination": "string",    "var_keys": [      "string"    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "secret": "string"}