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

Read an app

The app’s stored spec (secrets as sorted names, or null without secret:list), its routes with certificate state, runtime state, the build that is live and the one before it, and apply, which says whether a host has applied a record_generation. This is the “is it live” call: see Deploy flow, step 8.

GET/v1/apps/{project}
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.

Path parameters
projectstringrequired

The app's name, unique within the team. 3 to 51 characters (or 1), lowercase letters, digits and dashes, not starting or ending with a dash.

matches ^[a-z0-9](?:[a-z0-9-]{1,49}[a-z0-9])?$
Responses
200

The app.

app_idstring
projectstring
record_generationinteger

Increases with every write to the app.

specobject
Show properties
activeboolean
default: true
hostsstring[]

The app's whole route list. Exclusive with hosts_patch.

max items 64
hosts_patchHostsPatch
Show properties
addstring[]
max items 64
removestring[]
max items 64
bindingsBinding[]
max items 64
Show properties
Array of Binding
namestringrequired
kindstringrequired
Allowed:kvd1r2queuedoaeratelimitassetssecretservice
resource_idstring | nullrequired
matches ^[a-z0-9][a-z0-9_-]{0,63}$
configobjectrequired

By kind: do {class_name} (the exported Durable Object class); ratelimit {limit, period}; queue {queue, retry_delay?}; service {} with the callee in the spec's services; the others {}.

servicesobject

Service bindings: binding name to the callee's app_id (from GET /v1/apps). Both apps must belong to the team and the callee cannot be the app itself. The runtime enables service bindings from compatibility date 2026-11-18 (CLI-enforced).

cronsstring[]
max items 16
queue_consumersQueueConsumer[]
max items 16
Show properties
Array of QueueConsumer
queuestringrequired
matches ^[a-z0-9][a-z0-9_-]{0,63}$
max_batch_sizeintegerrequired
min 1 · max 100
max_batch_timeout_msintegerrequired
min 0 · max 60000
max_retriesintegerrequired
min 0 · max 100
dead_letter_queuestring | nullrequired
limitsLimits

Per-app ceilings. A null or absent value means the platform default. The account's own ceilings (GET /v1/limits) cap what a team may ask for here: a value over one is refused with 403 quota-* (never clamped), and rate_rps: 0 (no limit) is refused too.

Show properties
memory_mbinteger | null
min 8 · max 4096
cpu_msinteger | null
min 10 · max 600000
wall_msinteger | null
min 100 · max 600000
storage_mbinteger | null
min 1 · max 1048576
rate_rpsinteger | null
min 0
rate_burstinteger | null

Needs rate_rps.

min 1
ops_per_secinteger | null
min 1
egress_bytes_per_dayinteger | null
min 0
egress_policy_refstring | null
assets_manifest_refstring | null

assets/<sha256 of the uploaded manifest>. The manifest must be uploaded first.

matches ^assets/[0-9a-f]{64}$
moduleobject
Show properties
sha256Sha256
matches ^[0-9a-f]{64}$
vidstring
refstring | null
secretsstring[] | null

Secret names; null without secret:list.

routesRouteView[]
Show properties
Array of RouteView
keystring

The route as stored, host or host/prefix.

hoststring
pathstring
kindstring
Allowed:platformcustom
certobject | null

Certificate state of the name, or null when not checked. For a platform name it is the team wildcard's state: pending from team creation until the issuer has installed it (usually about 3 minutes: up to one 2-minute timer tick plus about a minute to issue; retried with a backoff on failed), and a name under it does not answer over HTTPS until ready. A client that prints a deploy's URL should wait for it (the CLI does).

Show properties
statestring
Allowed:pendingreadyfailedchecking
errorstring | null
expires_atstring<date-time> | null
placementobject | null

Where the app runs. region is informational; other fields should be ignored.

Show properties
regionstring | null
runtimeobject | null

Live state, for example state, memory_bytes, last_wake_at, reported_at. Null until a host has reported.

applyApplyState | null

Whether a host has applied the app's record. Null until the first apply was attempted. state is applied, failed or fenced. The app is live at generation N when state is applied and applied_generation is at least N (an applied row with an older generation means keep polling). The CLI gives up on failed and fenced and shows error. Uncertain: the Cloud may retry a failed apply on its own (attempts, next_attempt_at are in the row), so a provider may prefer to keep polling until its own timeout.

Show properties
statestring
Allowed:appliedfailedfenced
applied_generationinteger | null
errorstring | null
attemptsinteger
next_attempt_atstring<date-time> | null
updated_atstring<date-time>
live_buildBuild | null

The build behind the module the app runs; null for an app that was not built by the build service.

Show properties
One of:
Build
idstring<uuid>required
projectstringrequired
statestringrequired
Allowed:queuedbuildingreadyfailedcanceled
cachedboolean

True when the result came from an identical earlier build.

positioninteger | null

Place in the queue while queued.

waitingstring | null

Why a queued build is held back (for example waiting for memory). Not a failure.

supersededboolean

A newer deploy of the project overtook this build; it did not touch the app.

expected_sinteger | null

Estimated seconds to finish. An estimate, not a promise.

estimated_start_sinteger | null
errorobject | null

Set when failed or canceled. code is one of prepare_failed, prepare_timeout, compile_failed, compile_timeout, abi_rejected, input_invalid, timeout, resource_exceeded, canceled, builder_error, apply_failed, queue_timeout, builder_lost; message is the build output's reason.

Show properties
codestring
messagestring
module_sha256string | null

The module this build produced, once ready.

record_generationinteger | null

The app generation the build wrote, once ready. Wait for this to be applied.

hostsstring[]
created_byobject | null
Show properties
namestring
viastring | null
triggerstring

What started it: cli, git, dashboard or operator.

queued_atstring<date-time>
started_atstring<date-time> | null
finished_atstring<date-time> | null
statsobject
Show properties
wall_msinteger | null
cpu_msinteger | null
peak_memory_bytesinteger | null
memory_cap_bytesinteger | null
module_bytesinteger | null
null
null
previous_buildBuild | null

The build before it that made a different module (what a redeploy of the previous version goes back to).

Show properties
One of:
Build
idstring<uuid>required
projectstringrequired
statestringrequired
Allowed:queuedbuildingreadyfailedcanceled
cachedboolean

True when the result came from an identical earlier build.

positioninteger | null

Place in the queue while queued.

waitingstring | null

Why a queued build is held back (for example waiting for memory). Not a failure.

supersededboolean

A newer deploy of the project overtook this build; it did not touch the app.

expected_sinteger | null

Estimated seconds to finish. An estimate, not a promise.

estimated_start_sinteger | null
errorobject | null

Set when failed or canceled. code is one of prepare_failed, prepare_timeout, compile_failed, compile_timeout, abi_rejected, input_invalid, timeout, resource_exceeded, canceled, builder_error, apply_failed, queue_timeout, builder_lost; message is the build output's reason.

Show properties
codestring
messagestring
module_sha256string | null

The module this build produced, once ready.

record_generationinteger | null

The app generation the build wrote, once ready. Wait for this to be applied.

hostsstring[]
created_byobject | null
Show properties
namestring
viastring | null
triggerstring

What started it: cli, git, dashboard or operator.

queued_atstring<date-time>
started_atstring<date-time> | null
finished_atstring<date-time> | null
statsobject
Show properties
wall_msinteger | null
cpu_msinteger | null
peak_memory_bytesinteger | null
memory_cap_bytesinteger | null
module_bytesinteger | null
null
null
latest_buildBuild | null

The newest build of the app in any state.

Show properties
One of:
Build
idstring<uuid>required
projectstringrequired
statestringrequired
Allowed:queuedbuildingreadyfailedcanceled
cachedboolean

True when the result came from an identical earlier build.

positioninteger | null

Place in the queue while queued.

waitingstring | null

Why a queued build is held back (for example waiting for memory). Not a failure.

supersededboolean

A newer deploy of the project overtook this build; it did not touch the app.

expected_sinteger | null

Estimated seconds to finish. An estimate, not a promise.

estimated_start_sinteger | null
errorobject | null

Set when failed or canceled. code is one of prepare_failed, prepare_timeout, compile_failed, compile_timeout, abi_rejected, input_invalid, timeout, resource_exceeded, canceled, builder_error, apply_failed, queue_timeout, builder_lost; message is the build output's reason.

Show properties
codestring
messagestring
module_sha256string | null

The module this build produced, once ready.

record_generationinteger | null

The app generation the build wrote, once ready. Wait for this to be applied.

hostsstring[]
created_byobject | null
Show properties
namestring
viastring | null
triggerstring

What started it: cli, git, dashboard or operator.

queued_atstring<date-time>
started_atstring<date-time> | null
finished_atstring<date-time> | null
statsobject
Show properties
wall_msinteger | null
cpu_msinteger | null
peak_memory_bytesinteger | null
memory_cap_bytesinteger | null
module_bytesinteger | null
null
null
updated_atstring<date-time>
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.

404

No such app, build, secret, manifest or claim in this team (another team's resource looks the same).

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
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/apps/my-app' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "app_id": "string",
  "project": "string",
  "record_generation": 0,
  "spec": {
    "active": true,
    "hosts": [
      "string"
    ],
    "hosts_patch": {
      "add": [
        "string"
      ],
      "remove": [
        "string"
      ]
    },
    "bindings": [
      {
        "name": "string",
        "kind": "kv",
        "resource_id": "string",
        "config": {}
      }
    ],
    "services": {
      "property1": "string",
      "property2": "string"
    },
    "crons": [
      "string"
    ],
    "queue_consumers": [
      {
        "queue": "string",
        "max_batch_size": 1,
        "max_batch_timeout_ms": 0,
        "max_retries": 0,
        "dead_letter_queue": "string"
      }
    ],
    "limits": {
      "memory_mb": 8,
      "cpu_ms": 10,
      "wall_ms": 100,
      "storage_mb": 1,
      "rate_rps": 0,
      "rate_burst": 1,
      "ops_per_sec": 1,
      "egress_bytes_per_day": 0
    },
    "egress_policy_ref": "string",
    "assets_manifest_ref": "string",
    "module": {
      "sha256": "string",
      "vid": "string",
      "ref": "string"
    },
    "secrets": [
      "string"
    ]
  },
  "routes": [
    {
      "key": "string",
      "host": "string",
      "path": "string",
      "kind": "platform",
      "cert": {
        "state": "pending",
        "error": "string",
        "expires_at": "2019-08-24T14:15:22Z"
      }
    }
  ],
  "placement": {
    "region": "string"
  },
  "runtime": {},
  "apply": {
    "state": "applied",
    "applied_generation": 0,
    "error": "string",
    "attempts": 0,
    "next_attempt_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "live_build": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "project": "string",
    "state": "queued",
    "cached": true,
    "position": 0,
    "waiting": "string",
    "superseded": true,
    "expected_s": 0,
    "estimated_start_s": 0,
    "error": {
      "code": "string",
      "message": "string"
    },
    "module_sha256": "string",
    "record_generation": 0,
    "hosts": [
      "string"
    ],
    "created_by": {
      "name": "string",
      "via": "string"
    },
    "trigger": "string",
    "queued_at": "2019-08-24T14:15:22Z",
    "started_at": "2019-08-24T14:15:22Z",
    "finished_at": "2019-08-24T14:15:22Z",
    "stats": {
      "wall_ms": 0,
      "cpu_ms": 0,
      "peak_memory_bytes": 0,
      "memory_cap_bytes": 0,
      "module_bytes": 0
    }
  },
  "previous_build": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "project": "string",
    "state": "queued",
    "cached": true,
    "position": 0,
    "waiting": "string",
    "superseded": true,
    "expected_s": 0,
    "estimated_start_s": 0,
    "error": {
      "code": "string",
      "message": "string"
    },
    "module_sha256": "string",
    "record_generation": 0,
    "hosts": [
      "string"
    ],
    "created_by": {
      "name": "string",
      "via": "string"
    },
    "trigger": "string",
    "queued_at": "2019-08-24T14:15:22Z",
    "started_at": "2019-08-24T14:15:22Z",
    "finished_at": "2019-08-24T14:15:22Z",
    "stats": {
      "wall_ms": 0,
      "cpu_ms": 0,
      "peak_memory_bytes": 0,
      "memory_cap_bytes": 0,
      "module_bytes": 0
    }
  },
  "latest_build": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "project": "string",
    "state": "queued",
    "cached": true,
    "position": 0,
    "waiting": "string",
    "superseded": true,
    "expected_s": 0,
    "estimated_start_s": 0,
    "error": {
      "code": "string",
      "message": "string"
    },
    "module_sha256": "string",
    "record_generation": 0,
    "hosts": [
      "string"
    ],
    "created_by": {
      "name": "string",
      "via": "string"
    },
    "trigger": "string",
    "queued_at": "2019-08-24T14:15:22Z",
    "started_at": "2019-08-24T14:15:22Z",
    "finished_at": "2019-08-24T14:15:22Z",
    "stats": {
      "wall_ms": 0,
      "cpu_ms": 0,
      "peak_memory_bytes": 0,
      "memory_cap_bytes": 0,
      "module_bytes": 0
    }
  },
  "updated_at": "2019-08-24T14:15:22Z"
}