Docs

Get usage metrics

Retrieve project usage totals and daily values for a UTC date range.

GET
/metrics/usage

Authorization

Authorization
header
string
required

Enter the project access token with the Bearer prefix, e.g. "Bearer project_access_token"

Query Parameters

format
string

Response format. Defaults to JSON unless Accept requests CSV. Overrides Accept when supplied; errors remain JSON.

Available options:
jsoncsv
from
string

Inclusive UTC start date, YYYY-MM-DD. Supply both dates for a custom range of at most 366 days. Omit both for the past 7 UTC calendar days including today.

Pattern:
^\d{4}-\d{2}-\d{2}$
to
string

Exclusive UTC end date, YYYY-MM-DD. Must be after from and at most 366 days later.

Pattern:
^\d{4}-\d{2}-\d{2}$

Responses

application/json
data
object
required

Data contains the requested report.

text/csv

The project report.