number
default:"30"
Days of history to include, capped at 90.
Response shape mirrors the workspace-level usage data shown in Rate Limits — token counts and cost, broken out per day for the requested window.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl "https://suite.sundaypyjamas.com/api/v1/apps/app_123/usage?days=7" \
-H "Authorization: Bearer spj_ai_your_api_key_here"
Retrieve usage statistics for an app
GET /api/v1/apps/{appId}/usage
curl "https://suite.sundaypyjamas.com/api/v1/apps/app_123/usage?days=7" \
-H "Authorization: Bearer spj_ai_your_api_key_here"
| Status | Error |
|---|---|
| 401 | Unauthorized or app not found |