# Approve or decline, from the client's link

Records the client's decision with an optional comment. A link decides once; an expired link, or one whose resume changed since it was sent, is refused. No authentication: the link's token is the key.

```http
POST https://hiresweep.com/api/openapi/approval-links/{token}/decision
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `token` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "decision": {
      "enum": [
        "approved",
        "declined"
      ],
      "type": "string"
    },
    "comment": {
      "type": "string",
      "maxLength": 2000
    }
  },
  "required": [
    "decision"
  ]
}
```

## Responses

- `200`: The decision.
