Skip to main content

Evaluations

Generated HTTP reference for the 1 operation the published OpenAPI document describes under evaluations.

1 min read
View MarkdownEdit on GitHub

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

GEThttps://api.codespar.dev/v1/evaluations
Deprecated

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

NameTypeRequiredDescription
limitintegerno

Responses

StatusBodyDescription
200array of PolicyEvaluationOK
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
application/json
[
  {
    "id": "policyevaluation_0000000000000000",
    "timestamp": "2026-01-15T12:00:00.000Z",
    "agentId": "agt_0000000000000000",
    "toolName": "Example",
    "decision": "allow"
  }
]
Evaluations | CodeSpar