Skip to main content
POST
Create 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.

Body

application/json
url
string
required

Public HTTPS URL, up to 2,048 characters, without embedded credentials.

events
string[]
required

Catalog types, or ["*"] alone for all.

Minimum array length: 1
description
string
Maximum string length: 255

Response

The endpoint, with the signing secret.

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
secret
string
required

Signing secret (whsec_…). It only shows here.