Webhooks
Create a webhook
Create a new webhook in an organization.
Payload Requirements
- organization_id, name, and url are required.
- The webhook name must be unique within the organization (409 on conflict).
- auth_type is optional, defaults to BEARER, and cannot be changed after creation.
- auth_token is only valid when auth_type is BEARER, and is write-only — it is never returned in any response.
- timeout_ms is optional, defaults to 30000, and must be between 1000 and 60000.
- headers is optional and holds at most 20 entries; header names must be valid HTTP header names, and connection-management headers are rejected.
- System-managed fields (id, created_at, updated_at) are generated automatically and rejected if provided.
For HMAC_SHA256 webhooks, a signing secret is generated and returned in this response — the only time it is ever returned. Store it securely: only a redacted hint is readable afterwards, and losing the secret means deleting and recreating the webhook.
<Warning>This endpoint is in alpha, read more here.</Warning>
post/v2/webhooks
Request body
Example request
{
"organization_id": "RW50aXR5OjEyMzQ1"
}Response
The created webhook. For HMAC_SHA256 webhooks the response includes signing_secret — the only time it is ever returned.
Example response
{
"id": "RW50aXR5OjEyMzQ1",
"organization_id": "RW50aXR5OjEyMzQ1",
"created_by_user_id": "RW50aXR5OjEyMzQ1"
}