document.signed webhook, then read the signature here.
All three endpoints need the signed-documents:read scope. A signed agreement holds a signature and what the customer entered, so it has a scope of its own: a key with contacts:read cannot read it, and neither can one holding only the legacy broad read grant that keys made before scopes existed have. Grant signed-documents:read by name, or use full access (*).
List signed documents
contactId(optional) - only documents this customer signedmembershipId(optional) - only the contract signed for this membershipdocumentId(optional) - only signatures of this documentstatus(optional) - one ofcounted,awaiting_approval,withdrawnorlapsed. It defaults tocounted.limit(optional) - 1 to 100, defaults to 25offset(optional) - defaults to 0
status is a 400.
signatureId- the signature. It is theidadocument.signedordocument.withdrawnevent carries.contactId- the person the document is about.documentId,documentNameanddocumentVersion- what was signed, and which version of it.documentNameis the title the document had when it was signed, which is what the PDF shows, even if the document was retitled since.membershipId- the membership a contract was signed for, ornullfor a document signed once per person. A gym that asks for a contract for each membership has one signature per membership.signedByContactId- the contact who applied the signature when that was not the customer, such as a parent signing for a child. It isnullwhen they signed it themselves.status- where the signature stands:
The signature image, the IP address and the browser it was made from are not returned. They stay in the PDF.
Get a signed document
404.
Download the PDF
Content-Type: application/pdf with a Content-Disposition that names it signed-document-<id>.pdf. It is the document as it was signed, with the signature, who signed and when. It holds that one signature only, never the rest of the household’s.
For a signature with status counted, it is the same copy the customer receives by email and can download from their account. A withdrawn or lapsed signature still has a copy, but it is history: the record of what was signed, not a signature that holds, so check status before relying on it. A signature that is awaiting_approval has no copy yet. It records that somebody signed, not who, so the call answers 409 with the code SIGNATURE_AWAITING_APPROVAL. Fetch it once staff approve it.
Rendering a PDF is heavier than a read, so it is limited to 30 downloads a minute for the whole organization, across all its gyms and all its keys. Only a download that was served counts: a call that answers 403, 404 or 409 does not use any of the 30. Past the limit the call answers 429.
Contracts accepted at checkout
A gym that asks for a contract for each membership has the customer accept it at online checkout. The contract is written before the membership exists, and linked to the membership when it is created. 1club sendsdocument.signed for it at that point, not before, so the event carries the membership and its gym and an endpoint limited to some gyms receives only its own gyms’ contracts. A checkout that is abandoned, so that no membership is ever created, sends nothing.
To fetch a membership’s contract yourself, for example when you reconcile, list the signatures with ?membershipId=:
Which events to subscribe to
The event carries
clubId, the gym of the membership, so an endpoint limited to some gyms receives only the contracts of those gyms. A document signed once per person has no gym and always goes. A signature that lapses sends no event, because nothing is written when a date passes. If you need to know, read status on the signatures you keep, or list status=lapsed.
What this API does not do
- No signing. Customers sign in the 1club app, the member portal or at the gym. You cannot sign on their behalf.
- No withdrawing or approving. Both are done in 1club.