# Answer Rating API

The Answer Rating API is useful for tracking quality metrics related to the bot's responses. Use this endpoint to enable users to rate answers (good or bad) and track it in your inbox.

<mark style="color:green;">`POST`</mark> `https://admin.superseek.ai/answer-rating`

Use this endpoint to enable users to rate answers (good or bad) and track it in your inbox.

#### Request Body

| Name                                         | Type   | Description                                              |
| -------------------------------------------- | ------ | -------------------------------------------------------- |
| api\_key<mark style="color:red;">\*</mark>   | String | API key of the account                                   |
| bot\_id<mark style="color:red;">\*</mark>    | Number | Unique identifier of the bot                             |
| answer\_id<mark style="color:red;">\*</mark> | String | The unique identifier of each answer provided by the bot |
| rating<mark style="color:red;">\*</mark>     | Number | Pass 1 for a good rating and -1 for a bad rating         |

{% tabs %}
{% tab title="200: OK Successful Response" %}
{% code overflow="wrap" %}

```json
{
    "chat": [
        {
            "role": "user",
            "question": "What is Superseek?",
            "timeStamp": "Mon Jan 8 2024 12:53:11 UTC"
        },
        {
            "role": "bot",
            "result": {
                "text": "Superseek is a platform to create custom AI assistants.",
                "ref": [
                    {
                        "url": "https://superseek.ai",
                        "title": "Superseek: Create AI assistants"
                    }
                ],
                "urlPresent": true
            },
            "fallback": false,
            "timeStamp": "Mon Jan 8 2024 12:53:11 UTC",
            "like": true,
            "dislike": false
        }
    ],
    "rating": "1"
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
