whiteboards
25 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List whiteboards in a space (archived included)#
GET
/spaces/{spaceId}/whiteboardsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create an empty whiteboard#
POST
/spaces/{spaceId}/whiteboardsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string |
Antworten
- 201Whiteboard created
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Sprint retro"}'Get a whiteboard with its scene and image ids#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 404Whiteboard not found
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Rename a whiteboard#
PATCH
/spaces/{spaceId}/whiteboards/{whiteboardId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string |
Antworten
- 409Whiteboard is archived
Beispiel (cURL)
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Sprint retro"}'Permanently delete a whiteboard and its images#
DELETE
/spaces/{spaceId}/whiteboards/{whiteboardId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"The caller's Share state on a whiteboard (restricted, own caps)#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/accessTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/access" \
-H "Authorization: Bearer $XISUITE_TOKEN"Archive a whiteboard (read-only until restored)#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/archiveTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/archive" \
-H "Authorization: Bearer $XISUITE_TOKEN"Owner, dates, labels and stats of a whiteboard#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/detailsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/details" \
-H "Authorization: Bearer $XISUITE_TOKEN"Store an image embedded in the whiteboard#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/filesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
fileIdPflicht | string | Excalidraw FileId |
filePflicht | string (binary) | – |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/files" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-F "file=@./datei.pdf"Download an embedded image#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/files/{fileId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
fileIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/files/{fileId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"The space's labels (shared with wiki pages)#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/label-optionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/label-options" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a space label (or return the one with that name)#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/label-optionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | |
color | string | Hex color code |
description | string | – |
sort_order | number |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/label-options" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Architecture"}'Replace a whiteboard's labels#
PUT
/spaces/{spaceId}/whiteboards/{whiteboardId}/labelsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
label_idsPflicht | string[] | Complete set of label UUIDs to assign (replaces existing) |
Antworten
- 409WHITEBOARD_ARCHIVED
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/labels" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"label_ids":[]}'Token for the board's private live channels (presence, cursors, scene)#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/live/tokenTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/live/token" \
-H "Authorization: Bearer $XISUITE_TOKEN"Transfer a whiteboard to another space member#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/ownerTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
user_idPflicht | string | public.users.id of the new owner |
Antworten
- 403Not the owner or an admin
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/owner" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id":"…"}'Whether private mode is on for the board#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/private-modeTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/private-mode" \
-H "Authorization: Bearer $XISUITE_TOKEN"End private mode for everyone on the board#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/private-mode/endTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/private-mode/end" \
-H "Authorization: Bearer $XISUITE_TOKEN"Start private mode for everyone on the board#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/private-mode/startTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
keep_anonymousPflicht | boolean | Keep authors anonymous after the session ends |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/private-mode/start" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keep_anonymous":true}'Restore an archived whiteboard#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/restoreTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/restore" \
-H "Authorization: Bearer $XISUITE_TOKEN"Autosave the scene (optimistic lock on base_revision)#
PUT
/spaces/{spaceId}/whiteboards/{whiteboardId}/sceneTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
elementsPflicht | object[] | – |
app_statePflicht | object | – |
base_revisionPflicht | number | The revision this scene was based on (optimistic lock) |
Antworten
- 409WHITEBOARD_REVISION_CONFLICT or WHITEBOARD_ARCHIVED
- 413WHITEBOARD_TOO_LARGE
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/scene" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"elements":[],"app_state":{},"base_revision":0}'The board's shared timer (with the server time)#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/timerTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/timer" \
-H "Authorization: Bearer $XISUITE_TOKEN"Start, set the time of, pause, resume, stop or +1 min the timer#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/timerTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
actionPflicht | string | Werte: |
duration_ms | number | Required for start and set (the time typed on the card); optional for resume (resume with an edited time) |
Antworten
- 409Whiteboard is archived
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/timer" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"start"}'Version history of a whiteboard (newest first, no scenes)#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/versionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/versions" \
-H "Authorization: Bearer $XISUITE_TOKEN"One version of a whiteboard, with its scene#
GET
/spaces/{spaceId}/whiteboards/{whiteboardId}/versions/{version}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
versionPflicht | Pfad | number | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/versions/{version}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Restore a version of the scene and name as a new revision#
POST
/spaces/{spaceId}/whiteboards/{whiteboardId}/versions/{version}/restoreTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
whiteboardIdPflicht | Pfad | string | – |
versionPflicht | Pfad | number | – |
Antworten
- 409WHITEBOARD_ARCHIVED, or still racing autosaves
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/whiteboards/{whiteboardId}/versions/{version}/restore" \
-H "Authorization: Bearer $XISUITE_TOKEN"