Create a webhook subscription
Creates a new webhook subscription or updates an existing one if a subscription with the same URL already exists for the tenant. Accepts url (required), eventTypes, name, secret, isActive, maxRetries, timeoutSeconds, description, headers, and metadata. Validates all fields before persisting. Requires ADMIN_TENANT permission.
Authorizations
Server-to-server authentication. Generate a token in the admin UI at
Settings → Developers → API Access. Send the raw token in the
Api-Token header — there is no Bearer prefix.
Tokens can be marked read-only at creation time, in which case the API
rejects any non-GET request with 403 Forbidden.
Body
The new WebhookSubscription resource
2550 <= x <= 101 <= x <= 300Response
WebhookSubscription resource created
2550 <= x <= 101 <= x <= 300"/api/v1/tenants/1"

