Credits
Read the total credits purchased and used on your EUrouter account, in euros, to track the balance that pays for API requests.
Get credits
Returns the lifetime credit totals, in EUR, of the wallet your requests bill to: the organization wallet for an API key that belongs to an organization, your personal wallet otherwise.
total_credits is everything added to the wallet, such as top-ups. total_usage is everything your requests have cost. Poll both to track spend over time, for example from a script that warns you before the wallet runs low.
A request fails with a 402 status when the balance is too low to cover it, so add credits in the dashboard under Billing before that happens. How pricing, currency conversion and the minimum balance work is explained in Credits.
Authorization
bearerAuth API key in format: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Response Body
application/json
curl -X GET "https://api.eurouter.ai/api/v1/credits"{
"data": {
"total_credits": "string",
"total_usage": "string"
}
}