Create a webhook endpoint
/webhook-endpointsUse this to receive events at your URL. The first answer holds the signing secret: store it to verify Clouduxe-Signature. A replay of the same Idempotency-Key answers secret null; if you lost it, rotate it. The account owner is emailed. At most 10 endpoints.
- Token
- Bearer API token: cxk_live_ followed by 46 letters and digits
- Scope
webhooks:write- Header
Authorization: Bearer $CLOUDUXE_API_KEY
How tokens and scopes work: Authentication and scopes.
Clouduxe-VersionstringOptionalThe API version to use, such as 2026-12-01. Omit it to use your token's version.
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$Idempotency-KeystringRequiredA unique key for this logical request, 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen; a UUID is best. Retrying with the same key is safe: the change happens once and the retry gets the same answer. Keys are kept 48 hours.
pattern ^[A-Za-z0-9_.:-]{1,128}$
Body
Requiredurlstring (uri)RequiredAn https URL on port 443 or 8443, with a public DNS name.
max length 2048descriptionstringOptionalYour description.
max length 200enabledEventsarray of stringRequiredEvent types to send, or ["*"] for all.
min items 1apiVersionstringOptionalThe API version to render payloads in. Default: the token's version.
201Created The endpoint, with its secret.
objectstringRequiredThe object's type. Always "webhook_endpoint".
idstring (uuid)RequiredThe endpoint's id.
urlstring (uri)RequiredThe https URL events are POSTed to.
descriptionstring or nullRequiredYour description.
enabledEventsarray of stringRequiredThe event types sent here, or ["*"] for all.
statusstringRequiredenabled, or disabled (by you, or after 3 days of failed deliveries).
One ofenableddisabledapiVersionstringRequiredThe API version event payloads are rendered in.
secretstring or nullRequiredThe signing secret, cxwhsec_ followed by 43 characters. Returned only in the first answer when the endpoint is created and when its secret is rotated. A replay of the same Idempotency-Key answers null: if you lost the secret, rotate it.
createdByTokenIdstring (uuid) or nullRequiredThe API token that created the endpoint, or null when it was made in the panel.
updatedByTokenIdstring (uuid) or nullRequiredThe API token that last changed the URL, events or secret, or null when the panel did.
createdAtstring (date-time)RequiredWhen it was created.
livemodebooleanRequiredTrue for objects of your live account.
Every response
- 201CreatedThe endpoint, with its secret.
- 400Bad requestThe request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.
- 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
- 403ForbiddenThe token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.
- 409ConflictThe request conflicts with the object's current state. Codes: webhook_endpoint_limit, idempotency_in_progress.
- 413Too largeThe request body is too large. Codes: request_too_large.
- 415Unsupported media typeUnsupported media type. Codes: unsupported_media_type.
- 422UnprocessableThe request is well formed but cannot be carried out. Codes: webhook_url_refused, idempotency_mismatch.
- 429Too many requestsA rate limit was reached. Codes: rate_limited.
- 500Server errorUnexpected error. Codes: internal_error.
- 503UnavailableTemporarily unavailable. Codes: unavailable, outcome_unknown, limits_unavailable.