Create a webhook
POST/v1/webhooks
Requires an API key with the webhooks:write scope. About keys and scopes
Works with integration and partner keys, not agent keys.
A repeat after success is refused with 409 ALREADY_EXISTS: read the one the first created. About idempotency
Registers an HTTPS endpoint for the listed events, or * for every event including ones added later. Deliveries are signed with the returned secret (only this answer and a keyed replay of it within 24 hours carry it; reads never do), retried with backoff, and paused by a circuit breaker while the endpoint keeps failing; see the webhooks guide. This is the subscribe call Zapier and n8n make when a workflow turns on. A URL already subscribed returns 409 ALREADY_EXISTS; edit its events instead. Agent keys cannot hold webhooks:write.
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$Idempotency-KeystringoptionalMakes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with
Idempotency-Replay: true. The same key with another request is 409IDEMPOTENCY_KEY_REUSED; while the first is still running, 409IDEMPOTENCY_KEY_IN_USE; after anunsafefirst request failed or never returned, 409IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.8–255 characters
Request body
urlstringrequiredThe HTTPS endpoint that receives deliveries; it must resolve to a public host.
uri · up to 2,000 characters
eventsstring[]requiredEvent types to receive, or
["*"]alone for every event, including future ones.at least 1 item · at most 14 items
sourcestringoptionalThe tool subscribing, so the dashboard can say who made it.
one of
zapier,n8n
Returns
Returns 201 Created with a CreatedWebhook in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.
201 CreatedThe subscription and its signing secret.409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).
idstringrequireduuid
urlstringrequireduri
eventsstring[]requiredThe event types it receives.
sourcestring | nullrequiredThe integration that created it; null when created directly.
one of
zapier,n8nstatusstringrequireddisabledis set only by the platform;activere-enables it.one of
active,paused,disabledpreviousSecretExpiresAtstring | nullrequiredUntil when the replaced secret still signs requests after a rotation.
date-time
createdAtstringrequireddate-time
secretstringrequiredSigns every delivery; shown once, here.
starts_with · pattern
^whsec_.*
Headers on 201 Created
Idempotency-Replaystringoptionaltruewhen this is the stored response to an earlier request with the same key.one of
true