List AI feedback
Changed onList the thumbs up and thumbs down users gave AI responses in this organization, with any comment and reason, from the Omni app, Slack, and POST /api/v1/ai/jobs/{jobId}/feedback. Each rating or comment is its own event, newest first. A user can rate the same job more than once, so their latest event for a job is their current verdict. Filters by when the feedback was given (the last 30 days by default, at most 90 days per request), by rating, and by shared model. Paginated via opaque pageInfo.nextCursor: pass it back as cursor, with pageSize only, to fetch the next page. A page can hold fewer records than pageSize while hasNextPage is true, so keep paging until nextCursor is null. A record can repeat across pages when new feedback loads during a walk, so deduplicate by id. Feedback is read from Omni's analytics warehouse, so new feedback appears after a delay. Organization admins only.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Cursor for pagination (from previous response nextCursor)
Number of results per page (1-100, integer)
Exclusive upper bound on when the feedback was given, as an ISO 8601 date-time. Defaults to now.
Only feedback on responses from this shared model. Feedback given through Slack or the API does not record a model, so this filter leaves it out.
Only feedback with this rating.
Inclusive lower bound on when the feedback was given, as an ISO 8601 date-time. Defaults to 30 days before endDate. The window may span at most 90 days.
Response
A page of feedback events.
Example response
{
"records": [
{
"category": "wrong_fields_or_filters",
"comment": "Grouped by order date instead of ship date.",
"conversationId": "660e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-01-15T10:00:00.000Z",
"id": "9b2f7c1e-3d4a-4e5f-8a6b-7c8d9e0f1a2b",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"modelId": "123e4567-e89b-12d3-a456-426614174000",
"prompt": "What were our top products last week?",
"rating": "bad",
"source": "web",
"userId": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
}
]
}Changes
- info
endpoint added
- info