Skip to main content
GET
Export usage as CSV

Authorizations

Authorization
string
header
required

A personal access token (POST /v1/auth/tokens) or a machine identity token (POST /v1/projects/{project_id}/identities/{identity_id}/tokens), both prefixed qumo_pat_. A token's scopes cap what it can do; see Scopes and permissions. A personal token names no organization: on a route whose path names no project or organization, pass ?organization_id=.

Query Parameters

organization_id
string<uuid>

The organization the request acts in. Required with a personal token or a session, which name no organization themselves; an identity token's organization is implied.

from
string<date-time>
required

Start of the range (inclusive), RFC 3339.

to
string<date-time>
required

End of the range (exclusive), RFC 3339. Must not be before from.

Response

The usage rows as CSV, sent as an attachment named usage_export_<from>_<to>.csv. The header row is Timestamp, Project ID, Project Name, Metric, Amount, Environment, Unit, API Key ID. API keys were removed: API Key ID is n/a except on rows recorded under a key before then.

The response is of type string.