Get Company Usage
GET
/api/v1/usage
const url = 'https://aura-api-eu.strangeworks.com/api/v1/usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://aura-api-eu.strangeworks.com/api/v1/usage \ --header 'Authorization: Bearer <token>'Company-wide usage over [since, until) (until exclusive, defaults open).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CompanyUsageResponse
Company-wide usage over [since, until).
unattributed covers events recorded with neither a user nor an API key
(pre-attribution history); it is a subtotal of totals, so
totals = per-user usage + per-key usage + unattributed.
object
totals
required
UsageTotalsResponse
Aggregated usage in credits.
object
credits
required
Credits
Tracked usage converted to credits, rounded to 2 decimal places per aggregate.
number
unattributed
required
UsageTotalsResponse
Aggregated usage in credits.
object
credits
required
Credits
Tracked usage converted to credits, rounded to 2 decimal places per aggregate.
number
Examplegenerated
{ "since": "2026-04-15T12:00:00Z", "totals": { "credits": 1 }, "unattributed": { "credits": 1 }, "until": "2026-04-15T12:00:00Z"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}