# Vote on an Ask AI answer

`POST https://api.cryptohopper.com/v1/user/askai/vote`

Part of [Users](https://www.cryptohopper.com/api-documentation/api-reference/users.md) in the Cryptohopper API reference.

Rates an Ask AI answer. The vote value is added to the answer's satisfaction score, so send 1 for a helpful answer and -1 for an unhelpful one.

OAuth scope: `read`, `user`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/user/askai/vote" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"vote_id":98765,"vote":1}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "Vote saved."
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
