Skip to main content
GET
https://agentgate.mynewapi.com
/
v1
/
credits
curl https://agentgate.mynewapi.com/v1/credits \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "includedCreditsCents": 5000,
  "purchasedCreditsCents": 2500,
  "totalCreditsCents": 7500,
  "billingCycleStart": "2024-01-01T00:00:00Z",
  "billingCycleEnd": "2024-01-31T23:59:59Z"
}
includedCreditsCents
integer
Remaining monthly included credits.
purchasedCreditsCents
integer
Remaining purchased credits.
totalCreditsCents
integer
Total available credits (included + purchased).
billingCycleStart
string
ISO 8601 timestamp of billing cycle start.
billingCycleEnd
string
ISO 8601 timestamp of billing cycle end.
curl https://agentgate.mynewapi.com/v1/credits \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "includedCreditsCents": 5000,
  "purchasedCreditsCents": 2500,
  "totalCreditsCents": 7500,
  "billingCycleStart": "2024-01-01T00:00:00Z",
  "billingCycleEnd": "2024-01-31T23:59:59Z"
}