Usage operations

Usage metering.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

usage.current

Usage stats for the current billing period (storage, tiles, credits, jobs).

Scopeusage:read
Side-effectread
HTTPPOST /v1/op/usage.current · POST /v1/usage/current
Python / TypeScriptclient.usage.current(…)
CLIgeopera usage current …

RequestUsageCurrentInput

FieldTypeRequiredDescription
organization_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

usage.history

Historical usage (tile requests + peak storage) for the past N months.

Scopeusage:read
Side-effectread
HTTPPOST /v1/op/usage.history · POST /v1/usage/history
Python / TypeScriptclient.usage.history(…)
CLIgeopera usage history …

RequestUsageHistoryInput

FieldTypeRequiredDescription
organization_idstringyes
monthsinteger

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

usage.recalculate_storage

Recalculate an org’s storage from actual stored assets (org admin).

Scopeusage:write
Side-effectcompute
HTTPPOST /v1/op/usage.recalculate_storage · POST /v1/usage/recalculate_storage
Python / TypeScriptclient.usage.recalculate_storage(…)
CLIgeopera usage recalculate-storage …

RequestRecalculateInput

FieldTypeRequiredDescription
organization_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.