Envie
ReferenceApi

Create a webhook endpoint

POST
/v1/webhooks

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 '{    "url": "http://example.com",    "events": [      "item.added"    ]  }'
{  "id": "string",  "url": "http://example.com",  "events": [    "item.added"  ],  "disabledAt": "2019-08-24T14:15:22Z",  "failCount": 0,  "createdAt": "2019-08-24T14:15:22Z",  "secret": "string"}