Skip to content
Context docs
Evals API

Feedback

Serverhttps://context.example.com/api/v1/evals

Feedback is what people say about an agent's answer (a score, a yes or no, a comment, or a mix of them), given on a whole task, one message or a selected part of a message. People give it against scorecards, and these endpoints read it; none of them writes feedback. Reading entries needs Evals access, while /feedback/enabled and /feedback/schemas are open to any member of the organization.


Check whether feedback is on

GET
https://context.example.com/api/v1/evals
/feedback/enabled
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Deployment-wide: whether Evals is turned on for this deployment; the same answer for every organization.

Check whether feedback is on › Responses

Successful response

enabled
​boolean · required

List feedback schemas

GET
https://context.example.com/api/v1/evals
/feedback/schemas
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Returns the feedback forms people fill in for this organization: each active automatic scorecard whose scope is the whole organization or that has no scope, as the scorecard version a submission names. Any member of the organization can read it.

List feedback schemas › Responses

Successful response

​array · required

List feedback

GET
https://context.example.com/api/v1/evals
/feedback
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

Returns the organization's feedback entries, newest first, one page at a time (page from 1, limit up to 100, 20 by default), with the total count. Pass sessionId to read one session's feedback.

List feedback › query Parameters

sessionId
​string

Filter by session identifier

page
​integer · min: 1
Default: 1
limit
​integer · min: 1 · max: 100
Default: 20

List feedback › Responses

Successful response

​array · required
​object · required