Skip to main content
GET
Read usage
Takes a managing key (oc_key_...) or a signed-in session. See How it works for what the gateway records. Counts of the requests agents made on the vaults you can use, over the last 4 or 30 days.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Query Parameters

days
enum<string>
default:30

How many days to count, today included: 4 or 30.

Available options:
4,
30
vault
string

Only requests on this vault.

Required string length: 1 - 64
agent
string

Only requests this agent made.

Required string length: 1 - 64

Response

The counts.

byAgent
object[]
required
byDay
object[]
required

One entry per day, oldest first, today last. A day with no request is there with 0.

byItem
object[]
required

Today's (UTC) most used items, at most 5, most first. Only live items in vaults you can use now. A request counts once for each item it used.

byResult
object[]
required
byVault
object[]
required
days
integer
required

4 or 30.

extra
object
required

More counts by name, when the server has any to add. Empty otherwise.

total
integer
required