Skip to main content
POST
Create a Webhook Endpoint

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Scopes

public.webhook_endpoint:write
Bearer
public.webhook_endpoint:write
OAuth2

Webhook Endpoint (Write)

Headers

Idempotency-Key
string

A unique key, such as a UUID, that makes it safe to retry this request. The API stores the first successful (2xx) response for a key for 24 hours. A retry with the same key, method, path and body returns the stored response, including its request_id, with the Idempotent-Replayed: true header, and the API doesn't run the request again. A request that reuses a key with a different method, path or body returns 422 with code idempotency_key_reused. Use a new key for each request. The API doesn't store error responses, so you can retry a failed request with the same key. It also doesn't store a response whose body isn't UTF-8 text, such as a PDF. While a request with the same key is in progress, the API returns 409 with code idempotency_conflict. If that request was interrupted, the key is free again within 60 seconds. If the API can't check the key, it doesn't run the request and returns 503 with code idempotency_unavailable. Retry later with the same key. A key can be up to 255 characters long. Keys are case-insensitive, and the API ignores surrounding whitespace. A blank key, or a key longer than 255 characters, returns 400 with code invalid_request. Keys are scoped to the operator, to your application, to the token's scopes, and to the staff member or connected account that authorized the token. For an Access Token, keys are scoped to the token instead of an application. Another application or Access Token, or a token with different scopes, can send the same key without getting your stored response. For details, see Idempotent requests.

Maximum string length: 255

Query Parameters

expand
string[]

This endpoint supports expandable responses. For more, see the documentation page.

fields
string[]

Returns only the listed fields, such as id,status,site.name. Identifiers and constant fields such as object are always returned. A field inside an expandable association also needs it in expand, unless the collapsed association returns it, such as site.id. For more, see the documentation page.

Body

application/json

Create Webhook Endpoint Request

name
string
required

The name of the webhook endpoint

api_version
enum<string>
required

The API version for the webhook endpoint

Available options:
2025-09,
preview
url
string<uri>
required

The URL to which the webhook payloads will be delivered

Pattern: ^https://
event_types
enum<string>[]
required

A list of event types that the webhook endpoint will listen to. Both the token making the request and the endpoint's creator need the read scope of each event type's resource, for example public.contact:read for contact.created. A write scope alone isn't enough.

Minimum array length: 1
Available options:
contact.churned,
contact.converted,
contact.created,
contact.updated,
contract.created,
contract.signed,
coupon.created,
coupon.updated,
credit_note.created,
credit_note.updated,
deal.created,
deal.lost,
deal.reopened,
deal.stage_changed,
deal.updated,
deal.won,
identity_verification.cancelled,
identity_verification.failed,
identity_verification.processing,
identity_verification.succeeded,
invoice.created,
invoice.finalized,
invoice.marked_uncollectible,
invoice.overdue,
invoice.paid,
invoice.payment_failed,
invoice.updated,
note.created,
note.updated,
opportunity.archived,
opportunity.associated,
opportunity.created,
opportunity.deleted,
opportunity.unarchived,
opportunity.updated,
order.abandoned,
order.completed,
order.created,
order.finalized,
price_adjustment.cancelled,
price_adjustment.created,
price_adjustment.failed,
price_adjustment.invoiced,
price_adjustment.rescheduled,
price_adjustment.scheduled,
price_adjustment.updated,
protection_level.created,
protection_level.updated,
subscription.cancelled,
subscription.created,
subscription.ended,
subscription.resumed,
subscription.started,
task.completed,
task.created,
task.reopened,
task.updated,
tenancy.auto_reservation.failed,
tenancy.auto_reservation.partially_succeeded,
tenancy.auto_reservation.succeeded,
tenancy.created,
tenancy.started,
unit.available,
unit.created,
unit.deallocated,
unit.occupied,
unit.overlocked,
unit.repossessed,
unit.reserved,
unit.unavailable,
unit.updated,
unit_type.created,
unit_type.updated
description
string | null

Optional description for the webhook endpoint

metadata
object | null

Set of key-value pairs for storing additional information on the webhook endpoint. Learn more about metadata.

Response

webhook endpoint created

Single Webhook Endpoint

endpoint
object
required

Webhook Endpoint

meta
object
required