Organizations
Endpoint to list organizations.
Args: name: Filter by organization name. offset: Query offset. limit: Query limit. auth_context: The authentication context. rbac: RBAC component. organization_manager: Organization manager owner_id: Id of the Organization owner
Returns: List of organization models.
0
100
GET /organizations HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"name": "text",
"description": "text",
"logo_url": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"created": "2025-07-19T14:26:05.721Z",
"updated": "2025-07-19T14:26:05.721Z",
"owner": {
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
},
"has_active_subscription": true,
"trial_expiry": 1
}
]
Endpoint to create an organization.
Args: organization: The organization to create. user: The authenticated user. rbac: RBAC component. organization_manager: Organization manager
Raises: IllegalOperationError: If the user is not allowed to create an organization for another user or to set sensitive user fields. Also raised if the user is a service account. OrganizationLimitExceeded: If the user already has an organization.
Returns: Model of the created organization.
Model for creating organizations.
The UUID of the organization owner. If not set, the current user is set as the owner.
POST /organizations HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 148
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"logo_url": "text",
"owner_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
"name": "text",
"description": "text",
"logo_url": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"created": "2025-07-19T14:26:05.721Z",
"updated": "2025-07-19T14:26:05.721Z",
"owner": {
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
},
"has_active_subscription": true,
"trial_expiry": 1
}
Endpoint to get an organization.
Args: organization_id_or_name: ID or name of the organization to get. include_subscription_status: Whether to include the subscription status of the org auth_context: The authentication context. rbac: RBAC component. organization_manager: Organization manager
Returns: Model of the organization.
false
GET /organizations/{organization_id_or_name} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"name": "text",
"description": "text",
"logo_url": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"created": "2025-07-19T14:26:05.721Z",
"updated": "2025-07-19T14:26:05.721Z",
"owner": {
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
},
"has_active_subscription": true,
"trial_expiry": 1
}
Endpoint to delete an organization.
Args: organization_id: ID of the organization to delete. user: The authenticated user. organization_manager: Organization manager
Raises: IllegalOperationError: If the user does not have permissions to delete the organization.
DELETE /organizations/{organization_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Endpoint to update an organization.
Args: organization_id: ID of the organization to update. update: The organization update. user: The authenticated user. rbac: RBAC component. organization_manager: Organization manager
Returns: Model of the updated organization.
Raises: IllegalOperationError: If the user does not have permissions to update the organization.
Model for updating organizations.
PATCH /organizations/{organization_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"name": "text",
"description": "text",
"logo_url": "text",
"owner_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
"name": "text",
"description": "text",
"logo_url": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"created": "2025-07-19T14:26:05.721Z",
"updated": "2025-07-19T14:26:05.721Z",
"owner": {
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
},
"has_active_subscription": true,
"trial_expiry": 1
}
Last updated
Was this helpful?