Send feedback on an answer
Records your user's thumb on one answer of an API key's conversation, with an optional comment, so the workspace sees where the assistant fell short (GET /v1/logs/conversations?rating=down). conversation_id and message_id come from the answer. Sending another thumb replaces the first; rating: null takes it back. Costs nothing. API keys only: thumbs on a personal chat are not available yet (feature_not_available).
POST/v1/conversations/{conversation_id}/messages/{message_id}/feedback
Requires query.
Use it to forward what a user of your product thought of an answer. conversation_id and message_id come from the answer: both are in the JSON answer and in the done event of a stream, and every message of Get a conversation has its id.
rating is up, down or null, which takes the thumb back. One answer holds one thumb: a new one replaces the old one and the totals follow. A comment goes only with up or down. Send end_user when you use end users: a conversation of another end user answers resource_not_found, like an answer id that is not in this conversation or that belongs to a question.
The thumb shows on the answer and in the workspace’s logs, where rating=down finds the conversations to review. It costs nothing.
API keys only. A person’s own chat answers feature_not_available: thumbs there are not available yet. See Feedback on answers. This is not the endpoint that reports a problem with Lookio itself: that is Submit feedback.
Authorizations
Authorizationbearerin headerrequiredPath parameters
conversation_idstringrequiredpattern: ^cnv_[abcdefghjkmnpqrstuvwxyz23456789]{12}$message_idstringrequiredpattern: ^msg_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Header parameters
Idempotency-Keystringlength: 1–255 charsA unique key for this request, such as a UUID, 1 to 255 visible ASCII characters. Send the same key when you retry: the first response is returned (with Idempotent-Replayed: true) instead of running the request again, for 24 hours, per credential. The same key on a different request is a 409 conflict. A streamed answer is not recorded.
Body
application/jsonrequiredratingenum<string> | nullrequiredup or down: your user's thumb on this answer. null takes it back. Sending another thumb replaces the first, it never counts twice.
commentstringlength: ≤ 1000 charsWhat your user wrote with the thumb, up to 1,000 characters. Only with up or down.
end_userstringpattern: ^[\w.@:+\-]{1,200}$The end_user of the conversation, when you use them. When given, a conversation of another end user answers not found.
Response
Send feedback on an answer
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, assistant_has_no_resources
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired