# Send the contract for signature

Mints one signing link per listed signer, freezes the paper being signed, moves the contract to pending_signature and emails each signer. One transaction.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/rows/{rowId}/contract/send`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "documentId": "",
    "expiresAt": "string",
    "message": "string",
    "names": {}
  },
  "params": {
    ":key": "string",
    ":rowId": ""
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "cancelledAt": "string",
    "cancelledReason": "string",
    "completedAt": "string",
    "createdAt": "string",
    "createdBy": 1,
    "dealId": "",
    "documentId": "",
    "documentTitle": "string",
    "expiresAt": "string",
    "id": "",
    "message": "string",
    "purpose": "string",
    "rowId": "",
    "signers": [
      {
        "blocked": "string",
        "declineReason": "string",
        "declinedAt": "string",
        "email": "string",
        "id": "",
        "name": "string",
        "order": "string",
        "remindedAt": "string",
        "reminderCount": "string",
        "role": "string",
        "signedAt": "string",
        "status": "string",
        "typedName": "string",
        "viewedAt": "string"
      }
    ],
    "signingOrder": "string",
    "status": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
