# listContracts

The organization's contracts, newest first (at most 200), with status and who signed. `held` marks a workflow or AI employee send waiting on a blank required value (getHeldContractDraft).

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

## Variables

None.

## Response (data, an example)

```json
{
  "contractsQuery": {
    "contracts": [
      {
        "id": "<ID>",
        "title": "…",
        "templateId": "<ID>",
        "status": "PREPARING",
        "held": true,
        "contactId": "<ID>",
        "contactName": "…",
        "signerCount": 0,
        "signedCount": 0,
        "sentAt": "2026-01-01T00:00:00.000Z",
        "expiresAt": "2026-01-01T00:00:00.000Z",
        "completedAt": "2026-01-01T00:00:00.000Z",
        "signers": [
          {
            "displayName": "…",
            "status": "WAITING",
            "signedAt": "2026-01-01T00:00:00.000Z"
          }
        ]
      }
    ]
  }
}
```

## Example

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