Skip to main content
POST
Create a webhook endpoint

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Body

application/json
url
string<uri>
required

Where to send the events. Must be a public https address: a private, loopback, internal or reserved host, a name with no dot, or an address with a username and password is refused. It is checked again on every delivery, and a redirect is not followed.

Maximum string length: 2048
eventTypes
string[]
required

The events to receive. The key also needs the read scope of what each reports: contacts:read for contact.*, memberships:read for membership.*, transactions:read for charge.*, bookings:read for booking.*, checkins:read for checkin.*, signed-documents:read for document.*, areas:read for availability.changed.

Minimum array length: 1

An event type, such as contact.created, membership.cancelled or availability.changed. GET /v1/platform/webhooks/event-types lists them all.

clubIds
integer[]

Only send the events of these clubs, each one of the organization's. Omit or send [] for every club.

Maximum array length: 100
description
string
Maximum string length: 500

Response

Endpoint created; the signing secret is in this response only

id
string

The endpoint id, used to read and delete it

url
string<uri>

Where the events are sent, over https

description
string | null
enabled
boolean

False once the endpoint is switched off, for example after it failed every delivery of an event

eventTypes
string[]

The events it receives

An event type, such as contact.created, membership.cancelled or availability.changed. GET /v1/platform/webhooks/event-types lists them all.

clubIds
integer[]

The clubs whose events it receives. Empty is every club. An event that belongs to no club (a contact, a tag) is always sent.

signingSecretPrefix
string

The first characters of the signing secret, so it can be recognised. The secret itself is shown once, when the endpoint is created.

disabledReason
string | null

Why it was switched off, when it was

createdByApiTokenId
string | null

The API key that made it; always yours on this API

createdAt
string<date-time>
updatedAt
string<date-time>
signingSecret
string

The secret each delivery is signed with (1Club-Signature). Returned only in this response: store it now, it cannot be read again.