Skip to main content
API reference

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

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 response

[
  {
    "id": "policyevaluation_0000000000000000",
    "timestamp": "2026-01-15T12:00:00.000Z",
    "agentId": "agt_0000000000000000",
    "toolName": "Example",
    "decision": "allow"
  }
]

Example request

curl -X GET https://api.codespar.dev/v1/evaluations \
  -H "Authorization: Bearer $CODESPAR_API_KEY"
Evaluations | CodeSpar