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.
/v1/apps/{project}AuthorizationBearer token · headerrequiredA team API key, sbk_..., from Settings, API keys.
x-api-keyAPI key · headerrequiredThe same key, in a header of its own.
projectstringrequiredThe 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.
The app.
app_idstringprojectstringrecord_generationintegerIncreases with every write to the app.
specobjectShow propertiesHide properties
activebooleanhostsstring[]The app's whole route list. Exclusive with hosts_patch.
hosts_patchHostsPatchShow propertiesHide properties
addstring[]removestring[]bindingsBinding[]Show propertiesHide properties
Bindingnamestringrequiredkindstringrequiredkvd1r2queuedoaeratelimitassetssecretserviceresource_idstring | nullrequiredconfigobjectrequiredBy 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 {}.
servicesobjectService 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[]queue_consumersQueueConsumer[]Show propertiesHide properties
QueueConsumerqueuestringrequiredmax_batch_sizeintegerrequiredmax_batch_timeout_msintegerrequiredmax_retriesintegerrequireddead_letter_queuestring | nullrequiredlimitsLimitsPer-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 propertiesHide properties
memory_mbinteger | nullcpu_msinteger | nullwall_msinteger | nullstorage_mbinteger | nullrate_rpsinteger | nullrate_burstinteger | nullNeeds rate_rps.
ops_per_secinteger | nullegress_bytes_per_dayinteger | nullegress_policy_refstring | nullassets_manifest_refstring | nullassets/<sha256 of the uploaded manifest>. The manifest must be uploaded first.
moduleobjectShow propertiesHide properties
sha256Sha256vidstringrefstring | nullsecretsstring[] | nullSecret names; null without secret:list.
routesRouteView[]Show propertiesHide properties
RouteViewkeystringThe route as stored, host or host/prefix.
hoststringpathstringkindstringplatformcustomcertobject | nullCertificate 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 propertiesHide properties
statestringpendingreadyfailedcheckingerrorstring | nullexpires_atstring<date-time> | nullplacementobject | nullWhere the app runs. region is informational; other fields should be ignored.
Show propertiesHide properties
regionstring | nullruntimeobject | nullLive state, for example state, memory_bytes, last_wake_at, reported_at. Null until a host has reported.
applyApplyState | nullWhether 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 propertiesHide properties
statestringappliedfailedfencedapplied_generationinteger | nullerrorstring | nullattemptsintegernext_attempt_atstring<date-time> | nullupdated_atstring<date-time>live_buildBuild | nullThe build behind the module the app runs; null for an app that was not built by the build service.
Show propertiesHide properties
idstring<uuid>requiredprojectstringrequiredstatestringrequiredqueuedbuildingreadyfailedcanceledcachedbooleanTrue when the result came from an identical earlier build.
positioninteger | nullPlace in the queue while queued.
waitingstring | nullWhy a queued build is held back (for example waiting for memory). Not a failure.
supersededbooleanA newer deploy of the project overtook this build; it did not touch the app.
expected_sinteger | nullEstimated seconds to finish. An estimate, not a promise.
estimated_start_sinteger | nullerrorobject | nullSet 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 propertiesHide properties
codestringmessagestringmodule_sha256string | nullThe module this build produced, once ready.
record_generationinteger | nullThe app generation the build wrote, once ready. Wait for this to be applied.
hostsstring[]created_byobject | nullShow propertiesHide properties
namestringviastring | nulltriggerstringWhat started it: cli, git, dashboard or operator.
queued_atstring<date-time>started_atstring<date-time> | nullfinished_atstring<date-time> | nullstatsobjectShow propertiesHide properties
wall_msinteger | nullcpu_msinteger | nullpeak_memory_bytesinteger | nullmemory_cap_bytesinteger | nullmodule_bytesinteger | nullnullprevious_buildBuild | nullThe build before it that made a different module (what a redeploy of the previous version goes back to).
Show propertiesHide properties
idstring<uuid>requiredprojectstringrequiredstatestringrequiredqueuedbuildingreadyfailedcanceledcachedbooleanTrue when the result came from an identical earlier build.
positioninteger | nullPlace in the queue while queued.
waitingstring | nullWhy a queued build is held back (for example waiting for memory). Not a failure.
supersededbooleanA newer deploy of the project overtook this build; it did not touch the app.
expected_sinteger | nullEstimated seconds to finish. An estimate, not a promise.
estimated_start_sinteger | nullerrorobject | nullSet 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 propertiesHide properties
codestringmessagestringmodule_sha256string | nullThe module this build produced, once ready.
record_generationinteger | nullThe app generation the build wrote, once ready. Wait for this to be applied.
hostsstring[]created_byobject | nullShow propertiesHide properties
namestringviastring | nulltriggerstringWhat started it: cli, git, dashboard or operator.
queued_atstring<date-time>started_atstring<date-time> | nullfinished_atstring<date-time> | nullstatsobjectShow propertiesHide properties
wall_msinteger | nullcpu_msinteger | nullpeak_memory_bytesinteger | nullmemory_cap_bytesinteger | nullmodule_bytesinteger | nullnulllatest_buildBuild | nullThe newest build of the app in any state.
Show propertiesHide properties
idstring<uuid>requiredprojectstringrequiredstatestringrequiredqueuedbuildingreadyfailedcanceledcachedbooleanTrue when the result came from an identical earlier build.
positioninteger | nullPlace in the queue while queued.
waitingstring | nullWhy a queued build is held back (for example waiting for memory). Not a failure.
supersededbooleanA newer deploy of the project overtook this build; it did not touch the app.
expected_sinteger | nullEstimated seconds to finish. An estimate, not a promise.
estimated_start_sinteger | nullerrorobject | nullSet 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 propertiesHide properties
codestringmessagestringmodule_sha256string | nullThe module this build produced, once ready.
record_generationinteger | nullThe app generation the build wrote, once ready. Wait for this to be applied.
hostsstring[]created_byobject | nullShow propertiesHide properties
namestringviastring | nulltriggerstringWhat started it: cli, git, dashboard or operator.
queued_atstring<date-time>started_atstring<date-time> | nullfinished_atstring<date-time> | nullstatsobjectShow propertiesHide properties
wall_msinteger | nullcpu_msinteger | nullpeak_memory_bytesinteger | nullmemory_cap_bytesinteger | nullmodule_bytesinteger | nullnullupdated_atstring<date-time>No key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe key lacks a grant (reason: forbidden, need: "<resource>:<action>").
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredforbiddenneedstringrequiredThe grant, as <resource>:<action>, for example app:write.
No such app, build, secret, manifest or claim in this team (another team's resource looks the same).
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe 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.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredkey-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.