GET
/
usage
curl --request GET \
  --url https://app.happyrobot.ai/api/v1/usage \
  --header 'authorization: <authorization>'
[
  {
    "organization_id": "<string>",
    "period": "<string>",
    "duration": 123,
    "callCount": 123
  }
]

Headers

authorization
string
required

Your API key for authentication. Use Bearer format.

Query Parameters

timeframe
enum<string>
default: monthly

Timeframe of the query, can only be 'weekly', 'monthly' or 'daily'

Available options:
weekly,
monthly,
daily

Response

200 - application/json
organization_id
string
required

Organization ID.

period
string
required

Period string representation

duration
number
required

Total duration in seconds

callCount
number
required

Total number of calls