Skip to main content
POST
Create a webhook endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

HTTPS destination. Private and loopback addresses are rejected unless the instance is configured to allow them.

description
string | null
event_types
string[]

Event types to subscribe to. Omit or leave empty to receive every event type.

headers
object[]

Custom headers sent with every delivery.

rate_limit_per_sec
integer<int32> | null

Deliveries started per second, at most (1 to 1000).

Response

Webhook endpoint created

The signing secret is returned in full here and never again outside the reveal and rotate endpoints.

consecutive_failures
integer<int32>
required

Failures since the last success, reset to 0 on any 2xx.

created_at
string<date-time>
required
disabled
boolean
required
event_types
string[]
required

Subscribed event types. Empty means every event type.

headers
object[]
required

Custom headers sent with every delivery.

id
string<MeteroidId>
required
Example:

"whe_7n42DGM5Tflk9n8mt7Fhc7"

max_in_flight
integer<int32>
required

How many deliveries this endpoint may have in flight at once. Read-only; it is set from the tenant's environment when the endpoint is created.

needs_setup
boolean
required

A sensitive header still waits for its value; the endpoint cannot be enabled until it is set.

url
string
required
secret
string
required
description
string | null
disabled_reason
enum<string> | null
Available options:
MANUAL,
AUTO_FAILURES,
GONE
last_failure_at
string<date-time> | null
last_success_at
string<date-time> | null
paused_until
string<date-time> | null

The endpoint was unreachable several times in a row: nothing is sent before this time, then it is retried one delivery at a time until it answers again.

rate_limit_per_sec
integer<int32> | null

Deliveries started per second, at most.

updated_at
string<date-time> | null