Credits API
Use this endpoint to check the remaining credits for the authenticated user. The backend calculates the total allowance based on the stored subscription plan and any manual adjustments in the credits field.
Get credits
GET /credits
Requires authentication and returns the remaining balance and the total credits allocated to the account.
{
"left": 42,
"total": 100
}
If the user cannot be resolved from the JWT payload the service returns 401 Unauthorized.