account

Usage and credit: balance, holds, free usage, startup hours, a pilot's sandbox-hours and per-resource charges, in integer microdollars.

get/v1/usage

Request

  • Base URL: https://api.withruntime.com
  • URL: https://api.withruntime.com/v1/usage
  • Auth: HTTP bearer

Query parameters

keystring

A key's id (POST /v1/keys and GET /v1/keys give it): adds that key's own spend as key. A key reads itself, the keys it made, and any key its reads reach.

Response

Success

orgIdstring
unit'microdollars' required
creditedstring required

Every credit ever added: purchases and grants. Integer microdollars, as a string.

spentstring required

Settled usage, including what refunds and disputes took back. Integer microdollars, as a string.

heldstring required

Reserved against running and paused work, not yet settled. Integer microdollars, as a string.

expiredstring required

Credit that expired, or grant credit taken back. Integer microdollars, as a string.

availablestring required

What can still be spent: credited - spent - expired - held. Integer microdollars, as a string.

takenBackstring required

The part of spent that refunds and disputes took. Integer microdollars, as a string.

resourcesobject[] required

This principal's hundred newest resources and what each has used and been charged; kinds totals all of them.

Changes

No recorded changes to this operation across all 1 revision of this API.