Rate an AI job's response
Rate an AI job's response — the same thumbs up / thumbs down (plus optional comment) a user can give under a response in the Omni chat UI or in Slack. The job must have finished (COMPLETE or FAILED); any other state returns 409. The completion webhook fires just before the stored state reaches COMPLETE, so poll GET /api/v1/ai/jobs/{jobId} and rate once it reports COMPLETE rather than rating from inside a webhook handler. Feedback is append-only: each call records a separate event, so submit once per job. Feedback is not returned by any read endpoint. User-scoped keys can only rate their own jobs; organization keys can rate any job in the organization and may pass userId to attribute the feedback to a specific user — use the same userId the job was submitted with.
Path parameters
The unique identifier of the AI job
The unique identifier of the AI job
Query parameters
Target user membership ID (for org-scoped API keys)
Target user membership ID (for org-scoped API keys)
Request body
Example request
{
"comment": "Grouped by order date instead of ship date.",
"rating": "bad"
}Response
Feedback recorded.
Example response
{
"comment": "Grouped by order date instead of ship date.",
"conversationId": "660e8400-e29b-41d4-a716-446655440001",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"rating": "bad",
"submittedAt": "2025-01-15T10:00:00.000Z"
}Changes
Changed in 1 of the 48 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○