Receipts, approvals and audit
Read run receipts, score and annotate them, list operations awaiting approval and read the workspace audit log.
Every governed run writes a receipt: the evidence record of what the agent was asked, what it produced, which policy decision applied, where the work was allowed to run and what it cost. This area lets you read receipts, score them, record reviewer verdicts, see operations that are waiting for a person to approve them, and read the workspace audit log.
A separately enabled private read profile is restricted to qualified signed-in people. Its receipt views are explicitly marked projection: governance_metadata: they contain only authorized metadata, with withheld upload/consistency flags set to null. These are incomplete evidence and cannot form a full compliance export; API keys and MCP clients cannot use that private profile. It is gated and is not enabled by default.
Every ordinary workspace read on this page accepts an API key with the read scope. The scoring and annotation writes need the admin scope. A signed-in workspace member can call all of them. See authentication for how to send a key.
Some actions in this area are reserved for a workspace admin signed in to the web workspace and refuse API keys: approving or denying a held operation, verifying the audit chain, and exporting or erasing the workspace's receipts and audit trail. Receipts and audit entries stay readable until a retention window set for the workspace, or an erasure by a workspace admin, removes them.
Read receipts
A receipt is written when an agent run completes and also when policy denies it. It carries the prompt and output, the model, the policy decision with its reason code, the placements the run was allowed to use, token, cost and latency figures, connector tool calls and a per-step timeline. Values that were not recorded are null or empty rather than estimated.
GET /api/receipts
List run receipts, newest first, with filters and keyset paging
Returns the workspace's receipts ordered by creation time, newest first. Filters apply to the whole receipt history of the workspace, not only to the returned page. To fetch the next page, pass the createdAt and id of the last receipt you received as createdBefore and beforeId. When the calling key can also make this read over MCP, the request counts against the same rate limit as its MCP calls; see rate limits.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
agentId | uuid | Only receipts of this agent. |
user | string | Only receipts whose userId equals this value exactly. |
decision | "allow" | "deny" | Only receipts with this policy outcome. A receipt without a recorded decision counts as deny when its guardrails did not pass and as allow otherwise. |
reasonCode | string | Only receipts whose decision carries this reason code, for example ALLOWED, DEFAULT_DENY or PKG_REVOKED. When the decision has no reason code, the name of the first failed policy result is compared instead. |
placement | "local" | "cloud_model" | "cloud_connector" | "cloud_connector_write" | "local_sandbox" | "cloud_sandbox" | "local_capture" | "external_mcp_host" | Only receipts whose placements include this value. |
dataClass | "public" | "internal" | "confidential" | "restricted" | "secrets" | Only receipts with at least one step recorded under this data class. |
connector | string | Only receipts whose connectionsUsed include this connection name. The match is exact and case-sensitive. |
obligation | "pending_approval" | "redaction" | "logging" | Only receipts flagged with this obligation: held for approval, redaction applied, or logging enabled. |
q | string | Free-text search: a case-insensitive substring match over the agent name, the prompt and the output. Wildcard characters are matched literally. |
limit | integer | Page size. A whole number of at least 1; the default is 100 and values above 200 are reduced to 200. |
createdBefore | string | Paging cursor: only receipts created strictly before this date-time. Pass the createdAt of the last receipt of the previous page. createdAt is returned with millisecond precision, so a receipt written within the same millisecond as that last receipt can be left out of the next page. |
beforeId | uuid | Tie-breaker for receipts that share the cursor timestamp: the id of the last receipt of the previous page. Requires createdBefore. |
Returns: { receipts, total, hasMore }. receipts is the page of receipt objects (see the single-receipt operation for the fields). total is the number of receipts matching the filters across the workspace, ignoring the paging cursor. hasMore is true when older matches exist beyond this page.
| Status | Code | When |
|---|---|---|
| 400 | invalid_decision | decision is not allow or deny. |
| 400 | invalid_placement | placement is not one of the listed values. |
| 400 | invalid_dataClass | dataClass is not one of the listed values. |
| 400 | invalid_obligation | obligation is not one of the listed values. |
| 400 | invalid_limit | limit is not a whole number of at least 1. |
| 400 | invalid_createdBefore | createdBefore cannot be read as a date-time. |
| 400 | invalid_beforeId | beforeId is not a UUID. |
| 400 | beforeId_requires_createdBefore | beforeId is sent without createdBefore. |
curl "https://centerofagentic.com/api/receipts?agentId=8b0e6c1d-52a4-4f0b-9c3e-7a1d2e4f6a90&limit=1" \
-H "Authorization: Bearer $COA_API_KEY"{
"receipts": [
{
"id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"agentId": "8b0e6c1d-52a4-4f0b-9c3e-7a1d2e4f6a90",
"agentName": "Example support agent",
"userId": "user_example123",
"prompt": "Summarise ticket 1042 for the weekly report.",
"output": "Ticket 1042 concerns a delayed delivery; a replacement was shipped.",
"model": "example-provider/example-model",
"runtimeMode": "cloud_only",
"decision": {
"action": "summarize",
"object": { "dataClass": "internal" },
"placement_requested": "cloud_model",
"decision": "allow",
"reason_code": "ALLOWED",
"applicable_allowlist_layers": ["tenant_admin", "package_manifest", "role_team", "user_identity"],
"allow_rules_matched": ["allow_tenant_admin_1", "allow_package_manifest_2", "allow_role_team_3", "allow_user_identity_4"],
"allowlist_layers_missing_grant": [],
"deny_rules_matched": [],
"obligations": [
{ "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
],
"surviving_placements": ["cloud_model"],
"evaluated_at": "2026-11-20T09:14:05.102Z",
"policy_bundle_id": "tenant-policy-5d2c7e10"
},
"policyResults": [
{ "policy": "tenant-policy-5d2c7e10 applied", "result": "passed" },
{ "policy": "logging", "result": "passed" }
],
"placements": ["cloud_model"],
"promptTokens": 412,
"completionTokens": 96,
"costUsd": 0.0031,
"latencyMs": 1840,
"guardrailsPassed": true,
"rawUploaded": false,
"toolLog": [],
"connectionsUsed": [],
"steps": [
{
"step_id": "policy",
"kind": "policy_decision",
"label": "Authority & placement check",
"status": "ok",
"placement": "local",
"reason_code": "ALLOWED",
"policy": {
"decision": "allow",
"reason_code": "ALLOWED",
"deny_rules_matched": [],
"obligations": [
{ "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
]
},
"seq": 0
},
{
"step_id": "model-6e2b4c8a-1f3d-4a5b-9c7e-0d1f2a3b4c5d",
"seq": 1,
"kind": "model_call",
"placement": "cloud_model",
"label": "Cloud reasoning turn",
"status": "ok",
"started_at": "2026-11-20T09:14:05.280Z",
"evidence": {
"decisionId": "6e2b4c8a-1f3d-4a5b-9c7e-0d1f2a3b4c5d",
"operationDigest": "0f3a9c5e7b1d2f4a6c8e0b2d4f6a8c0e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a",
"dispatch": "recorded",
"invoked": true,
"outcome": "ok",
"recording": "complete",
"reconciliationId": null,
"startedAt": "2026-11-20T09:14:05.280Z",
"tokens": { "input": 412, "output": 96 },
"costUsd": 0.0031
},
"tokens": { "input": 412, "output": 96 },
"cost": { "amount": 0.0031 }
}
],
"assistant": null,
"assuranceTier": 2,
"evidenceClass": "enforcement",
"signatureStatus": null,
"flagged": false,
"evidenceIncomplete": false,
"reconciliationIds": [],
"createdAt": "2026-11-20T09:14:07.120Z"
}
],
"total": 42,
"hasMore": true
}GET /api/receipts/{id}
Get one run receipt by id
Returns a single receipt, however old it is. An id that does not exist, belongs to another workspace or is not a UUID gives the same not_found response. The same shared rate limit as the list applies when the calling key can also make this read over MCP.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The receipt id. |
Returns: A receipt object: id, agentId, agentName, userId, prompt, output, model, runtimeMode, decision (the recorded policy decision), policyResults, placements, promptTokens, completionTokens, costUsd, latencyMs, guardrailsPassed, rawUploaded, toolLog, connectionsUsed, steps, assistant, assuranceTier (0, 1, 2 or null), evidenceClass (enforcement, observation or null), signatureStatus (valid, invalid, absent or null), flagged, evidenceIncomplete, reconciliationIds and createdAt (ISO 8601). decision, policyResults, toolLog and steps are returned as they were recorded, so their inner fields can differ between receipts. A receipt that belongs to a run tree also carries parentRunId, rootRunId, depth, treeStatus, treeTerminalReason, treeNodeCount, directUsage, treeUsage, treeBoundaryProof and payloadErased, and may carry treeBudget.
| Status | Code | When |
|---|---|---|
| 404 | not_found | No receipt with this id exists in the workspace, or the id is not a UUID. |
curl https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11 \
-H "Authorization: Bearer $COA_API_KEY"GET /api/receipts/{id}/tree
Get a receipt together with the other receipts of its run tree
When an agent delegates work to sub-agents, each sub-run writes its own receipt linked to the root run. This returns the root receipt and the receipts below it (at most 102), ordered by depth and then by creation time, wherever in the tree the given receipt sits. For a receipt that is not part of a tree, receipts holds only that receipt and usage is null.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The id of any receipt in the tree. |
Returns: { rootReceiptId, receipts, usage, budget }. receipts are receipt objects. usage holds the tree's current usage totals (known cost in USD, token counts and counts of unpriced or unknown entries), or null for a receipt outside a delegated run tree. budget describes the state of the tree's spend budget and is left out when the receipt does not belong to a delegated run tree.
| Status | Code | When |
|---|---|---|
| 404 | not_found | No receipt with this id exists in the workspace, or the id is not a UUID. |
curl https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/tree \
-H "Authorization: Bearer $COA_API_KEY"Score a receipt
Two independent checks can be run against a stored receipt: a governance check of the agent's configuration, and a quality check of the recorded output. Both need the admin scope because they store results.
POST /api/receipts/{id}/score
Run the governance checks for a receipt's agent and store the scores
Evaluates the built-in governance checks against the current authority level and data classes of the receipt's agent, and stores one pass or fail score for each of the dimensions default_deny, manifest_ceiling and data_residency, replacing earlier scores for the receipt. A failed score points at an agent configuration that permits more than it should; it is not a judgement of the recorded run. The request takes no body. If the receipt has no agent, or the agent no longer exists, the response is an empty list and nothing is changed.
Access: API key with the admin scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The receipt id. It must be a well-formed UUID; any other value produces a server error rather than not_found. |
Returns: { scores }: one object per dimension with id, receiptId, agentId, dimension, passed, detail and scoredAt (a date-time string that is not guaranteed to be ISO 8601).
| Status | Code | When |
|---|---|---|
| 404 | not_found | No receipt with this id exists in the workspace. |
curl -X POST https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/score \
-H "Authorization: Bearer $COA_API_KEY"POST /api/receipts/{id}/score-output
Score the quality of a receipt's recorded output
Runs the selected rule-based checks on the receipt's output, which make no model call, and, when judgeIds are given, asks a model to grade it. Model judges use the workspace's own model credentials with the receipt's model, or the workspace default model when the receipt has none, and see at most 5,000 characters each of the prompt and the output. Each model judge is an accounted model call, so send the X-CoA-Model-Request header whenever you pass judgeIds: a judge that cannot run, for example because the header is missing, no model is configured, no reviewed system model profile allows it or the workspace's spend controls refuse the call, is reported in judgeRefusals and the request still succeeds. The result is stored with the receipt and noted in the audit log, but the receipt read operations do not return it.
Access: API key with the admin scope, or a signed-in workspace member. Model judges call a model with the workspace's own model credentials and are subject to the workspace's spend controls. They run only when the workspace's reviewed system model profiles allow output judging with that model and receipts as a source, and only for receipts whose data classification can be established from the run's recorded decisions. A workspace has no such profile until a workspace admin adds one; until then every requested judge is refused.
| Name | Type | Description |
|---|---|---|
X-CoA-Model-Request | string | The current Unix time in milliseconds (13 digits), a dot and a UUID that you generate, new for each request; it identifies the request for usage accounting, and one value covers every judge in judgeIds. Send it whenever judgeIds asks for model judges: without it, each judge that a reviewed model profile would let through is refused before the model is called and is listed in judgeRefusals with the code model_usage_request_identity_required, while the response is still 200. See The usage-request header. |
| Name | Type | Description |
|---|---|---|
id required | uuid | The receipt id. It must be a well-formed UUID; any other value produces a server error rather than not_found. |
| Name | Type | Description |
|---|---|---|
heuristics | object | The rule-based checks to run. Each key turns one check on. When omitted, only notEmpty runs; when an object is sent, only the checks it turns on run. |
heuristics.notEmpty | boolean | The output must contain something other than whitespace. |
heuristics.validJson | boolean | The output must parse as JSON. |
heuristics.containsCitation | boolean | The output must contain a citation marker. |
heuristics.maxChars | number | The output must be at most this many characters. Ignored unless it is a number greater than 0. |
heuristics.mentionsAll | string[] | The output must mention every one of these keywords. |
heuristics.noBannedTerms | string[] | The output must contain none of these terms. |
judgeIds | string[] | Model judges to run: correctness, groundedness and relevance. At most the first four entries are used and unknown ids are skipped. |
Returns: { scores, passed, meanScore, judgesRun, judgeRefusals, heuristicCount }. Each score has evaluatorId, passed, score (0 to 1) and detail. passed is true when every score passed, meanScore is the average score, judgesRun lists the judges that completed and judgeRefusals lists the requested judges that were refused or failed, each with judgeId, code, status, invoked (whether a model call was attempted) and decisionId. With no scores at all, passed is true and meanScore is 1.
| Status | Code | When |
|---|---|---|
| 404 | not_found | No receipt with this id exists in the workspace. |
curl -X POST https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/score-output \
-H "Authorization: Bearer $COA_API_KEY" \
-H "Content-Type: application/json" \
-H "X-CoA-Model-Request: $(date +%s)000.$(uuidgen)" \
-d '{"heuristics": {"notEmpty": true}, "judgeIds": ["relevance"]}'{
"scores": [
{ "evaluatorId": "notEmpty", "passed": true, "score": 1, "detail": "Output is non-empty." },
{ "evaluatorId": "relevance", "passed": true, "score": 0.9, "detail": "The output answers the prompt directly." }
],
"passed": true,
"meanScore": 0.95,
"judgesRun": ["relevance"],
"judgeRefusals": [],
"heuristicCount": 1
}Reviewer annotations
An annotation is one reviewer's verdict on whether the policy decision recorded for a run was the right one. Each identity holds at most one annotation per receipt; submitting again replaces its earlier verdict and never another reviewer's.
GET /api/receipts/{id}/annotations
List the annotations on a receipt with an agreement summary
Returns every reviewer's verdict on the receipt, newest first, and a summary of how far the reviewers agree. A receipt without annotations gives an empty list, and so does an id that matches no receipt in the workspace; this operation does not return not_found.
Access: API key with the read scope, or a signed-in workspace member.
| Name | Type | Description |
|---|---|---|
id required | uuid | The receipt id. It must be a well-formed UUID; any other value produces a server error rather than not_found. |
Returns: { annotations, agreement }. Each annotation has id, receiptId, agentId, verdict, dimension, correctedExpectation, note, annotatedBy and annotatedAt (a date-time string that is not guaranteed to be ISO 8601). agreement is { total, correct, incorrect, unsure, correctnessRate, byDimension }, where correctnessRate is correct divided by correct plus incorrect, or null when no reviewer gave a decisive verdict, and byDimension holds the same three counts for each dimension value that was used.
curl https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/annotations \
-H "Authorization: Bearer $COA_API_KEY"POST /api/receipts/{id}/annotations
Record or replace the caller's verdict on a receipt
Stores the verdict under the calling identity. For an API key that identity is the key itself, so repeated calls with the same key update one annotation. An incorrect verdict can be saved without correctedExpectation.
Access: API key with the admin scope, or a signed-in workspace member. The annotation is attributed to the calling identity: the signed-in user, or the API key.
| Name | Type | Description |
|---|---|---|
id required | uuid | The receipt id. It must be a well-formed UUID; any other value produces a server error rather than not_found. |
| Name | Type | Description |
|---|---|---|
verdict required | "correct" | "incorrect" | "unsure" | Whether the recorded policy decision was right. |
dimension | string | The governance dimension the verdict is about, for example default_deny, manifest_ceiling, data_residency, connector_scope, approval_required or obligations. Stored as sent. |
correctedExpectation | object | What the decision should have been, as JSON. Stored as sent. |
note | string | A free-text comment. |
Returns: 201 with the stored annotation: id, receiptId, agentId, verdict, dimension, correctedExpectation, note, annotatedBy and annotatedAt (a date-time string that is not guaranteed to be ISO 8601). A call that replaces your earlier verdict answers 201 as well.
| Status | Code | When |
|---|---|---|
| 400 | invalid_verdict | verdict is missing or is not correct, incorrect or unsure. |
| 404 | not_found | No receipt with this id exists in the workspace. |
curl -X POST https://centerofagentic.com/api/receipts/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/annotations \
-H "Authorization: Bearer $COA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"verdict": "incorrect", "dimension": "data_residency", "note": "Restricted data should not have been sent to a cloud model."}'Pending approvals
When a run reaches an operation that policy requires a person to approve, the run pauses and the operation is held. A workspace admin signed in to the web workspace approves or denies each held operation, and an admin cannot approve an operation they requested themselves. API keys and device tokens can list holds but cannot resolve them.
GET /api/approvals
List operations held for human approval
Returns every hold that has not expired, ordered by the start of the paused run with the newest first, with one entry per held operation; the list is not paged. jobId identifies the paused run and callId the held operation within it. expiresAt is when the hold lapses (24 hours after it began by default); an expired hold is left out and its operation is not run. canApprove and canDeny say what the calling identity may do and are always false for an API key.
Access: API key with the read scope, or a signed-in workspace member. Listing only. Approving or denying a held operation requires a workspace admin signed in to the web workspace.
Returns: { approvals }: one object per held operation with jobId, callId, agentName, action (the name of the held tool call), createdAt (when the paused run started), expiresAt, youRequested, canApprove, canDeny and approveBlockedReason (a sentence explaining why the caller cannot approve, or null). callId is null for a hold that is not bound to a single operation; such a hold can only be denied. Holds inside a delegated run tree also carry rootJobId, parentJobId, depth and delegatedScope, and may carry delegationProposal and treeBudget.
curl https://centerofagentic.com/api/approvals \
-H "Authorization: Bearer $COA_API_KEY"{
"approvals": [
{
"jobId": "b7a4d2f0-3c1e-4a8b-9d6f-2e5c8a1b4d73",
"agentName": "Example support agent",
"createdAt": "2026-11-27T14:02:11.000Z",
"expiresAt": "2026-11-28T14:02:11.000Z",
"youRequested": false,
"canDeny": false,
"callId": "call_0a1b2c3d",
"action": "send_email",
"canApprove": false,
"approveBlockedReason": "API keys cannot approve or deny held operations; an organization admin must, in the Review Queue."
}
]
}Audit log
The audit log records governance-relevant actions in the workspace, such as approval decisions, output scoring and data exports. Entries are linked into a per-workspace hash chain, and each carries its position in it (chainSeq). A workspace admin can run a verification of that chain from the web workspace; verification is not available to API keys.
GET /api/audit
List the 100 most recent audit log entries
Returns the newest 100 entries of the workspace. The operation takes no filter or paging parameters, so older entries cannot be reached through it. userId is the acting identity: a user id, api-key: followed by the key id for calls made with a key, or null for actions taken by the platform.
Access: API key with the read scope, or a signed-in workspace member.
Returns: { entries, chain }. Each entry has id, userId, action, targetType and targetId (both null when the action has no target), detail (an object that depends on the action), createdAt (ISO 8601) and chainSeq (a number, or null for an entry that is not part of the chain). chain is { anchorSeq, headSeq, chainedAt }, or null when the workspace has no chained entries yet. Entries with a chainSeq at or below anchorSeq are not covered by chain verification.
curl https://centerofagentic.com/api/audit \
-H "Authorization: Bearer $COA_API_KEY"{
"entries": [
{
"id": "c2d9e1a4-7f3b-4c60-8a15-9e0b6d2f4a37",
"userId": "api-key:9a7c5e3b-1d2f-4b6a-8c0e-4f2a6b8d0c1e",
"action": "receipt.score_output",
"targetType": "receipt",
"targetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
"detail": { "judgesRun": ["relevance"], "passed": true, "meanScore": 0.95 },
"createdAt": "2026-11-27T14:10:42.318Z",
"chainSeq": 1284
}
],
"chain": { "anchorSeq": 310, "headSeq": 1284, "chainedAt": "2026-09-14 08:12:44.512345+00" }
}Something missing or unclear? Tell us and we will improve this page.