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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| data | object | - | - |
Errors
| 状态码 | 说明 |
|---|---|
| 401 | Unauthorized Error |
| 403 | Forbidden Error |
| 500 | Internal Server Error |