Skip to content
FlightStack Docs
Sign in Start free

Repositories API | FlightStack

All endpoints under /repository. List endpoints accept X-Organization-Id to scope.

MethodPathPurpose
GET/repositoryList connected repos. Filters: isConnected=, search=. Paginated.
POST/repositoryConnect a repository (alias for /repository/connect).
POST/repository/connectConnect a GitHub repo by full name.
GET/repository/{id}Get a single repository.
PUT/repository/{id}Update repository metadata.
DELETE/repository/{id}Delete the repository and all associated data (pipelines, secrets, history).
POST/repository/{id}/disconnectDisconnect without deleting (keeps pipelines).
POST/repository/{id}/syncResync branches and metadata from GitHub.
MethodPathPurpose
GET/repository/{id}/settingsGet repo-level settings.
PUT/repository/{id}/settingsUpdate repo-level settings.
POST/repository/{id}/webhook/enableInstall or enable the GitHub webhook.
POST/repository/{id}/webhook/disableDisable the GitHub webhook.
MethodPathPurpose
GET/repository/{id}/directoriesList child directories. Query: path=, branch=.
GET/repository/{id}/contentsList file + directory entries at a path.
GET/repository/{id}/fileFetch file contents. Query: path=, branch=.
MethodPathPurpose
GET/repository/github/availableList GitHub repos available to connect (per the installed App).
Terminal window
curl -X POST https://api.flightstack.voostack.com/repository/connect \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"githubRepoFullName": "acme/mobile",
"organizationId": "7d2a8c84-..."
}'

organizationId is optional — omit it to create a personal connection.

Terminal window
curl "https://api.flightstack.voostack.com/repository?skip=0&take=20&isConnected=true" \
-H "Authorization: Bearer $TOKEN" \
-H "X-Organization-Id: 7d2a8c84-..."
Terminal window
curl "https://api.flightstack.voostack.com/repository/$REPO_ID/file?path=pubspec.yaml&branch=main" \
-H "Authorization: Bearer $TOKEN"

Returns the file contents inline (text) or base64 (binary).