Vue d’ensemble
Référence OpenAPI générée pour le domaine « Vue d’ensemble ».
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" }]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"}Return workspace settings and private-owner details within the tenant.
Path Parameters
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"}Update permitted workspace settings and record an audit event.
Path Parameters
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 a workspace when the caller has workspace deletion permission.
Path Parameters
Response Body
application/json
curl -X DELETE "https://example.com/api/workspaces/string"Persist the user's tenant-scoped workspace preference if it is selectable.
Path Parameters
Response Body
application/json
curl -X POST "https://example.com/api/workspaces/string/last-active"Return the configured logo binary, or 404 when the workspace has no logo.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/logo"nullStore a PNG, JPEG, or SVG up to 2 MB; requires appearance-edit permission.
Path Parameters
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"}Clear the logo reference and delete its stored file; requires appearance-edit permission.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/logo"{ "property1": "string", "property2": "string"}Return active members and expose pending invitations only to team managers.
Path Parameters
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" } ]}Activate a tenant user in the workspace and audit the change; requires team management.
Path Parameters
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 an explicit workspace membership and audit it; requires team management.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/members/string"{ "property1": "string", "property2": "string"}Apply role or permission overrides and audit changes; requires team-management permission.
Path Parameters
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"}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
Query Parameters
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" }]Move a workspace, revoke its keys and members, and issue a target-tenant code.
Path Parameters
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"}Return other tenants where the caller is an active administrator.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/transfer-targets"[ { "id": "string", "name": "string", "slug": "string" }]