openapi: 3.0.3 info: title: Cycloid HTTP CloudCost Organizations API description: The Cycloid HTTP API is the programmatic surface of the Cycloid Internal Developer Portal & Platform. It enables management of organizations, projects, environments, infrastructure resources, pipelines, service catalogs (Stacks and StackForms), credentials, config repositories, cloud cost dashboards, inventory and state, and audit events. Authentication uses an API key (passed via header or `api_key` query parameter) or OAuth2 with refresh tokens. The canonical Swagger / Redoc reference is published at docs.cycloid.io. version: '1.0' contact: name: Cycloid Support url: https://www.cycloid.io email: contact@cycloid.io license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 servers: - url: https://http-api.cycloid.io description: Cycloid production HTTP API security: - ApiKeyAuth: [] - OAuth2: [] tags: - name: Organizations description: Manage organizations, members, teams, and events. paths: /organizations: get: tags: - Organizations summary: List organizations operationId: listOrganizations responses: '200': description: List of organizations post: tags: - Organizations summary: Create organization operationId: createOrganization responses: '201': description: Organization created /organizations/{organization_canonical}: get: tags: - Organizations summary: Get organization operationId: getOrganization parameters: - $ref: '#/components/parameters/OrganizationCanonical' responses: '200': description: Organization detail /organizations/{organization_canonical}/members: get: tags: - Organizations summary: List members operationId: listOrganizationMembers parameters: - $ref: '#/components/parameters/OrganizationCanonical' responses: '200': description: Members /organizations/{organization_canonical}/teams: get: tags: - Organizations summary: List teams operationId: listOrganizationTeams parameters: - $ref: '#/components/parameters/OrganizationCanonical' responses: '200': description: Teams components: parameters: OrganizationCanonical: name: organization_canonical in: path required: true schema: type: string securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization OAuth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://console.cycloid.io/oauth/authorize tokenUrl: https://http-api.cycloid.io/oauth/token refreshUrl: https://http-api.cycloid.io/oauth/refresh scopes: organization:read: Read organization data organization:write: Modify organization data externalDocs: description: Cycloid API Documentation url: https://docs.cycloid.io