> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1club.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Signed documents

> Read the waivers, agreements and consents your customers signed, and download a copy of each as a PDF.

A **signed document** is a customer's acceptance of a document the gym asks for: a waiver, a membership agreement, a consent. Use these endpoints to keep a CRM or a document store in step with what your customers signed, and to fetch a copy of each.

You will usually learn that something was signed from a [`document.signed` webhook](https://docs.1club.ai/api-reference/channel-integration/webhooks#event-types), 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

```bash theme={null}
curl "https://api.1club.ai/v1/platform/signed-documents?contactId=300" \
  -H "Authorization: Bearer 1club_sk_live_..."
```

Query parameters:

* `contactId` (optional) - only documents this customer signed
* `membershipId` (optional) - only the contract signed for this membership
* `documentId` (optional) - only signatures of this document
* `status` (optional) - one of `counted`, `awaiting_approval`, `withdrawn` or `lapsed`. It defaults to `counted`.
* `limit` (optional) - 1 to 100, defaults to 25
* `offset` (optional) - defaults to 0

Returns a page in the usual shape, newest signature first. An unrecognised `status` is a `400`.

```json theme={null}
{
  "data": [
    {
      "signatureId": 5120,
      "contactId": 300,
      "documentId": 41,
      "documentName": "Membership agreement",
      "documentVersion": "3",
      "membershipId": 7412,
      "signedAt": "2027-01-02T10:00:00.000Z",
      "status": "counted",
      "signedByContactId": null
    }
  ],
  "total": 1,
  "limit": 25,
  "offset": 0
}
```

* `signatureId` - the signature. It is the `id` a `document.signed` or `document.withdrawn` event carries.
* `contactId` - the person the document is about.
* `documentId`, `documentName` and `documentVersion` - what was signed, and which version of it. `documentName` is 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, or `null` for 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 is `null` when they signed it themselves.
* `status` - where the signature stands:

| Status | Meaning |
| - | - |
| `counted` | It counts. The customer has signed. |
| `awaiting_approval` | A form could not verify who signed. It does not count until staff approve it. |
| `withdrawn` | The customer accepted an optional document and later said no. |
| `lapsed` | A guardian signed for a child who has since turned 18. The adult owes their own signature. |

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

```bash theme={null}
curl "https://api.1club.ai/v1/platform/signed-documents/5120" \
  -H "Authorization: Bearer 1club_sk_live_..."
```

Returns one signature in the shape above, whatever its status. An id that is not in the gym is a `404`.

## Download the PDF

```bash theme={null}
curl "https://api.1club.ai/v1/platform/signed-documents/5120/pdf" \
  -H "Authorization: Bearer 1club_sk_live_..." \
  -o signed-document-5120.pdf
```

Answers the file, not JSON: `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 sends `document.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=`:

```bash theme={null}
curl "https://api.1club.ai/v1/platform/signed-documents?membershipId=7412" \
  -H "Authorization: Bearer 1club_sk_live_..."
```

## Which events to subscribe to

| Event | Sent when |
| - | - |
| `document.signed` | A document is signed and counts, staff approve a signature that was held, a checkout contract is linked to its new membership, or a lapsed signature starts counting again because a birthdate was corrected. Not sent for a signature that is already lapsed. |
| `document.withdrawn` | A customer withdraws a document that counted. A signature that was held, lapsed or still waiting for its membership sends nothing. |

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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.