Every call toDocumentation Index
Fetch the complete documentation index at: https://docs.veto.tools/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/authorize creates an immutable audit log entry. The audit log gives you a complete record of what your agents tried to do, what was allowed or denied, and why.
Audit log entries
| Field | Description |
|---|---|
agentId | The agent that made the request |
toolName | The tool the agent attempted to call |
parameters | The parameters passed with the call (sensitive values redacted) |
result | The authorization outcome: allowed or denied |
policyId | The policy that produced the decision, or null if default deny |
reason | A human-readable explanation of the decision |
latencyMs | Time taken to evaluate the request, in milliseconds |
timestamp | When the authorization request was received (ISO 8601) |
Sensitive parameter redaction
Before parameters are written to the audit log, Veto automatically redacts values whose keys match any of the following patterns:password, secret, token, key, credential, authorization, api_key, apiKey, access_token, refresh_token
Matched values are replaced with "[REDACTED]". This applies to both top-level keys and nested object keys.
Example log entry
Append-only
The audit log is append-only. Entries cannot be deleted or modified via the API. This ensures your audit trail is tamper-evident and suitable for compliance purposes.Querying the audit log
Use the Node.js SDK or the API to filter and page through audit log entries.| Filter | Type | Description |
|---|---|---|
agentId | string | Only entries for this agent |
toolName | string | Only entries for this tool name (exact match) |
result | "allowed" | "denied" | Filter by outcome |
from | ISO date string | Entries at or after this timestamp |
to | ISO date string | Entries at or before this timestamp |
limit | number | Number of entries to return |
offset | number | Pagination offset |
Exporting to CSV
You can export audit log entries as a CSV file viaGET /v1/audit-logs/export. The export supports the same filters as the query endpoint and returns up to 5,000 rows per request.
The CSV includes the following columns: Timestamp, Agent ID, Tool, Result, Reason, Latency (ms), Parameters.
If the export is truncated because there are more than 5,000 matching entries, the response includes an
X-Veto-Export-Truncated: true header. Narrow your filters (for example, reduce the date range) to export the full dataset in multiple requests.