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"
}
Credits
Get Credit Balance
Get current credit balance for your organization
GET
/
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"
}
integer
Remaining monthly included credits.
integer
Remaining purchased credits.
integer
Total available credits (included + purchased).
string
ISO 8601 timestamp of billing cycle start.
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"
}