Create a webhook endpoint
POST
Subscribes an HTTPS URL to document events in the API key's mode. The signing secret is returned only here. Requests follow the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature). Needs a full-access key.
header
AuthorizationBearer <token>Authorization: Bearer dr_live_… or dr_test_…
application/json- body
url*stringPublic https:// URL that answers 2xx within 10 seconds.
Length
length <= 2048events*array<>Items
1 <= itemsdescription?stringLength
length <= 200OK
application/json- response
id*stringobject*unknownurl*stringdescription*stringevents*array<>enabled*booleantest_mode*booleancreated_at*stringFormat
date-timesecret*stringwhsec_… signing secret; store it now.
curl -X POST 'https://druckling-nine.vercel.app/v1/webhook_endpoints' \ -H 'Content-Type: application/json' \ -d '{ "url": "string", "events": [ "document.rendered" ]}'Example Response201
{ "id": "string", "object": "webhook_endpoint", "url": "string", "description": "string", "events": [ "document.rendered" ], "enabled": true, "test_mode": true, "created_at": "2019-08-24T14:15:22Z", "secret": "string"}