Skip to main content
GET
Get boat usage

Authorizations

Authorization
string
header
required

Boat bearer token in the form boat_.... Service API keys authenticate sandbox operations.

Path Parameters

sandboxId
string
required

Public Sandbox id returned by create/list/get sandbox calls.

Pattern: ^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$

Query Parameters

since
string

Count from this time, ISO 8601 or Unix epoch seconds. Default is the sandbox's creation.

until
string

Count up to this time, ISO 8601 or Unix epoch seconds. Default is now.

Response

Billable machine time for the sandbox inside the window.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

Example:

"sandbox.usage"

sandboxId
string
required
Pattern: ^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$
Example:

"bx_23456789"

sandboxType
enum<string>
required

The sandbox's current machine size, which sets billingMultiplier.

Available options:
small,
default,
large,
xlarge
billingMultiplier
number
required

Rate at which this sandbox consumes machine time. 0.5 for small, 1 for default, 2 for large, and 50/9 for xlarge.

Example:

1

since
string<date-time>
required

Start of the window the figures cover. The sandbox's creation time when the request did not pass since.

until
string<date-time>
required

End of the window. Now when the request did not pass until, or passed one in the future.

seconds
integer
required

Billable machine-seconds inside the window, the type multiplier already applied: a large sandbox that ran ten minutes reads 1200. Includes a running sandbox's time up to until. Time while stopped is never counted and time past a refused stop is excluded.

Example:

4980

dollars
number
required

seconds at list price (seconds / secondsPerDollar), whatever plan, trial or gift actually paid for it. Up to six decimals.

Example:

0.0498

secondsPerDollar
integer
required

How many billable seconds one dollar buys, so you can price seconds yourself.

Example:

100000

running
boolean
required

The meter is still moving: the sandbox is up and no refused stop is holding it paused. Read again after it stops for the final figure. false on a sandbox that is up but paused past a refused stop, whose figure will not change until it is used again.