Brume · Docs
API

Overview

Workspace creation and summary state.

GET
/api/workspaces

Return active workspaces the current user may select in the tenant.

Response Body

application/json

curl -X GET "https://example.com/api/workspaces"
[  {    "accent_color": "string",    "caller_permission_overrides": {      "property1": true,      "property2": true    },    "caller_role": "string",    "client_logo_url": "string",    "client_name": "string",    "document_editor_enabled": false,    "id": "string",    "is_private": false,    "lang": "string",    "last_model_config_id": "string",    "logo_url": "string",    "name": "string",    "owner": {      "has_avatar": true,      "id": "string",      "name": "string"    },    "owner_id": "string",    "signal_color": "string",    "skill_creation_locked": false,    "slug": "string",    "status": "active",    "theme_sidebar": "string",    "visibility": "tenant"  }]
POST
/api/workspaces

Create a workspace, seed its connectors, and emit audit and analytics events.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workspaces" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string"  }'
{  "accent_color": "string",  "caller_permission_overrides": {    "property1": true,    "property2": true  },  "caller_role": "string",  "client_logo_url": "string",  "client_name": "string",  "document_editor_enabled": false,  "id": "string",  "is_private": false,  "lang": "string",  "last_model_config_id": "string",  "logo_url": "string",  "name": "string",  "owner": {    "has_avatar": true,    "id": "string",    "name": "string"  },  "owner_id": "string",  "signal_color": "string",  "skill_creation_locked": false,  "slug": "string",  "status": "active",  "theme_sidebar": "string",  "visibility": "tenant"}
GET
/api/workspaces/{workspace_id}

Return workspace settings and private-owner details within the tenant.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string"
{  "accent_color": "string",  "caller_permission_overrides": {    "property1": true,    "property2": true  },  "caller_role": "string",  "client_logo_url": "string",  "client_name": "string",  "document_editor_enabled": false,  "id": "string",  "is_private": false,  "lang": "string",  "last_model_config_id": "string",  "logo_url": "string",  "name": "string",  "owner": {    "has_avatar": true,    "id": "string",    "name": "string"  },  "owner_id": "string",  "signal_color": "string",  "skill_creation_locked": false,  "slug": "string",  "status": "active",  "theme_sidebar": "string",  "visibility": "tenant"}
PATCH
/api/workspaces/{workspace_id}

Update permitted workspace settings and record an audit event.

Path Parameters

workspace_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/api/workspaces/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "accent_color": "string",  "caller_permission_overrides": {    "property1": true,    "property2": true  },  "caller_role": "string",  "client_logo_url": "string",  "client_name": "string",  "document_editor_enabled": false,  "id": "string",  "is_private": false,  "lang": "string",  "last_model_config_id": "string",  "logo_url": "string",  "name": "string",  "owner": {    "has_avatar": true,    "id": "string",    "name": "string"  },  "owner_id": "string",  "signal_color": "string",  "skill_creation_locked": false,  "slug": "string",  "status": "active",  "theme_sidebar": "string",  "visibility": "tenant"}
DELETE
/api/workspaces/{workspace_id}

Delete a workspace when the caller has workspace deletion permission.

Path Parameters

workspace_id*string

Response Body

application/json

curl -X DELETE "https://example.com/api/workspaces/string"
Empty
POST
/api/workspaces/{workspace_id}/last-active

Persist the user's tenant-scoped workspace preference if it is selectable.

Path Parameters

workspace_id*string

Response Body

application/json

curl -X POST "https://example.com/api/workspaces/string/last-active"
Empty
GET
/api/workspaces/{workspace_id}/logo

Return the configured logo binary, or 404 when the workspace has no logo.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/logo"
null
POST
/api/workspaces/{workspace_id}/logo

Store a PNG, JPEG, or SVG up to 2 MB; requires appearance-edit permission.

Path Parameters

workspace_id*string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/logo"
{  "property1": "string",  "property2": "string"}
DELETE
/api/workspaces/{workspace_id}/logo

Clear the logo reference and delete its stored file; requires appearance-edit permission.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/logo"
{  "property1": "string",  "property2": "string"}
GET
/api/workspaces/{workspace_id}/members

Return active members and expose pending invitations only to team managers.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/members"
{  "caller_can_manage_team": false,  "invitations": [    {      "created_at": "string",      "email": "string",      "id": "string",      "is_admin_invite": true,      "tenant_role": "string",      "token": "string"    }  ],  "members": [    {      "effective_permissions": {},      "email": "string",      "has_avatar": false,      "name": "string",      "permission_overrides": {},      "role": "string",      "user_id": "string"    }  ]}
POST
/api/workspaces/{workspace_id}/members

Activate a tenant user in the workspace and audit the change; requires team management.

Path Parameters

workspace_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/members" \  -H "Content-Type: application/json" \  -d '{    "user_id": "string"  }'
{  "property1": "string",  "property2": "string"}
DELETE
/api/workspaces/{workspace_id}/members/{member_user_id}

Delete an explicit workspace membership and audit it; requires team management.

Path Parameters

workspace_id*string
member_user_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/members/string"
{  "property1": "string",  "property2": "string"}
PATCH
/api/workspaces/{workspace_id}/members/{member_user_id}/permissions

Apply role or permission overrides and audit changes; requires team-management permission.

Path Parameters

workspace_id*string
member_user_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/api/workspaces/string/members/string/permissions" \  -H "Content-Type: application/json" \  -d '{}'
{  "property1": "string",  "property2": "string"}
GET
/api/workspaces/{workspace_id}/referents

Return the tenant members holding permission, for any workspace member.

Only tenant-scope permissions are answerable here: a workspace-scope permission already has its answer in the workspace member list, and accepting one would silently return an empty list.

Path Parameters

workspace_id*string

Query Parameters

permission*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/referents?permission=string"
[  {    "email": "string",    "has_avatar": true,    "name": "string",    "user_id": "string"  }]
POST
/api/workspaces/{workspace_id}/transfer

Move a workspace, revoke its keys and members, and issue a target-tenant code.

Path Parameters

workspace_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/transfer" \  -H "Content-Type: application/json" \  -d '{    "target_tenant_id": "string"  }'
{  "code": "string",  "slug": "string"}
GET
/api/workspaces/{workspace_id}/transfer-targets

Return other tenants where the caller is an active administrator.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/transfer-targets"
[  {    "id": "string",    "name": "string",    "slug": "string"  }]