Webhooks

Update webhook endpoint

Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible.

patch/v1/management/webhooks/{webhookId}

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/management/webhooks/{webhookId}
  • Auth: HTTP bearer

Path parameters

webhookIdstring required

Request body

urlstring uri

Public HTTPS receiver URL. Credentials, query strings, fragments, private or reserved network targets and redirects are rejected.

eventsstring[]

Supported event subscriptions; duplicates are removed.

descriptionstring nullable
is_activeboolean

Resume or pause delivery. Resuming resets the consecutive failure count.

Response

Update webhook endpoint result

idstring required
object'webhook_endpoint' required
urlstring required
eventsstring[] required
is_activeboolean required
descriptionstring nullable required
created_atstring date-time required
updated_atstring date-time required
last_delivered_atstring date-time nullable required
failure_countinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.