Skip to main content
POST
Update a webhook endpoint

Authorizations

Authorization
string
header
required

API key created in the organization settings.

Headers

Idempotency-Key
string

Unique key for the operation, 1 to 255 characters (a UUID, for example). Repeating the same key with the same body within 24 hours returns the original response instead of running it again.

Path Parameters

endpoint_id
string
required

Endpoint ID (wep_…).

Pattern: ^wep_[A-Za-z0-9_-]+$

Body

application/json

At least one field.

url
string
events
string[]
Minimum array length: 1
description
string | null
status
enum<string>
Available options:
enabled,
disabled

Response

The endpoint.

object
enum<string>
required
Available options:
webhook_endpoint
id
string
required
url
string
required
description
string | null
required
events
string[]
required

Subscribed types, or ["*"] for all.

status
enum<string>
required
Available options:
enabled,
disabled
disabled_reason
enum<string> | null
required

failing: disabled after 5 days of failures.

Available options:
manual,
failing,
null
api_version
string
required
livemode
boolean
required
failing_since
string<date-time> | null
required

When the current run of failures started; null while the endpoint is healthy.

last_success_at
string<date-time> | null
required
previous_secret_expires_at
string<date-time> | null
required

Until when the previous secret still signs, after a rotation.

created_at
string<date-time>
required
updated_at
string<date-time>
required