Get 30-day usage histogram for the authenticated user
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"days": [
{
"date": "2023-12-25",
"usage": {}
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Usage
Get 30-day usage histogram for the authenticated user
Return a per-day breakdown of metered usage over the last 30 days (oldest first), including a list-price cost estimate per feature and per day. Days with no usage are returned with an empty usage object so the response is dense.
By default the histogram aggregates across every non-revoked API key owned by the authenticated user. Pass api_key_id as a query parameter to scope the response to a single key.
Authorization: when api_key_id is provided, the authenticated user must own that key — the existence of keys belonging to other users is not disclosed.
GET
/
api
/
v3
/
usage
Get 30-day usage histogram for the authenticated user
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"days": [
{
"date": "2023-12-25",
"usage": {}
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.