Skip to main content
GET
Go (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Query Parameters

from
string<date-time>

Inclusive RFC 3339 timestamp on an exact UTC minute boundary; never rounded. Defaults to 30 days before to, and the response then sets window.defaulted.

to
string<date-time>

Exclusive RFC 3339 timestamp on an exact UTC minute boundary; never rounded and cannot be later than the server's current UTC minute boundary. Defaults to that boundary, and the response then sets window.defaulted.

resource_type
enum<string>
Available options:
job,
service,
volume
cursor
string
limit
integer
default:50
Required range: 1 <= x <= 200

Response

Usage in the half-open requested window

as_of
string<date-time>
required

When these figures were computed, in whole UTC seconds.

data
object[]
required
final
boolean
required

True when the whole window is final: window.to is at or before final_through. Otherwise the figures are provisional and can still change.

final_through
string<date-time>
required

Usage before this instant is final and will not change; usage at or after it is provisional. At most as_of minus settlement_window_seconds. It is also held back to the point through which the meter has recorded the job and service usage in scope, because a meter that falls behind backfills the missed minutes later, and, when standalone volumes are in scope (resource_type omitted or volume), to volume_usage_complete_through. Both watermarks are capped to the requested window.

granularity
enum<string>
required

Required alignment and allocation granularity of the requested window.

Available options:
minute
next_cursor
string | null
required
settlement_window_seconds
integer
required

How long after it occurs usage can still change: always 86400 (24 hours). Usage older than this is final.

summary
object
required
total
integer
required
volume_allocation
enum<string>
required

Finalized hourly volume totals are allocated uniformly over their immutable billable interval.

Available options:
uniform_proration
volume_ledger_granularity
enum<string>
required

Immutable UTC bucket granularity of standalone-volume billing rows.

Available options:
hour
volume_usage_complete
boolean
required

True only when every relevant standalone volume has a contiguous durable ledger prefix through window.to.

volume_usage_complete_through
string<date-time>
required

Conservative organization-wide standalone-volume ledger watermark, capped to the requested window.

window
object
required