Skip to main content
POST
Rate an answer

Authorizations

Authorization
string
header
required

API token with sk-de- prefix. Created in the Decimal dashboard under Settings → API Tokens.

Scopes

chat:write

Path Parameters

conversation_id
string
required

Conversation ID (returned by POST /v0/chat).

Body

application/json
rating
enum<string>
required

Your user's rating of the answer.

Available options:
helpful,
not_helpful
comment
string

What your user said about the answer.

Maximum string length: 2000
message_id
string

The answer to rate. Defaults to the latest answer in the conversation.

Response

Feedback recorded.

conversation_id
string
required
message_id
string
required
rating
enum<string>
required

Your user's rating of the answer.

Available options:
helpful,
not_helpful
comment
string | null
required
created_at
string<date-time>
required