Create a webhook endpoint
curl --request POST \ --url https://example.com/api/v1/webhook-endpoints \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "disabled": true, "eventTypes": [ "example" ], "name": "example", "url": "https://example.com" }'Creates an endpoint from a name, an HTTPS URL and the events it subscribes to. A workspace has at most 10. The response is the only one that carries the signing secret, shown this once. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Create the endpoint switched off.
Public event names the endpoint subscribes to, from GET /webhook-event-types, for example ticket.created.
Unique endpoint name in the workspace.
HTTPS URL that receives the events. Validated against private addresses and stored encrypted; it is never returned.
Example generated
{ "disabled": true, "eventTypes": [ "example" ], "name": "example", "url": "https://example.com"}Responses
Section titled “Responses”The created endpoint and its signing secret.
object
A webhook endpoint together with its signing secret, returned by create and rotate only.
object
Host of the endpoint’s URL. The full URL is never returned.
The signing secret (whsec_...). It is returned this once and cannot be read again.
Whether the endpoint receives events.
Example
{ "data": { "status": "ACTIVE" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC