List an app's builds
Newest first, builds of every trigger (CLI, dashboard, git). No cursor: limit only. This route is recorded in the team’s audit trail, so it can answer 503 audit-unavailable.
/v1/apps/{project}/buildsAuthorizationBearer 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.
limitintegerThe builds.
buildsBuild[]requiredShow propertiesHide properties
Buildidstring<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 | nullThe request is malformed. path names the field when one is at fault; some refusals (a digest mismatch, a body that is not JSON) carry a message only.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredinvaliderrorstringrequiredA 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_sintegerNo 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.
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.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredkey-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.
The audit log could not record the request (reason: audit-unavailable); nothing was served. Retry shortly.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredaudit-unavailable