Get Credit Summary
GET/credits/summary
Get credit usage summary for current billing period.
Authentication
Authorization: Bearer vm_sk_… with the media.read permission (or all.read). See Authentication.
Response
200 application/json
| Field | Type | Description |
|---|---|---|
balance* | CreditBalanceResponse | Credit balance response. |
period_summary* | object | Summary by transaction type for current period |
{
"balance": {
"allocated": 0,
"bonus": 0,
"lifetime_used": 0,
"quota": 0,
"remaining": 0,
"total_available": 0,
"used_this_period": 0
},
"period_summary": {}
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.read, the route is not available to keys, or the key's IP allow-list refuses this client. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X GET "https://api.voicemint.io/api/v1/credits/summary" \
-H "Authorization: Bearer $VOICEMINT_API_KEY"