API reference
Policy Evaluations
Generated HTTP reference for the 1 operation the published OpenAPI document describes under policy-evaluations.
1 min read
Policy 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/policy-evaluations
List policy evaluations for the authenticated org, newest first. limit is clamped at 100.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | — |
Responses
| Status | Body | Description |
|---|---|---|
200 | array of PolicyEvaluation | OK |
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/policy-evaluations \
-H "Authorization: Bearer $CODESPAR_API_KEY"