Webhooks
Create a webhook subscription
Registers a new HTTPS endpoint to receive signed delivery callbacks for the listed event types. Returns the HMAC secret ONCE — store it securely. Subsequent reads only expose the secret_prefix.
post/api/v1/webhook-subscriptions
Request body
Example request
{
"url": "https://hooks.example.com/prezent",
"events": [
"autogeneration.completed",
"autogeneration.failed"
],
"description": "Push completions into our deal-room worker."
}Response
Subscription created. Body contains the secret — the only response that ever exposes it.
Example response
{
"data": {
"id": "whsub_3f7a9b1c8d2e4f5a6b7c8d9e0f1a2b3c",
"url": "https://hooks.example.com/prezent",
"secret_prefix": "whsec_",
"events": [
"autogeneration.completed",
"autogeneration.failed"
],
"description": "Push completions into our deal-room worker.",
"secret": "whsec_4mZkV8t9oFp1qR3sT7uW9xY2zA5bCdEfGhI"
}
}