Usage Summary
Get recent workspace usage and billing counters.
Return recent usage, render-credit counters, and workspace summary data for dashboard screens.
Endpoint
GET https://api.pixmato.com/v1/usage/summary
Request
curl "https://api.pixmato.com/v1/usage/summary" \
-H "Cookie: __Secure-better-auth.session_token=..."
Response
{
"billing": {
"plan": {
"id": "free",
"name": "Free",
"renderCreditLimit": 100
},
"credits": {
"used": 23,
"limit": 100,
"remaining": 77,
"percentUsed": 0.23
}
},
"summary": {
"renderCount": 24,
"completedCount": 23,
"failedCount": 1,
"avgDurationMs": 842,
"templateCount": 7,
"activeApiKeyCount": 1,
"assetCount": 3
},
"daily": [],
"recent": []
}
percentUsed is a ratio from 0 to 1; multiply by 100 for a percentage label.