Skip to main content
GET
GET /api/insights/usage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

range
enum<string>
default:7d
Available options:
24h,
7d,
30d,
custom
from
string
to
string
measure
enum<string>
default:tokens
Available options:
tokens,
actions,
runs,
turns
timeZone
string
default:UTC
Required string length: 1 - 64

Response

Success

range
enum<string>
required
Available options:
24h,
7d,
30d,
custom
measure
enum<string>
required
Available options:
tokens,
actions,
runs,
turns
timeZone
string
required
bucket
enum<string>
required
Available options:
hour,
day,
week
from
string<date-time>
required
to
string<date-time>
required
previousFrom
string<date-time>
required
previousTo
string<date-time>
required
buckets
string<date-time>[]
required
agents
object[]
required