Skip to main content
PATCH
Update a webhook endpoint
Partially updates a webhook endpoint; omitted fields are preserved. To rotate the signing secret, use Rotate signing secret. Setting status to DISABLED pauses the endpoint: queued deliveries stay PENDING and go out once you set it back to ACTIVE, while events that fire while it is disabled do not create deliveries. Setting status to ARCHIVED is permanent: queued deliveries fail with endpoint_archived, and later requests for the endpoint return 404.
For usage patterns and examples, see the Webhooks guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

webhook_endpoint_id
string<uuid>
required

The webhook endpoint's id.

Body

application/json

Fields to update

Changes a webhook endpoint. Send only the fields to change.

description
string

Updated description

Example:

"Updated webhook receiver"

enabled_events
string[]

Replace the event type subscription list

Example:
metadata
any

Replace metadata

status
enum<string>

Endpoint lifecycle state (ACTIVE resumes deliveries, DISABLED pauses queued deliveries, ARCHIVED permanently stops deliveries and fails any queued items).

Available options:
ACTIVE,
DISABLED,
ARCHIVED
Example:

"DISABLED"

url
string

New HTTPS URL for deliveries

Example:

"https://example.com/webhooks/scrip"

Response

Updated endpoint

A webhook endpoint: a URL that receives the event types it subscribes to.

circuit_broken_until
string

When set and in the future, the circuit breaker has paused deliveries to this endpoint until this time (sustained delivery failures)

Example:

"2027-12-31T23:59:59Z"

created_at
string<date-time>

When the endpoint was created

Example:

"2027-01-15T10:30:00Z"

description
string

Human-readable label

Example:

"Production webhook receiver"

enabled_events
string[]

Subscribed event types

Example:
id
string<uuid>

The id of the webhook endpoint. Use it in webhook_endpoint_id paths.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

metadata
any

Arbitrary metadata

rate_limited_until
string

When set and in the future, 429 rate-limit backoff has paused deliveries to this endpoint until this time

Example:

"2027-12-31T23:59:59Z"

secret
string

Signing secret. Scrip returns it only when you create the endpoint or rotate the secret, so store it right away.

Example:

"whsec_3f9a1c7e5b2d84060e1a9c3d7f5b2e8a4c6d0f1b3a5e7c9d2f4b6a8e0c1d3f57"

status
enum<string>

The endpoint's lifecycle state.

Available options:
ACTIVE,
DISABLED,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When the endpoint was last modified

Example:

"2027-01-15T10:30:00Z"

url
string

Destination URL for deliveries

Example:

"https://example.com/webhooks/scrip"