Retrieve AI Credits Summary
GET/api/v1/stats/ai/credits
Lightweight endpoint for the Dashboard UI cards. Returns credit usage and remaining balance for the authenticated user's account.
Response
{
"credits_used": 342,
"credits_remaining": 1158,
"requests": 13,
"period": 720
}
| Key | Description |
|---|---|
credits_used | Total AI credits consumed in the period |
credits_remaining | Current credit pool balance for the account |
requests | Number of AI Agent requests in the period |
period | Period in hours |
Request
Responses
- 200
- 401
- 500
Successful operation
Unauthorized - Invalid or missing authentication
Internal server error