Skip to main content
GET
Workspace usage

Authorizations

Authorization
string
header
required

Monid API key

Scopes

usage:read

Query Parameters

range
enum<string>
default:7d

The window, in UTC and up to the request time. 7d (default) and 30d are the last 7 and 30 days, by day. 12m is the last 12 months including the current one, by month. week (from Monday) and month are the current week and month, by day. year is the current year, by month.

Available options:
7d,
30d,
12m,
week,
month,
year
Example:

"7d"

top
enum<string>
default:10

How many providers and endpoints to return. 10 (default) and 50 return the top N by cost together with the top N by runs (at most 2N entries), so either ranking is exact for its top N. all returns every one. Totals and series always cover every run.

Available options:
10,
50,
all
Example:

"10"

Response

Usage of the authenticated workspace

range
enum<string>
required
Available options:
7d,
30d,
12m,
week,
month,
year
grain
enum<string>
required

The bucket size: a UTC day or a UTC month.

Available options:
day,
month
from
string
required

00:00 UTC of the first bucket (ISO 8601).

Example:

"2026-11-21T00:00:00.000Z"

to
string
required

End of the window, exclusive: the request time truncated to the second (ISO 8601).

Example:

"2026-11-27T09:00:00.000Z"

buckets
string[]
required

First UTC date of each bucket (YYYY-MM-DD, the 1st for a month), oldest first.

Example:
currency
enum<string>
required
Available options:
USD
top
enum<string>
required

The top the breakdowns were cut with.

Available options:
10,
50,
all
totals
object
required
series
object
required
providerCount
integer
required

Providers with runs in the window, whether or not providers lists them all.

endpointCount
integer
required

Provider and endpoint pairs with runs in the window, whether or not endpoints lists them all.

providers
object[]
required

Providers in the top N by cost or by runs (all for top=all), highest cost first.

endpoints
object[]
required

Provider and endpoint pairs in the top N by cost or by runs (all for top=all), highest cost first.