> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatling.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate AI answer

Use this endpoint to rate an AI answer as helpful or not helpful. You can only rate AI answers generated using the Knowledge Base.

## Request parameters

### Path

**chatbotId** `string` *required*

The chatbot ID.

**conversationId** `string` *required*

The conversation ID.

**messageId** `string` *required*

The message ID.

### Body

**rating** `string` *required*

* `0`: Remove rating
* `1`: Helpful
* `-1`: Not helpful

## Response

**status** `string`

The status of the request. Will be `success` if the request was successful, otherwise `error`.

```json Response theme={null}
{
    "status": "success",
    "data": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.