Skip to main content
POST
/
v1
/
conversations
/
{conversation_id}
/
feedback
Add Feedback to a Specific Conversation
curl --request POST \
  --url https://api.trata.ai/v1/conversations/{conversation_id}/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "comment": "Great service!"
}'
{
  "id": "cfb.1234567890",
  "conversationId": "con.1234567890",
  "comment": "Great service!",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "createdBy": "usr.1234567890"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation_id
string
required

ID of the conversation

Body

application/json
comment
string
required

Notes or comments to record

Required string length: 1 - 8192
Example:

"good"

rating
integer
required

Star rating to record

Required range: 1 <= x <= 5
Example:

5

Response

Feedback added successfully

Any feedback added to the conversation by business is managed here.

id
string
orgId
string
conversationId
string
feedback
string
rating
integer
createdBy
string
createdAt
string<date-time>
updatedBy
string
updatedAt
string<date-time>
I