Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Authorizations

Authorization
string
header
required

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

Headers

x-api-version
string
default:2.4.0
required

Body

application/json
id
string
required

Your ID for the webhook: letters, digits, - and _. It can't be changed after creation.

Required string length: 1 - 256
Pattern: ^[a-zA-Z0-9_-]+$
url
string
required

The https URL Autumn sends events to. Localhost and private-network addresses are rejected; tunnels such as ngrok work.

Pattern: ^[Hh][Tt][Tt][Pp][Ss]:\/\/
events
enum<string>[]
required

The events sent to this webhook. At least one. vercel.* events can't be mixed with other events.

Minimum array length: 1

An event type the webhook receives.

Available options:
customer.products.updated,
customer.threshold_reached,
balances.usage_alert_triggered,
balances.limit_reached,
billing.auto_topup_failed,
billing.auto_topup_succeeded,
billing.updated,
invoice.finalized,
vercel.resources.deleted,
vercel.resources.provisioned,
vercel.resources.rotate_secrets,
vercel.webhooks.event
description
string

A note for your own reference.

disabled
boolean

When true, no events are sent to the webhook.

Response

200 - application/json

OK

id
string
required

The webhook's ID. Webhooks made in the dashboard show their ep_… ID.

url
string
required

The URL Autumn sends events to.

description
string | null
required

A note for your own reference.

events
string[]
required

The events sent to this webhook, as WebhookEventType names; a type newer than your client is returned as-is. Empty only for a webhook made in the dashboard that receives every event.

disabled
boolean
required

When true, no events are sent to the webhook.

created_at
number
required

When the webhook was created, ms since epoch.

updated_at
number
required

When the webhook was last changed, ms since epoch.

secret
string
required
read-only

The webhook's signing secret. Shown once, here: store it before you discard the response.