Back to How-To
Export History Data
Download your agent's validation history for reporting or analysis.
From API
curl "https://api.agentstatus.dev/api/v1/agents/{agent_id}/history?hours=168" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o history.json
Parameters: hours (default 24, max 168), limit (default 100, max 500), offset for pagination.
Export to CSV
curl "..." | jq -r '.results[] | [.created_at, .verdict, .uptime, .latency_p50_ms, .eval_pass_rate] | @csv' > history.csv
Retention
| Tier | Retention |
|---|---|
| Free | 7 days |
| Paid | 30 days |
| Enterprise | Custom |
Export data before retention period ends.
Use Cases
- Weekly reports — Export last 168 hours every Monday
- SLA compliance — Calculate uptime percentage
- Incident analysis — Filter for non-UP verdicts
- Metrics export — Push to Prometheus, Datadog, etc.