client.webhooks.create()
The response is the only one that carries the signing secret; store it.
create(params: CreateWebhookEndpointParams): Promise<APIResponse<WebhookEndpointCreated>>- stringheaderrequired
Your API key.
Authorization: Bearer <key>is accepted in its place.
- stringrequired
Where deliveries are POSTed. A public https hostname on port 443: no IP address, no credentials in the URL, and not a gunspec.io or workers.dev host. Redirects are not followed, so register the final URL. At most 2,048 characters.
- string[]required
Event types this endpoint is subscribed to. The full list is on the
POSToperation. - string
Prose summary of the record, where one has been written.
- WebhookEndpointCreated
The response payload
- string
Opaque endpoint id. Address it at
/v1/me/webhooks/{endpointId}. - string
Absolute, directly fetchable URL.
- string[]
Event types this endpoint is subscribed to. The full list is on the
POSToperation. - string | null
Prose summary of the record, where one has been written.
- boolean
False while the endpoint is paused. A paused endpoint receives nothing and is not retried.
- string
When the record was first added,
YYYY-MM-DD HH:MM:SSin UTC. - string
When the endpoint was last changed, ISO 8601.
- string
HMAC signing secret. Returned only here, on creation. No other endpoint will show it again.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 413
PAYLOAD_TOO_LARGE - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Minimum tier
- Explorer+
- Monthly quota
- 200/mo
- Rate limit
- 10/min
- Daily cap
- 50
Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.