PalveronPalveronDocs

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...
QueryDefaultValues
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)prodEnvironment scope. Note the default: without this parameter you only see prod traces
id—Exact trace-id lookup (returns that single trace regardless of age)
limit100Page size, max 1000
offset0Offset-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.

FieldMeaning
display_contentThe 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_formWhich 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).
transmissionWhat happened to the request, one of 17 values (table below).
raw_availableWhether 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.

WayValues
Browser Guardsent_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.
Proxyreleased_for_forwarding (the gateway released it; the provider's answer is not recorded) or withheld_by_gateway
MCP tool callforwarded_by_gateway, withheld_by_gateway or not_determinable (an upstream error and an unreachable server share one decision)
/api/v1/verifyreturned_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 knownot_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 403 outcome_browser_only.
  • Request: only a request of the same project that came from Browser Guard takes a result. Another request of the project answers 409 outcome_not_browser; a request of another project answers like a missing one (404 not_found).
  • Emergency stop: while a stop is active, the project key is refused with 403 project_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"
}
FieldRequiredType and values
schema_versionyes1; another number answers 400 event_format_unsupported
eventIdyesThe device's id of this report, 1 to 64 characters, unique per project
claimedAtyesDevice time, RFC 3339 with zone (without one: 400 event_time_invalid). A claim of the device, never a proven time
outcomeyesOne of the nine kinds below
channelyesfetch, xhr or ws
serviceIdyesThe service id from the extension's list of services, ^[a-z0-9_]{1,64}$
justificationexactly with sent_justifiedThe person's text, at least 10 characters after trimming; with any other kind 400
serviceAnswerno2xx, 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.

outcomeWhat the browser did
sent_as_checkedHanded over the checked body unchanged
sent_maskedHanded over the masked body
sent_justifiedHanded over after a justification
sent_after_warningHanded over after the person dismissed a warning
not_sent_blockedHeld back by the verdict, or because rewriting failed
not_sent_cancelledThe person cancelled in the dialog
not_sent_expiredA deadline ran out
not_sent_page_leftPage left, reloaded or tab closed while held
not_sent_send_failedThe 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.

StatusCodeWhen
200alreadyRecorded: falseStored now
200alreadyRecorded: trueThe same report again (same eventId, same request, same content); nothing written
409outcome_already_recordedThe request already has a result under another eventId; the first one reported stands
409event_id_conflictThe eventId stands for another report
409outcome_not_browserThe request did not come from Browser Guard
409outcome_decision_already_recordedsent_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
404not_foundNo such request in this project
403outcome_browser_onlyDashboard session or another kind of proof
403project_emergency_stoppedEmergency stop active
400outcome_field_unknown, outcome_value_unknown, event_format_unsupported, event_time_invalid, validation_errorSee the field table
500internalA 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.

sentMeaning
originalNothing stayed masked; the original was sent.
justified_with_maskingSent 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_permittedThe gateway had not permitted sending with a justification, yet Browser Guard reported it. What was sent is not confirmed.
not_recordedThe 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.

QueryDefaultDescription
formatcsvOnly 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.

On this page