Skip to content
FlightStack Docs
Sign in Start free

Organizations API | FlightStack

All endpoints under /organization.

MethodPathPurpose
GET/organizationList organizations. Query: pageNumber=, pageSize=, search=.
POST/organizationCreate an organization.
GET/organization/{id}Get an organization.
PUT/organization/{id}Update name / description.
DELETE/organization/{id}Delete the organization.
GET/organization/{id}/usageGet usage stats (runs, cloud-runner minutes, storage).
POST/organization/{id}/api-key/rotateRotate the organization’s API key.
GET/organization/{id}/membersList members.
PUT/organization/{id}/members/{userId}/roleUpdate a member’s role.
DELETE/organization/{id}/members/{userId}Remove a member.
Terminal window
curl -X POST https://api.flightstack.voostack.com/organization \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme",
"description": "Acme Mobile Team"
}'
Terminal window
curl https://api.flightstack.voostack.com/organization/$ORG_ID/usage \
-H "Authorization: Bearer $TOKEN"

Response includes pipeline run counts, cloud-runner minutes, and storage consumed for the current billing period.

Terminal window
curl -X POST https://api.flightstack.voostack.com/organization/$ORG_ID/api-key/rotate \
-H "Authorization: Bearer $TOKEN"

Returns the new key in the response body. The old key is invalidated immediately — update any CI integrations before rotating.

RolePermissions
ownerFull control. Can transfer ownership, delete the org.
adminManage repos, pipelines, agents, secrets, members.
memberAuthor and trigger pipelines; view runs and agents.
viewerRead-only access to runs and agent status.

Update a member’s role:

Terminal window
curl -X PUT https://api.flightstack.voostack.com/organization/$ORG_ID/members/$USER_ID/role \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"role":"admin"}'
  • Invitations — inviting new members happens via email + the org’s join flow.
  • Cloud runners — usage stats overlap with the cloud-runner billing surface.