- An event says something changed. A webhook arrives with the type and the id of the record. It carries ids and statuses, never the record itself.
- You read the record. Call the API with the id, under your own key and scopes.
- You write back what your side knows. A note from a salesperson, or a contact’s source, goes back with a write.
What you can read
What you can write
A worked flow
1
Create a key
Under Settings > Integrations > APIs & webhooks, make an API key with
webhooks:write, contacts:read, contacts:write, memberships:read and signed-documents:read. Add webhooks:read if you list your own subscriptions. See Authentication.2
Subscribe
Create an endpoint for
membership.created, membership.cancelled and document.signed. Limit it to some gyms with clubIds if the CRM serves only some. See Manage webhooks over the API.3
Receive and verify
Check the
1Club-Signature header against the raw body, then answer 2xx quickly. Store the event id so a retry does not run twice.4
Read
On
membership.created, read the membership, then the contact’s marketing touches. On document.signed, read the signed document and, if you keep a copy, download its PDF.5
Write
Update your record. Send a salesperson’s note back with
POST /v1/platform/contact-notes.Read the marketing touches again on the contact’s first
membership.created,
not only on contact.created. A sign-up’s touch can be written just after the
contact event is sent.active until then, so it arrives as membership.updated (with cancelsAt in changedFields), not as membership.cancelled. Read the membership’s cancellation on either event.
A contract accepted at online checkout is written before its membership exists,
so
document.signed for it is sent when the membership is created, and carries
the membership and its gym. To fetch a membership’s contract yourself, list the
signed documents with ?membershipId=.Staying correct
Webhooks are delivered at least once and can arrive in any order. Deduplicate on the eventid, and order one record’s events by sequence. document.signed can also arrive more than once for the same signature in rare cases, such as a birthdate that was mistyped and then corrected, so upsert the signed document by data.id instead of adding a row for each event. Events are recorded only while an endpoint subscribes to the type, so after downtime longer than the retry window, list the memberships and signed documents you keep to catch up. See Delivery, retries, and idempotency.
What stays out of this API
- The salesperson. A member’s assigned staff member is not part of the sync. Agree with the gym what “salesperson” means before building on it.
- Payments. Reading and writing payments is a separate set of endpoints.