Traces
Query the tamper-evident audit trail of governance decisions.
Every governance decision Palveron makes (verify, MCP tool call, approval, lifecycle transition) becomes a trace. Traces are append-only, carry an integrity value, and (when enabled) are anchored on Flare for tamper-evidence.
GET /api/v1/traces
List traces with filters.
GET /api/v1/traces?time_range=7d&decision=BLOCKED&agent_id=ckagent...| Query | Default | Values |
|---|---|---|
time_range | — (no time filter) | 24h, 7d, 30d, all. Absent or all = no time filter. Invalid values return 400. |
since / until | — | ISO 8601 timestamps (e.g. 2026-03-19T00:00:00Z) for custom windows |
decision | — | PASSED, FLAGGED, BLOCKED, MODIFIED, ANONYMIZED, REDACTED, PENDING_APPROVAL, POLICY_CHANGE (plus legacy row values ALLOWED, ERROR; approval, lifecycle and incident records carry their own values such as APPROVED, DENIED, AGENT_LIFECYCLE, INCIDENT). Invalid values return 400. |
agent_id | — | Filter by agent |
environment (alias env) | prod | Environment scope. Note the default: without this parameter you only see prod traces |
id | — | Exact trace-id lookup (returns that single trace regardless of age) |
limit | 100 | Page size, max 1000 |
offset | 0 | Offset-based pagination |
{
"traces": [
{
"id": "cktrace...",
"timestamp": "2026-05-15T14:23:00Z",
"decision": "ANONYMIZED",
"reason": "Personal data was detected in this request and protected before it was passed on. Anonymized: Social security number (1).",
"integrity_hash": "sha256:...",
"flare_status": "ANCHORED",
"flare_tx_hash": "0x...",
"action_name": "VEXIS_NEURAL_VERIFY",
"environment": "prod",
"display_content": "My social security number is [SSN_1].",
"display_form": "masked",
"transmission": "not_reported_yet",
"raw_available": true,
"input_prompt": "My social security number is [SSN_1].",
"output_response": null,
"metadata": { "agent_id": "ckagent..." },
"userAction": null,
"justification": null
}
],
"total": 1
}Pagination is offset-based (limit + offset); the response carries the matching total.
Trace content: what this endpoint does and does not return
The list never carries raw prompt content. Every row is resolved server-side into four fields, and the legacy fields are scrubbed to match. Two of them are separate statements: which form of the content may be shown (from the verdict) and what is known about sending (from the reported result, or from what the gateway itself did). Neither stands in for the other.
| Field | Meaning |
|---|---|
display_content | The display-safe text: the masked form for REDACTED / ANONYMIZED / MODIFIED, the checked prompt for PASSED, for FLAGGED the masked form or an empty string (never the raw prompt), and an empty string when the verdict shows no content. It says nothing about whether the text was sent. |
display_form | Which form display_content is: masked, plain (as checked, nothing detected), none (the verdict shows no content, for example blocked or held for approval) or unavailable (a masked form should exist but could not be resolved; the raw input is never substituted). |
transmission | What happened to the request, one of 17 values (table below). |
raw_available | Whether a raw original exists that an admin could reveal through the gated reveal endpoint. |
transmission: what happened to the request
The value set depends on the way the request took. "Sent" always means handed over to the service's network path, never "accepted by the service". The values of the browser way are the browser's own statement; the gateway stores them as reported and does not check them against the verdict.
| Way | Values |
|---|---|
| Browser Guard | sent_as_checked, sent_masked, sent_justified, sent_after_warning, not_sent_blocked, not_sent_cancelled, not_sent_expired, not_sent_page_left, not_sent_send_failed (the result the browser reported); without a result not_reported_yet while the request is younger than 7 days, then not_reported. A later result is still taken. |
| Proxy | released_for_forwarding (the gateway released it; the provider's answer is not recorded) or withheld_by_gateway |
| MCP tool call | forwarded_by_gateway, withheld_by_gateway or not_determinable (an upstream error and an unreachable server share one decision) |
/api/v1/verify | returned_to_caller: the verdict went back to your code, which does the sending; the gateway does not send itself |
| No prompt (approval decisions, policy changes, administrative events) | not_applicable |
| A way the gateway does not know | not_determinable |
No value says "sent" that nobody reported. A browser request without a result reads "result not reported yet", then "result not reported", never "sent".
Consequently input_prompt carries the same safe value as display_content, and
output_response is always null on this route. The raw original ships only
via GET /api/v1/traces/{trace_id}/reveal, which is ADMIN-only, requires the
project's audit detail level to be full, and writes an audit record on every
successful reveal.
extracted_text, the text taken from attachments, is only set when display_form is plain; in every other case it is always null, including blocked requests and requests awaiting approval.
Fetch a single trace
There is no /traces/{id} route; use the exact-id filter instead:
GET /api/v1/traces?id=cktrace...Returns the full trace record including input/output payloads (in the masked form where data was detected), Flare proof fields, display form and transmission.
POST /api/v1/traces/{traceId}/outcome
Browser Guard reports here what it did with a request after the verdict: one result per request. It replaces the former POST /api/v1/traces/{trace_id}/action, which no longer exists (404). Only Browser Guard calls this route; the dashboard does not write to it.
- Writer: only Browser Guard, never a dashboard session. Since version 1.6.0, Browser Guard signs the request with its device key; while Settings → Security → Transition for older Browser Guards is open, an older Browser Guard may still report with the project key. A dashboard session (any role) is refused with
403outcome_browser_only. - Request: only a request of the same project that came from Browser Guard takes a result. Another request of the project answers
409outcome_not_browser; a request of another project answers like a missing one (404not_found). - Emergency stop: while a stop is active, the project key is refused with
403project_emergency_stopped.
{
"schema_version": 1,
"eventId": "pg-0f8fad5b-d9cb-469f-a165-70867728950e",
"claimedAt": "2026-10-22T08:00:01.250Z",
"outcome": "sent_justified",
"channel": "fetch",
"serviceId": "chatgpt",
"justification": "False positive, internal test data.",
"serviceAnswer": "2xx"
}| Field | Required | Type and values |
|---|---|---|
schema_version | yes | 1; another number answers 400 event_format_unsupported |
eventId | yes | The device's id of this report, 1 to 64 characters, unique per project |
claimedAt | yes | Device time, RFC 3339 with zone (without one: 400 event_time_invalid). A claim of the device, never a proven time |
outcome | yes | One of the nine kinds below |
channel | yes | fetch, xhr or ws |
serviceId | yes | The service id from the extension's list of services, ^[a-z0-9_]{1,64}$ |
justification | exactly with sent_justified | The person's text, at least 10 characters after trimming; with any other kind 400 |
serviceAnswer | no | 2xx, 4xx, 5xx, network_error, not_observable; only with a sent_* kind, over ws only not_observable |
Any other field answers 400 outcome_field_unknown, a value outside a closed set 400 outcome_value_unknown (the message names field and value), any other fault of form 400 validation_error. Nothing is stored on a refusal.
outcome | What the browser did |
|---|---|
sent_as_checked | Handed over the checked body unchanged |
sent_masked | Handed over the masked body |
sent_justified | Handed over after a justification |
sent_after_warning | Handed over after the person dismissed a warning |
not_sent_blocked | Held back by the verdict, or because rewriting failed |
not_sent_cancelled | The person cancelled in the dialog |
not_sent_expired | A deadline ran out |
not_sent_page_left | Page left, reloaded or tab closed while held |
not_sent_send_failed | The hand-over to the network provably failed |
The kind is the browser's statement and is not checked against the verdict: a result that does not fit its verdict is stored as reported and shown as such.
| Status | Code | When |
|---|---|---|
200 | alreadyRecorded: false | Stored now |
200 | alreadyRecorded: true | The same report again (same eventId, same request, same content); nothing written |
409 | outcome_already_recorded | The request already has a result under another eventId; the first one reported stands |
409 | event_id_conflict | The eventId stands for another report |
409 | outcome_not_browser | The request did not come from Browser Guard |
409 | outcome_decision_already_recorded | sent_justified or sent_after_warning for a request that already carries a person's decision from the time of the former /action route; nothing is stored |
404 | not_found | No such request in this project |
403 | outcome_browser_only | Dashboard session or another kind of proof |
403 | project_emergency_stopped | Emergency stop active |
400 | outcome_field_unknown, outcome_value_unknown, event_format_unsupported, event_time_invalid, validation_error | See the field table |
500 | internal | A database fault; nothing is written, the extension retries |
What the record says about a justification or a warning
sent_justified and sent_after_warning write an entry in the same transaction as the result: TRACE_JUSTIFIED_OVERRIDE or TRACE_WARN_PROCEEDED, its target is the request (targetId is the trace id). If one fails, neither stands. The field afterValue carries outcome, eventId and serviceId; a justified send also carries sent, what the send carried. The gateway takes sent from what it recorded on the request when it checked the prompt, never from the report of the browser.
sent | Meaning |
|---|---|
original | Nothing stayed masked; the original was sent. |
justified_with_masking | Sent with a justification; at least one category stayed masked. afterValue then also carries still_masked, a list of label and count, never clear text. |
not_permitted | The gateway had not permitted sending with a justification, yet Browser Guard reported it. What was sent is not confirmed. |
not_recorded | The request carries no statement about it, for example because it was created before this statement existed. |
With original and justified_with_masking, afterValue also carries released: the detected categories that were sent in clear text, likewise a list of label and count, never clear text. If released is missing, which categories went in clear text is not recorded.
{ "override_action": "JUSTIFIED", "outcome": "sent_justified", "eventId": "pg-0f8fad5b-d9cb-469f-a165-70867728950e", "serviceId": "chatgpt", "sent": "justified_with_masking", "still_masked": [{ "label": "IBAN", "count": 1 }], "released": [{ "label": "PERSON", "count": 1 }] }A send after a warning carries no sent. An unknown or missing value never means "original sent". Read the entry with GET /api/v1/admin/audit?target_id=<trace_id> (only in a dashboard session, not with the project key); the Trace Explorer shows it in the "Human decision" card, and only for a request whose transmission is sent_justified or sent_after_warning.
GET /api/v1/export
Bulk export traces as CSV.
| Query | Default | Description |
|---|---|---|
format | csv | Only csv is supported; any other value returns 400 |
decision | — | Same values and validation as GET /traces |
time_range | — (no time filter) | 24h, 7d, 30d, all; invalid values return 400 |
Returns text/csv. The columns Display_Form and Transmission carry the same values as display_form and transmission above, as identifiers. These are the only filters the export applies: unsupported filter values fail loudly with 400 instead of silently delivering an unfiltered "filtered" export. If the export hits the row cap, the file ends with an explicit # truncated: … marker line.
How far back an export can reach is governed by the project's data-retention setting: trace content past min(configured retention, tier cap) is deleted by the retention worker. Exports cover what is retained.
Retry behavior
GET /traces and GET /export are idempotent, so they are safe to retry. The SDKs retry transient 5xx and timeout errors up to maxRetries (default 3) with exponential backoff plus jitter. 429 responses include a Retry-After header; honor it.