Skip to content
sproutboatDocs
Esc
↑↓navigate↵open⌘Jpreview

Get the team's limits and usage

The free alpha limits that apply to the team (defaults, with any limit raised for this team) and what it uses now. null is unlimited. Builds and uploads are counted over a rolling 24 hours: nothing resets at midnight. Memory, CPU, wall time, request rate and operations are ceilings on what an app may ask for in limits, so they have no usage.

GET/v1/limits
Authorization
AuthorizationBearer token · headerrequired

A team API key, sbk_..., from Settings, API keys.

or
x-api-keyAPI key · headerrequired

The same key, in a header of its own.

Responses
200

Limits and usage.

enabledbooleanrequired

False when this Cloud enforces no quotas.

limitsobjectrequired
Show properties
appsinteger | null
memory_mbinteger | null

MiB per app.

builds_per_dayinteger | null

Builds that compile in a rolling 24 hours; cached builds are free.

storage_mbinteger | null

MiB: the ceiling for limits.storage_mb, and the team's static assets together.

cpu_msinteger | null

Ceiling for limits.cpu_ms: milliseconds of CPU per request.

wall_msinteger | null

Ceiling for limits.wall_ms: milliseconds of wall time per request.

rate_rpsinteger | null

Ceiling for limits.rate_rps (requests per second per app); limits.rate_burst may be twice this. A rate limit cannot be lifted.

ops_per_secinteger | null

Ceiling for limits.ops_per_sec: binding operations per second.

source_mb_per_dayinteger | null

MiB of new sources the team may upload in a rolling 24 hours.

asset_mb_per_dayinteger | null

MiB of new static asset blobs the team may upload in a rolling 24 hours.

overriddenstring[]required

The limits raised (or lowered) for this team.

contactstringrequired

Where to ask for more room: an email address or a URL (by default support@sproutboat.com). It is the address the quota messages name.

new_app_refusalobject | nullrequired

What creating one more app would answer right now (403 quota-apps, with the same message), or null when there is room. A client can stop before it uploads or builds anything. Advisory: the write decides.

Show properties
reasonstring
Allowed:quota-apps
messagestring
usageobjectrequired
Show properties
appsinteger
builds_24hinteger

Builds that compiled in the last 24 hours (against limits.builds_per_day); cache hits and prebuilds are free.

builds_next_slot_sinteger | null

Seconds until the oldest counted build is 24 hours old and frees one build (never under 60; the retry_after_s of a 429 quota-builds). Null when no build counts. Room comes back one build at a time, not at a fixed hour.

assets_mbnumber

MiB of static assets across the team's apps.

sources_mb_24hnumber

MiB of new sources the team uploaded in the last 24 hours (against limits.source_mb_per_day).

assets_mb_24hnumber

MiB of new asset blobs the team uploaded in the last 24 hours (against limits.asset_mb_per_day).

401

No key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.

errorstringrequired

A message for people. Do not parse it.

reasonstring

A stable, machine-readable cause, when there is one.

pathstring

The request field at fault.

needstring

The grant a 403 asks for, app:write for example.

retry_after_sinteger
403

The key lacks a grant (reason: forbidden, need: "<resource>:<action>").

errorstringrequired

A message for people. Do not parse it.

reasonstringrequired
Allowed:forbidden
needstringrequired

The grant, as <resource>:<action>, for example app:write.

429

The key is over its requests a minute (600, or 2,000 with app:write; reason: key-rate-limited, retry_after_s, Retry-After). Wait that long and retry.

errorstringrequired

A message for people. Do not parse it.

reasonstringrequired
Allowed:key-rate-limited
retry_after_sintegerrequired

Seconds to wait; also the Retry-After header.

Request
curl -X GET 'https://dash.sproutboat.com/v1/limits' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "enabled": true,
  "limits": {
    "apps": 0,
    "memory_mb": 0,
    "builds_per_day": 0,
    "storage_mb": 0,
    "cpu_ms": 0,
    "wall_ms": 0,
    "rate_rps": 0,
    "ops_per_sec": 0,
    "source_mb_per_day": 0,
    "asset_mb_per_day": 0
  },
  "overridden": [
    "apps"
  ],
  "contact": "string",
  "new_app_refusal": {
    "reason": "quota-apps",
    "message": "string"
  },
  "usage": {
    "apps": 0,
    "builds_24h": 0,
    "builds_next_slot_s": 0,
    "assets_mb": 0,
    "sources_mb_24h": 0,
    "assets_mb_24h": 0
  }
}