# listContractTemplates

The organization's contract templates: name, category, status (only a PUBLISHED one with a currentVersionNumber can be sent), signer roles in signing order, and the records a send asks for (`uses`: Contact A, Contact B, Deal, Property), and how many contracts went out from it (`sentCount`) and came back signed (`signedCount`). Archived ones only with includeArchived.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listContractTemplates", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `includeArchived`: `Boolean`

## Response (data, an example)

```json
{
  "contractsQuery": {
    "templates": [
      {
        "id": "<ID>",
        "name": "…",
        "category": "…",
        "status": "DRAFT",
        "currentVersionNumber": 0,
        "signerRoles": [
          "…"
        ],
        "uses": [
          "…"
        ],
        "sentCount": 0,
        "signedCount": 0
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listContractTemplates",
    "variables": {}
  }'
```
