Get user credit balance
GET
Free (0 credits) Permission: /api/v1/user/balance user:read Returns the authenticated user's ID and current credit balance.
Authorization
Returns
401
Missing or invalid API key or OAuth access token
JSON
One of the following:
- ErrorResponse
- Error
404
Requested user or resource not found
JSON
One of the following:
- ErrorResponse
- Error
429
Rate limit or daily request quota exceeded
JSON
One of the following:
- ErrorResponse
- Error
500
Internal server error
JSON
- error_code: optional forbidden_scope|rate_limited|daily_quota_exceeded|insufficient_credits|duplicate_transaction
Machine-readable error code. Known values include: forbidden_scope, rate_limited, daily_quota_exceeded, insufficient_credits, duplicate_transaction. Additional codes may be introduced in future releases.