Evaluations
Generated HTTP reference for the 1 operation the published OpenAPI document describes under evaluations.
1 min read
Evaluations
This page is generated from the published OpenAPI document. It is complete with respect to that document and says nothing about surfaces the document does not describe yet. See what is generated here for what that means.
Base URL: https://api.codespar.dev
Every operation below requires a Bearer token. See Authentication.
GET /v1/evaluations
GET
https://api.codespar.dev/v1/evaluationsDeprecated
Deprecated alias of GET /v1/policy-evaluations (ent#979), kept for two releases. Same handler, same required scope; switch the path and nothing else changes.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | — |
Responses
| Status | Body | Description |
|---|---|---|
200 | array of PolicyEvaluation | OK |
Example request
curl -X GET https://api.codespar.dev/v1/evaluations \
-H "Authorization: Bearer $CODESPAR_API_KEY"const res = await fetch("https://api.codespar.dev/v1/evaluations", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.CODESPAR_API_KEY}`,
},
});
const data = await res.json();Example response 200
[
{
"id": "policyevaluation_0000000000000000",
"timestamp": "2026-01-15T12:00:00.000Z",
"agentId": "agt_0000000000000000",
"toolName": "Example",
"decision": "allow"
}
]