openapi: 3.1.0 info: title: Kion Cloud Operations Accounts Users API description: The Kion Public API provides programmatic access to manage cloud operations, governance, compliance, and financial management across AWS, Azure, GCP, and OCI. Kion is a self-hosted cloud operations platform that consolidates account provisioning, access management, compliance enforcement, and FinOps into a single interface. The API uses Bearer token authentication via Kion App API Keys and is accessible at the /api/v3/ path of your Kion instance. version: 3.10.0 contact: name: Kion Support url: https://support.kion.io license: name: Proprietary url: https://kion.io/why-kion/pricing-and-licensing/ servers: - url: https://{kion-instance}/api/v3 description: Kion Instance API Server variables: kion-instance: default: your-kion-instance.example.com description: Your Kion deployment hostname security: - bearerAuth: [] tags: - name: Users description: Manage users within the Kion platform paths: /user: get: operationId: listUsers summary: Kion List users description: Returns a list of all users. tags: - Users responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer data: type: array items: $ref: '#/components/schemas/User' '401': $ref: '#/components/responses/Unauthorized' post: operationId: createUser summary: Kion Create a user description: Creates a new user. tags: - Users requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UserCreate' responses: '201': description: User created '401': $ref: '#/components/responses/Unauthorized' /user/{id}: get: operationId: getUser summary: Kion Get a user description: Returns details for a specific user. tags: - Users parameters: - $ref: '#/components/parameters/IdParam' responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer data: $ref: '#/components/schemas/User' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' patch: operationId: updateUser summary: Kion Update a user description: Updates an existing user. tags: - Users parameters: - $ref: '#/components/parameters/IdParam' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UserUpdate' responses: '200': description: User updated '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' delete: operationId: deleteUser summary: Kion Delete a user description: Deletes a user. tags: - Users parameters: - $ref: '#/components/parameters/IdParam' responses: '204': description: User deleted '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' components: responses: Unauthorized: description: Authentication failed or API key is missing/invalid content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Unauthorized NotFound: description: The requested resource was not found content: application/json: schema: type: object properties: status: type: integer example: 404 message: type: string example: Not found parameters: IdParam: name: id in: path required: true description: The unique identifier of the resource in Kion schema: type: integer schemas: UserUpdate: type: object properties: first_name: type: string last_name: type: string email: type: string enabled: type: boolean User: type: object properties: id: type: integer username: type: string first_name: type: string last_name: type: string email: type: string idms_id: type: integer enabled: type: boolean created_at: type: string format: date-time UserCreate: type: object required: - username - first_name - last_name - email - idms_id properties: username: type: string first_name: type: string last_name: type: string email: type: string idms_id: type: integer enabled: type: boolean securitySchemes: bearerAuth: type: http scheme: bearer description: 'Kion App API Key. Generate in Kion under your user profile settings. Use in the Authorization header as: Bearer YOUR_API_KEY'