Get a build by id
Returns the current state, immutable input, settings snapshot, target, diagnostics, and produced or reused version for a build.
/v1/builds/{buildId}AuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
buildIdstringrequiredResponse for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobjectrequiredShow propertiesHide properties
captureobjectURL capture progress and advisory evidence; absent for other inputs.
Show propertiesHide properties
statestringrequiredpreviewSummaryobjectprogressobjectarchiveHashstringidstringrequiredBuild id (bld_); opaque and never derived from a version id.
spaceIdstringrequiredSpace (spc_) the build produces a version for.
statusstringrequiredBuild lifecycle status.
waiting_for_sourceuploading_sourcequeuedrunningsucceededfailedcanceledskippedinputobjectrequiredPublic build input. Internal clone URLs and provider source references are hidden.
Show propertiesHide properties
kindstringrequiredsourceUrlstring<uri>requiredkindstringrequiredBuild from an uploaded source archive.
kindstringrequiredBuild from repository source where clone credentials are not exposed.
refstringrequiredBranch, tag, or ref to build.
commitstringExact commit built, once resolved.
branchstringBranch name when available.
pullRequestNumberintegersourceobject | nullrequiredPublish provenance as declared at build start (client, git ref data, publish message). Present on failed and running builds too; the produced version's source is the authoritative copy once one exists. Null when nothing was declared.
Show propertiesHide properties
kindstringrequiredHow this version was produced.
direct_uploadclidashboardapigitimportagentbuildvariable_updateconfig_updateclientstringPublishing client attribution, for example spacefast-cli/1.2.3.
branchstringGit branch the publish came from.
commitstringGit commit SHA the publish came from.
messagestringPlain-language description of the publish (the version changelog entry, commit message, or release note). This is THE spelling for the publish description; the version files-diff API is the fallback when none is given.
dirtybooleanWhether the working tree had uncommitted changes at publish time.
metadataobjectAdditional provenance (repository, CI run URL, workflow, actor, ...).
gitobjectShow propertiesHide properties
repositorystring | nullrepositoryFullNamestring | nullrepositoryUrlstring | nullrefstring | nullbranchstring | nullbranchAliasUrlstring | nullcommitstring | nullcommitShastring | nullpullRequestNumbernumber | nullnullsettingsSnapshotobjectrequiredResolved build settings. Builds persist this as an immutable settingsSnapshot.
Show propertiesHide properties
rootDirectorystring | nullrequiredShow propertiesHide properties
stringnullinstallDirectorystring | nullrequiredShow propertiesHide properties
stringnullinstallCommandstring | nullrequiredShow propertiesHide properties
stringnullbuildCommandstring | nullrequiredShow propertiesHide properties
stringnulloutputDirectorystring | nullrequiredShow propertiesHide properties
stringnullignoredBuildCommandstring | nullrequiredShow propertiesHide properties
stringnullframeworkPresetstring | nullrequiredShow propertiesHide properties
stringnullplatformPresetstring | nullrequiredShow propertiesHide properties
stringnullallowUnsupportedPlatformFeaturesbooleanrequiredtimeoutSecondsintegerrequiredtargetobjectrequiredWhere a successful build should publish or run in preview mode.
Show propertiesHide properties
channelstring | nullrequiredChannel to promote when the build succeeds. production is an alias for live; null means no automatic promotion.
Show propertiesHide properties
stringnullpreviewbooleanrequiredWhether the build targets preview behavior.
retryOfBuildIdstring | nullrequiredOriginal build retried by this build.
producedVersionIdstring | nullrequiredVersion (ver_) minted by a successful build; null otherwise.
reusedVersionIdstring | nullrequiredExisting version reused by a successful no-change build; null otherwise.
diagnosticsobject[]requiredShow propertiesHide properties
objectcodestringrequiredStable snake_case diagnostic code naming the public contract that produced it.
severitystringrequiredHow actionable the diagnostic is.
infowarningerrormessagestringrequiredHuman-readable explanation with enough detail to act on.
pathstring | nullArtifact path the diagnostic points at, for example "_headers:12", when one exists.
providerstring | nullUpstream system the diagnostic originated from, when not Spacefast itself.
Show propertiesHide properties
stringnulldetailsobject | nullMachine-readable context for the diagnostic code.
Show propertiesHide properties
objectnullfixstring | nullConcrete, agent-actionable remediation hint, when one can be derived.
retryableboolean | nullWhether retrying the same operation can resolve this diagnostic without the caller changing anything.
createdAtstring<date-time>requiredstartedAtstring<date-time> | nullrequiredWhen the runner picked the build up.
Show propertiesHide properties
string<date-time>nullfinishedAtstring<date-time> | nullrequiredWhen the build reached a terminal state.
Show propertiesHide properties
string<date-time>nullProblem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
fixstringOne sentence on what to do about this error code, the same text as the type page. Read it before retrying.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.