Organizations
9 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Create organization (onboarding)#
/organizationsTokenCreates a new organization, adds the authenticated user as owner, and links the user to the organization.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | Organization display name |
slugPflicht | string | URL-safe slug (lowercase, hyphens allowed) |
sizePflicht | string | Organization size tier Werte: |
Antworten
- 201Organization created successfully
- 400User already has an org or slug is taken
- 401Not authenticated
curl -X POST "https://xapi.ambertech.cloud/api/v1/organizations" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Corp","slug":"acme-corp","size":"medium"}'Get organization by ID (admin/owner only)#
/organizations/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Organization returned
- 403Insufficient role or wrong organization
curl -X GET "https://xapi.ambertech.cloud/api/v1/organizations/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update organization (admin/owner only)#
/organizations/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | |
slug | string | |
size | string | Werte: |
is_active | boolean | – |
default_space_id | object | Default space ID, or null to clear |
Antworten
- 200Organization updated
- 403Insufficient role or wrong organization
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/organizations/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Corp","slug":"acme-corp","size":"small"}'Get organization branding#
/organizations/brandingTokenReturns the branding configuration for the user's organization. Returns null if no branding is configured.
Antworten
- 200Branding config returned
- 401Not authenticated
- 403Insufficient role
curl -X GET "https://xapi.ambertech.cloud/api/v1/organizations/branding" \
-H "Authorization: Bearer $XISUITE_TOKEN"Upsert organization branding#
/organizations/brandingTokenCreates or updates branding configuration (primary color, logo URLs/paths) for the organization.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
organizationId | string | Legacy compatibility field. Ignored; organization is derived from auth context. |
primary_color | object | Primary brand color hex code |
logo_light_url | object | Public URL for the light-mode logo |
logo_light_path | object | Storage path for the light-mode logo |
logo_dark_url | object | Public URL for the dark-mode logo |
logo_dark_path | object | Storage path for the dark-mode logo |
emblem_light_url | object | Public URL for the light-mode emblem |
emblem_light_path | object | Storage path for the light-mode emblem |
emblem_dark_url | object | Public URL for the dark-mode emblem |
emblem_dark_path | object | Storage path for the dark-mode emblem |
Antworten
- 201Branding upserted successfully
- 401Not authenticated
- 403Insufficient role
curl -X POST "https://xapi.ambertech.cloud/api/v1/organizations/branding" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationId":"…","primary_color":"#3B82F6","logo_light_url":{}}'Upload organization logo#
/organizations/branding/logoTokenUploads a logo to a specific slot (logo_light, logo_dark, emblem_light, emblem_dark). Max 5 MB. Supported formats: JPEG, PNG, WebP, SVG.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
slotPflicht | string | Werte: |
filePflicht | string (binary) | – |
Antworten
- 201Logo uploaded successfully
- 400Invalid slot, file type, or file too large
- 401Not authenticated
- 403Insufficient role
curl -X POST "https://xapi.ambertech.cloud/api/v1/organizations/branding/logo" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-F "file=@./datei.pdf"Delete organization logo#
/organizations/branding/logoTokenDeletes a logo from the specified slot and clears the branding fields.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
slotPflicht | Query | string | The logo slot to delete Werte: |
Antworten
- 200Logo deleted successfully
- 400Invalid or missing slot
- 401Not authenticated
- 403Insufficient role
- 404Branding not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/organizations/branding/logo" \
-H "Authorization: Bearer $XISUITE_TOKEN"Upsert per-surface branding theme#
/organizations/branding/themeTokenSets backgrounds and typography for the app shell and wiki. Requires the feature_custom_branding entitlement.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
theme_config | object | Per-surface branding theme (backgrounds + typography for app shell and wiki) |
Antworten
- 201Branding theme upserted
- 401Not authenticated
- 403Insufficient role or feature_custom_branding not entitled
curl -X POST "https://xapi.ambertech.cloud/api/v1/organizations/branding/theme" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"theme_config":{}}'Get platform-wide statistics for the current organization#
/organizations/statisticsTokenAntworten
- 200Statistics returned
- 403Insufficient role
curl -X GET "https://xapi.ambertech.cloud/api/v1/organizations/statistics" \
-H "Authorization: Bearer $XISUITE_TOKEN"