Skip to main content
GET
/
activity
Get activity
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"
    }
  ]
}
Returns a detailed breakdown of recent API activity including request metrics, costs, and usage data.

Authorizations

Authorization
string
header
required

Bearer token authentication

Query Parameters

team_id
string
required

The team ID to query

days
integer
default:30

Number of days to look back

Required range: 1 <= x <= 90
limit
integer
default:50

Maximum number of records to return

Required range: 1 <= x <= 250
offset
integer
default:0

Pagination offset

Required range: x >= 0

Response

Activity data

ok
boolean
Example:

true

period_days
integer
Example:

30

limit
integer
Example:

50

offset
integer
Example:

0

total
integer
Example:

1250

total_cost_cents
number
Example:

12.5

activity
object[]
Last modified on February 11, 2026