# sendContract

Send a READY contract (prepareContract) for signature: the first signers in signing order get their links by email or text, and it becomes SENT. Confirm the contract and its signers with the person first (getContract). `expectedRevisionNumber` (getContract's revisionNumber) refuses the send if it was corrected since. Needs the manage contracts capability.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "sendContract", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

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

## Response (data, an example)

```json
{
  "contractsMutation": {
    "sendContract": {
      "id": "<ID>",
      "title": "…",
      "status": "PREPARING",
      "revisionNumber": 0
    }
  }
}
```

## Example

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