Agent Plane
Audit Logs
Track and analyze every API request
Overview
Router9 logs every API request made through your agent's key. Audit logs provide full visibility into model usage, latency, status codes, and request/response payloads.
Viewing Audit Logs
Go to Agent → Audit in the dashboard to see your request history.
Columns
| Column | Description |
|---|---|
| Time | When the request was made |
| Model | The model used (after routing) |
| Action | Type of operation (chat, asr, tts, etc.) |
| Status | HTTP status code (color-coded) |
| Latency | Response time in milliseconds |
Status Colors
- Green (2xx) — Successful requests
- Yellow (4xx) — Client errors (bad request, rate limited, etc.)
- Red (5xx) — Server or provider errors
Request Details
Click any row to open a detail panel showing:
- Timestamp
- Model name
- Action type
- Status code
- Latency in ms
- Full request body (JSON)
- Full response body (JSON)
Filtering
Filter logs by:
- Provider — Filter by upstream provider name
- Status code — Filter by specific HTTP status codes
Click Apply to update results after setting filters.
CSV Export
Click Export CSV to download your audit logs. The export includes:
- Time
- Model
- Action
- Status
- Latency (ms)
The file is named audit-{agentId}.csv.
Logged Fields
Each audit log entry records:
| Field | Description |
|---|---|
requestId | Unique request identifier |
requestModel | Model requested by the client |
model | Actual model used (after routing) |
tool | Operation type (chat, asr, tts, image_understand, etc.) |
provider | Upstream provider used |
inputTokens | Tokens in the prompt |
outputTokens | Tokens in the response |
latencyMs | Total response time |
firstTokenLatencyMs | Time to first token (streaming) |
status | HTTP status code |
errorMessage | Error details (if applicable) |
Retention by Plan
| Plan | Retention |
|---|---|
| Free | 7 days |
| Assistant | 30 days |
| Engineer | 30 days |
Logs older than the retention period are automatically deleted.