Skip to content
FlightStack Docs
Sign in Start free

Builds API | FlightStack

Build jobs are the unit of work the agent actually executes. All endpoints under /build.

MethodPathPurpose
GET/buildList builds. Filters: repositoryId=, status=, branch=. Paginated.
POST/buildTrigger a build.
GET/build/{id}Get build details (status, agent, steps, outputs).
GET/build/{id}/logsGet the full log buffer for a build.
POST/build/{id}/cancelCancel a running build.
POST/build/{id}/retryRetry a failed or cancelled build.
DELETE/build/{id}Remove a build from history.
Terminal window
curl -X POST https://api.flightstack.voostack.com/build \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"repositoryId": "7d2a8c84-...",
"branch": "main",
"platform": "ios",
"buildMode": "release",
"flutterVersion": "3.27.0",
"flavor": "prod",
"scheme": "Runner",
"autoDeploy": true,
"signing": { "iosCredentialId": "..." },
"envVariables": { "API_BASE_URL": "https://api.example.com" },
"buildArgs": ["--dart-define=ENV=prod"],
"timeoutMinutes": 45
}'
FieldTypeNotes
repositoryIdstringRequired. ID of a connected repository.
branchstringDefaults to the repo’s default branch.
platformios|android|web|macos|linuxRequired.
flutterVersionstringPinned Flutter SDK version. Omit to use agent default.
buildModedebug|profile|releaseDefaults to release.
flavorstringFlutter flavor name.
schemestringiOS Xcode scheme. Defaults to Runner.
signingobjectCode-signing credential refs — see Code signing.
autoDeployboolAuto-trigger deployment job on success.
envVariablesmap<string,string>One-off env injected into the build.
buildArgsstring[]Extra args appended to flutter build.
timeoutMinutesintDefault 60. Server enforces a tier-specific upper bound.
Terminal window
curl https://api.flightstack.voostack.com/build/$BUILD_ID \
-H "Authorization: Bearer $TOKEN"
Terminal window
curl https://api.flightstack.voostack.com/build/$BUILD_ID/logs \
-H "Authorization: Bearer $TOKEN"

Returns the full log buffer (newest at the end). For live logs, subscribe to the SignalR build hub — see Realtime.

Terminal window
curl -X POST https://api.flightstack.voostack.com/build/$BUILD_ID/cancel \
-H "Authorization: Bearer $TOKEN"
curl -X POST https://api.flightstack.voostack.com/build/$BUILD_ID/retry \
-H "Authorization: Bearer $TOKEN"

Retry creates a new build with the same configuration (new build ID, fresh agent assignment).

  • Agents API — what the agent does once it picks up a build
  • Pipelines API — pipelines aggregate builds + other jobs into runs
  • Realtime — live log streaming