Skip to Content
API ReferenceCreditsGet Credits

Get remaining credits

GET

https://novapai.ai/api/v1/credits 

GET

/api/v1/credits

cURL
$curl https://novapai.ai/api/v1/credits \ >-H "Authorization: Bearer <token>"
200 Retrieved
reference-credits-get-credits-01.json
{ "data": { "total_credits": 100.5, "total_usage": 25.75 } }

Get total credits purchased and used for the authenticated user. Management key  required.

Authentication

Authorization Bearer

API key as bearer token in Authorization header

Response

Returns the total credits purchased and used

字段类型必填说明
dataobject--

Errors

状态码说明
401Unauthorized Error
403Forbidden Error
500Internal Server Error