Logs & exports
The Activity page records one row per request with the exact token buckets (fresh input, cache read, cache write, output) plus time to first token, total duration, and the amount charged. Expand any row for the full detail, including the upstream error on failures.
- Retention
- Full history, no expiry
- Latency to appear
- Usually within 10 seconds
- Precision
- 6 decimal places on per-request cost
Any filtered view in Activity exports as CSV or JSON with one click, and the export endpoint is a plain authenticated GET that takes the same API key you call the gateway with, so it scripts cleanly:
curl -H "Authorization: Bearer $STRAITLY_API_KEY" \ "https://app.straitly.ai/api/activity/export?format=csv&since=<unix>&model=claude-sonnet-5&status=error" curl -H "Authorization: Bearer $STRAITLY_API_KEY" \ "https://app.straitly.ai/api/activity/export?format=json&since=<unix>"bash
Export limits
- At most 50,000 rows per export, newest first.
- When it hits that ceiling the response says so:
truncated: truein JSON, and anx-straitly-truncatedheader on both formats. - Page through the rest with
sinceanduntil.
