Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Rate customer-facing AI preview message

POST/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Path parameters
agentIDstringrequired
messageIDstringrequired
Request body
requiredapplication/json
feedbackstringrequired
Responses
200OK
agent_responsestringrequired
confidence_scorenumber<double>required
created_atstringrequired
expected_responsestringrequired
feedbackstring
idstringrequired
originstringrequired
run_idstringrequired
session_idstringrequired
statusstringrequired
titlestringrequired
turnsPreviewChatTurn[] | nullrequired
Show properties
Array of PreviewChatTurn
created_atstringrequired
feedbackstring
idstringrequired
rolestringrequired
textstringrequired
updated_atstringrequired
user_messagestringrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
404Not Found
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/ai/agents/string/preview/messages/string/feedback" \
  -H "Content-Type: application/json" \
  -d '{
  "feedback": "string"
}'
Response
{
  "agent_response": "string",
  "confidence_score": 0,
  "created_at": "string",
  "expected_response": "string",
  "feedback": "string",
  "id": "string",
  "origin": "string",
  "run_id": "string",
  "session_id": "string",
  "status": "string",
  "title": "string",
  "turns": [
    {
      "created_at": "string",
      "feedback": "string",
      "id": "string",
      "role": "string",
      "text": "string"
    }
  ],
  "updated_at": "string",
  "user_message": "string"
}