Skip to content

Get Company Usage

GET
/api/v1/usage
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).

since
Any of:
string format: date-time
until
Any of:
string format: date-time

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
since
required
Any of:
string format: date-time
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
until
required
Any of:
string format: date-time
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>
ValidationError
object
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"
}
]
}