Skip to content
Dashboard
Theme
Theme

Update a webhook endpoint

PATCH /v1/webhook_endpoints/{endpoint}: Update a webhook endpoint.

View Markdown

PATCH /v1/webhook_endpoints/{endpoint}

Scope
webhooks:write
Auth
Secret key (sk_…)
Since
1.0
  • endpoint string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • format string

    Delivery format. Existing deliveries retain their captured format after endpoint changes.

    one of native, workos · default "native"

  • url string (uri)

  • events array of string

    min items 1

  • version string

  • enabled boolean

Errors share one shape; see the error code catalogue.

curl -X PATCH \
"https://api.ohauthcat.com/v1/webhook_endpoints/whep_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"format": "native",
"url": "https://app.acme.com/callback",
"events": [
"user.signed_in"
],
"version": "1.0",
"enabled": true
}'
Response 200
{
"format": "native",
"id": "whep_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "webhook_endpoint",
"url": "https://app.acme.com/callback",
"events": [
"user.signed_in"
],
"version": "1.0",
"enabled": true,
"created_at": "2026-01-15T09:30:00Z"
}