JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.phaseo.app/v1/activity', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "ok": true, "period_days": 30, "limit": 50, "offset": 0, "total": 1250, "total_cost_cents": 12.5, "activity": [ { "request_id": "req_abc123", "provider": "openai", "model": "gpt-4o", "endpoint": "chat.completions", "usage": { "input_tokens": 123, "output_tokens": 123, "total_tokens": 123 }, "cost_cents": 0.015, "latency_ms": 450, "timestamp": "2026-01-20T10:30:00Z" } ] }
Retrieve recent API activity for a team with configurable time range and pagination.
Bearer token authentication
The team ID to query
Number of days to look back
1 <= x <= 90
Maximum number of records to return
1 <= x <= 250
Pagination offset
x >= 0
Activity data
true
30
50
0
1250
12.5
Show child attributes
Was this page helpful?