Skip to main content
The K8s Scheduler uses a hierarchical RBAC model with Organizations, Teams, and Members. Organizations contain teams, and teams contain members with specific roles.

Organizations

List User’s Organizations

Returns all organizations the authenticated user is a member of. Authentication: Required (session or API key) Response:
string
Organization UUID
string
Organization display name
string
URL-safe organization identifier
string
Billing plan ID (e.g., “free”, “business”, “enterprise”)
string
AI template generation context (optional)
string
ISO 8601 timestamp
Example:

Get Organization Details

Path Parameters:
string
required
Organization UUID
Authentication: Required (must be organization member) Response:
string
Organization UUID
string
Organization display name
string
URL-safe organization identifier
string
Billing plan ID
string
AI template generation context
string
ISO 8601 timestamp
Example:

Update Organization

Update organization name and AI context. Requires org_owner or org_admin role. Path Parameters:
string
required
Organization UUID
Request Body:
string
New organization name
string
AI context for template generation
Example:

Teams

List Organization Teams

List all teams in an organization. Regular members only see teams they belong to; owners and admins see all teams. Path Parameters:
string
required
Organization UUID
Response:
string
Team UUID
string
Parent organization UUID
string
Team display name
string
URL-safe team identifier
string
ISO 8601 timestamp
Example:

Create Team

Create a new team. Requires org_owner or org_admin role. The creator is automatically added as team admin. Path Parameters:
string
required
Organization UUID
Request Body:
string
required
Team name
Response: 201 Created with team object Example:

Get Team Details

Path Parameters:
string
required
Organization UUID
string
required
Team UUID

Update Team

Update team name. Requires org_owner, org_admin, or team_admin role. Request Body:
string
required
New team name

Delete Team

Delete a team. Requires org_owner or org_admin role. Response: 204 No Content

Organization Members

List Organization Members

Response:
string
User ID (also used for member operations)
string
User UUID
string
User email address
string
Organization role: org_owner, org_admin, or org_member
string
ISO 8601 timestamp
Example:

Update Organization Member Role

Change a member’s organization role. Requires org_owner role. Request Body:
string
required
New role: org_owner, org_admin, or org_member
Response: 204 No Content

Remove Organization Member

Remove a member from the organization. Requires org_owner role. Response: 204 No Content

Team Members

List Team Members

Response:
string
User ID
string
User UUID
string
User email address
string
Team role: team_admin, team_developer, or team_viewer
string
ISO 8601 timestamp

Update Team Member Role

Requires org_owner, org_admin, or team_admin role. Request Body:
string
required
New role: team_admin, team_developer, or team_viewer
Response: 204 No Content

Remove Team Member

Response: 204 No Content

Team Invitations

List Team Invites

Response:
string
Invite UUID
string
Invited user’s email
string
Role the user will receive: team_admin, team_developer, or team_viewer
string
ISO 8601 timestamp when invite expires
string
ISO 8601 timestamp

Create Team Invite

Invite a user to join a team. Requires org_owner, org_admin, or team_admin role. If email sender is configured, an invite email is automatically sent. Request Body:
string
required
Email address to invite
string
Team role (default: team_developer)
Response: 201 Created
string
Invite UUID
string
Invite token for URL generation
Example:

Delete Team Invite

Cancel a pending invitation. Response: 204 No Content

Accept Invite

Accept a team invitation using the invite token. The authenticated user is added to both the organization (as org_member) and the team with the specified role. Request Body:
string
required
Invite token from invitation URL or email
Response:
string
Team UUID the user joined
string
Organization UUID
string
Team role assigned
Example:

Current User Context

Get Current User

Returns the authenticated user’s profile, organizations, and current team context. Response:
string
User UUID
string
User email
string
Unique username
string
Subscription tier
string
Platform-level role (e.g., platform_admin)
array
Array of organizations with user’s role in each
object
Current active team context
Example:

Switch Team Context

Change the active team context in the session. This affects which team’s resources are shown and which team new deployments are created under. Request Body:
string
required
Team UUID to switch to (empty string to show all teams)
Response:
boolean
Whether the switch succeeded
string
Active team ID (or null if showing all)
Example:

Audit Logs

List Organization Audit Logs

Retrieve audit logs for organization activities. Requires org_owner or org_admin role. Response:
string
Log entry UUID
string
User who performed the action
string
User’s email
string
Action type (e.g., “create”, “update”, “delete”)
string
Type of resource (e.g., “deployment”, “template”, “secret”)
string
Resource identifier
string
Human-readable resource name
string
Result: “success” or “failure”
string
ISO 8601 timestamp
Example: