Export evidence for review
Page through receipts, read the audit log, verify the audit chain and understand what this evidence does and does not establish.
A reviewer usually asks two questions: what did the agents do, and who changed what. Receipts answer the first and the audit log answers the second. Both can be read with a read-scope key.
List and filter receipts
GET /api/receipts returns receipts newest first as receipts, total and hasMore. limit defaults to 100 and is capped at 200. An invalid filter value returns 400 with a code such as invalid_decision.
| Parameter | Matches |
|---|---|
agentId | Runs of one agent. |
user | Runs by one caller: a member's user id, or api-key: followed by a key id. |
decision | allow or deny. |
reasonCode | An exact reason code, for example SPEND_OVER_BUDGET. |
placement | A placement in the receipt's placements list, for example cloud_model. |
dataClass | A data class recorded on one of the run's steps. |
connector | A connection name in the receipt's connectionsUsed list. |
obligation | pending_approval, redaction or logging. |
q | Text contained in the agent name, prompt or output. Case-insensitive. |
createdBefore, beforeId | The paging cursor described below. |
Page until exhausted
Paging uses a cursor, not an offset. Take the last receipt on the page, pass its createdAt as createdBefore and its id as beforeId, and stop when hasMore is false. Runs that arrive during the export do not shift the pages. createdAt is returned with millisecond precision, so a receipt written in the same millisecond as the last one on a page can be missed. total counts every match for your filters: compare it with the number you collected and run the export again if receipts are missing.
The example exports denied runs. Remove &decision=deny to export every receipt, or swap in any filter from the table above.
BASE="https://centerofagentic.com"
CURSOR=""
: > receipts.ndjson
while :; do
PAGE=$(curl -sS "$BASE/api/receipts?limit=200&decision=deny$CURSOR" \
-H "Authorization: Bearer $COA_API_KEY")
jq -e '.receipts' <<<"$PAGE" > /dev/null || { echo "Request failed: $PAGE" >&2; break; }
jq -c '.receipts[]' <<<"$PAGE" >> receipts.ndjson
[ "$(jq -r .hasMore <<<"$PAGE")" = "true" ] || break
CURSOR=$(jq -r '.receipts[-1] | "&createdBefore=\(.createdAt | @uri)&beforeId=\(.id)"' <<<"$PAGE")
done
echo "Exported $(wc -l < receipts.ndjson | tr -d ' ') of $(jq -r .total <<<"$PAGE") matching receipts"Fetch one receipt
curl -s https://centerofagentic.com/api/receipts/e7b1c9a4-3d52-4f8e-a6c0-1f9d2b7e5a38 \
-H "Authorization: Bearer $COA_API_KEY"A missing id, a malformed id and an id from another workspace all return 404 not_found.
| Fields | What they record |
|---|---|
decision | The full policy decision: verdict, reason code, layers, matched deny rules, obligations and surviving placements. |
prompt, output, model | What was asked, what was returned and which model produced it. |
steps, toolLog, connectionsUsed | The timeline of the run and each connector call. |
promptTokens, completionTokens, costUsd, latencyMs | Usage where it is known. null means not recorded, not zero. |
rawUploaded | Whether raw documents were uploaded during the run. |
assuranceTier, evidenceClass | 2 and enforcement when the server decided and dispatched the run. 0 and observation for a record reported by the desktop app. null on receipts written before these fields were recorded. |
signatureStatus, flagged | For desktop reports: the result of the device-signature check, and whether the server's own evaluation disagreed with the reported decision. |
evidenceIncomplete, reconciliationIds | Set when part of the run's evidence could not be recorded. |
Read the audit log
curl -s https://centerofagentic.com/api/audit \
-H "Authorization: Bearer $COA_API_KEY" \
| jq '.entries[] | {createdAt, userId, action, targetType, targetId}'The response has entries and chain. entries holds the 100 most recent audit entries; the endpoint takes no filter or paging parameters. To keep a continuous copy, poll more often than your workspace produces 100 entries and de-duplicate by id. Each entry has userId, action, targetType, targetId, detail, createdAt and chainSeq.
Typical actions are agent.runtime.ticket, agent.runtime.admit, agent.run or connector.run, agent.runtime.complete, apikey.create, apikey.revoke and run.approval.requested. A run of an activated agent writes at least four entries (ticket, admit, the run itself and complete), so 100 entries hold at most 25 such runs: size your polling interval by entries, not by runs. Receipts are the pageable record of runs. For a longer audit history, a signed-in workspace admin can download the workspace export under Settings → Retention & privacy, which holds at most the newest 50,000 audit entries.
chain gives the position where hash chaining began (anchorSeq), the current head (headSeq) and chainedAt. Entries at or before anchorSeq predate the chain. chain is null until the workspace has a chained entry.
Verify the audit chain
Audit entries are linked by hashes. A workspace admin verifies the chain with Verify chain on the Audit Log screen. POST /api/audit/verify accepts only a signed-in workspace admin; an API key is refused with 403, whatever its scope. The report gives a status of verified or failed, the range checked (fromSeq to headSeq), checkedRows, the gaps that retention accounts for (accountedGaps, removedRows), issues and unverifiedRows. Each verification is itself written to the audit log.
| A verified chain establishes | It does not establish |
|---|---|
| Every entry since chaining began still matches its recorded hash and links to the entry before it. | Anything about entries from before chaining began. They are counted as unverified history. |
| No entry is missing unless a retention or erasure entry accounts for the gap. | Protection against someone able to recompute every hash, such as a database owner. |
| The last entry matches the chain head stored separately from the entries. | Anything about receipts. The chain covers audit entries only. |
Retention
- The retention job removes nothing unless a workspace admin sets a window, in days, for receipts or for audit entries under Settings → Retention & privacy. While a monthly spend cap is set, the receipt window must be empty or at least 32 days.
- With a window set, a daily job removes older records in batches, so a backlog can take several days to clear.
- Every removal writes an audit entry. For audit entries it lists the chain positions removed, so verification can account for the gap.
- A workspace admin can also erase receipts or the audit trail on request. The erasure is recorded before it runs.
- A removed receipt cannot be fetched again. Export what you need before the window passes.
The same settings screen offers a full workspace export for a signed-in workspace admin. It is not available to API keys and holds at most the newest 50,000 records of each kind.
What this evidence is and is not
- Server receipts are evidence of the server-controlled path. Where the server decided and dispatched an operation, the receipt describes enforcement through that path. It does not describe what a connected system did afterwards.
- Device reports are observations. Records reported by the desktop app, which is an alpha, carry the class
observationeven when signed. A valid signature shows where a record came from and that it was not altered. It does not independently show that the device enforced every control. - Usage can be incomplete. Token and cost fields are recorded where known. Treat
nullas unknown. - Exports are not certification. An export collects supporting evidence for your own review. It is not a compliance certificate or an independent audit.
Governance and evidence states the same limits for a non-technical reader. The MCP server is closed today for every workspace, because Center of Agentic has not turned on the platform-wide switch. Once Center of Agentic, the workspace and a grant for the key all allow it, MCP clients can read receipts with the tools in the MCP tool reference.
Next steps
Something missing or unclear? Tell us and we will improve this page.