Usage API
Usage API is a utility API that helps to keep track of your used Altum credits.
The Usage API gives you insight into your API usage: the number of calls made per API within a selected period. This is useful for monitoring usage, validating integrations, and setting up call-based checks.
Name change: from Credit API to Usage API
This API was previously called the Credit API. In the new platform, a “credit” is a billing unit (1 credit = €0.05), while this API returns the number of calls. To make this distinction clearer, we renamed it to the Usage API.
A GET Request
A GET Request to the Usage API will return a JSON response showing your used credits, categorized into API names since 24 hours ago. By adding a time parameter, you can specify the time range of the request in hours.
Make GET Request to the API to receive your used credit for 24 hours. Specify your time range with the time query parameter
GET https://api.altum.ai/credit
Query Parameters
time
integer
Time range in hours. Eg. 90
Headers
x-api-key*
string
Valid API key
Content-Type
string
application/json
{ "interactivereference-api": "6", "rebuildapi": "1", "objectdataapi": "1" }
{ "message": "Forbidden" }
Laatst bijgewerkt