Skip to main content
GET /api/v1/apps/{appId}/usage
days
number
default:"30"
Days of history to include, capped at 90.
curl "https://suite.sundaypyjamas.com/api/v1/apps/app_123/usage?days=7" \
  -H "Authorization: Bearer spj_ai_your_api_key_here"
Response shape mirrors the workspace-level usage data shown in Rate Limits — token counts and cost, broken out per day for the requested window.

Errors

StatusError
401Unauthorized or app not found