Docs
API 1.39
Status
Webhooks

Change a webhook endpoint

PATCH /v1/webhooks/{id}: Change a webhook endpoint

PATCH /v1/webhooks/{id}
Operation idupdateWebhook
Key scopeadmin: admin keys only
SectionWebhooks

#Parameters

NameInTypeRequiredDescription
idpathstringyespattern ^whk_[0-9a-hjkmnp-tv-z]{26}$

#Request body

FieldTypeRequiredDescription
urlstring (uri)
eventsstringmin items 1 · max items 50
descriptionstring or nullmax length 1000
mode"live", "test", "both"
format"standard", "discord", "slack"
status"active", "disabled"

#Example request

curl -X PATCH "https://api.kaab.ist/v1/webhooks/{id}" \
  -H "Authorization: Bearer $KAAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"disabled"}'

#Responses

#200

Webhook

Webhook

{
  "id": "whk_01j9zqk3q7m4n5p6r7s8t9v0wx",
  "object": "webhook",
  "url": "https://hooks.acme.test/kaab",
  "events": [
    "job.*",
    "credits.low"
  ],
  "mode": "both",
  "format": "standard",
  "status": "active",
  "description": null,
  "disabled_reason": null,
  "previous_secret_expires_at": null,
  "created_at": "2026-09-18T10:00:00Z"
}

#Errors

Every error answers with the error envelope; its code is one of the error codes.

StatusWhen
400request_invalid: request validation failed
401Missing or invalid API key
402insufficient_credits: top up to continue
403The key's scope does not cover this operation
404Resource not found
409Conflicting state (see error.code)
422Semantically invalid request (see error.code)
429Rate limited; see Retry-After
500internal: unexpected server error

Was this page helpful?