Webhooks
Update a webhook endpoint
PATCH
/webhooks/{id}Needsworkspace.settingsTurning an endpoint back on clears its failure streak; turning it off stops queued retries.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
id*integerThe endpoint's id.
Range
1 <= valueRequest Body
application/json- body
url?stringLength
1 <= length <= 2048events?array<>Items
1 <= items <= 9description?|nullactive?booleanResponse Body
OK
application/json- response
webhook*Shell
curl -X PATCH 'https://app.cueston.com/api/webhooks/1' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
JSON
{
"webhook": {
"id": 42,
"url": "https://app.acme.com/settings/billing",
"description": "string",
"events": [
"string"
],
"active": true,
"disabledReason": "string",
"disabledAt": "2026-10-26T09:30:00Z",
"failingSince": "2026-10-26T09:30:00Z",
"lastSuccessAt": "2026-10-26T09:30:00Z",
"lastFailureAt": "2026-10-26T09:30:00Z",
"secretHint": "whsec_9vY2…",
"previousSecretExpiresAt": "2026-10-26T09:30:00Z",
"createdAt": "2026-10-26T09:30:00Z",
"updatedAt": "2026-10-26T09:30:00Z"
}
}