# getHeldContractDraft

A held contract (a workflow or AI employee send stopped on a blank required value) reopened to fill in, shaped as getContractSendDraft. Prepare it with prepareContract and `heldContractId` set. Needs the manage contracts capability.

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

## Variables

- `contractId`: `ID!` (required)

## Response (data, an example)

```json
{
  "contractsQuery": {
    "heldDraft": {
      "templateId": "<ID>",
      "templateVersionId": "<ID>",
      "templateName": "…",
      "title": "…",
      "dealId": "<ID>",
      "heldContractId": "<ID>",
      "contact": {
        "id": "<ID>",
        "name": "…",
        "emails": [
          "…"
        ],
        "phones": [
          "…"
        ]
      },
      "contactB": {
        "id": "<ID>",
        "name": "…",
        "emails": [
          "…"
        ],
        "phones": [
          "…"
        ]
      },
      "values": [
        {
          "key": "<ID>",
          "label": "…",
          "source": "TOKENS",
          "required": true,
          "value": "…",
          "record": "CONTACT"
        }
      ],
      "missingTokens": [
        "…"
      ],
      "roles": [
        {
          "key": "<ID>",
          "label": "…",
          "kind": "SIGNER",
          "order": 0
        }
      ],
      "recipients": [
        {
          "roleKey": "<ID>",
          "displayName": "…",
          "email": "…",
          "phone": "…",
          "contactId": "<ID>",
          "signingOrder": 0
        }
      ],
      "subject": "…",
      "message": "…",
      "expiryDays": 0,
      "reminderIntervalDays": 0
    }
  }
}
```

## Example

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