Whiteboard API
Whiteboard API allows to create whiteboard functionality and associate it with a chat dialog.
Chat dialog’s users can collaborate and draw simultaneously on a whiteboard.
Separated whiteboard server endpoint is used: https://whiteboard.connectycube.com
Whiteboard model
Parameter | Description |
---|---|
_id | Whiteboard identifier |
name | Whiteboard name |
chat_dialog_id | A chat dialog identifier to which a whiteboard is conected to. |
user_id | Whiteboard creator user id |
created_at | Whiteboard created date. |
updated_at | Whiteboard updated date. |
Create whiteboard
Endpoint
Parameters
Parameter | Required | Description | Value example |
---|---|---|---|
name | Yes | Whiteboard name | ”My whiteboard” |
chat_dialog_id | Yes | A chat dialog identifier to which a whiteboard is conected to. Creating whiteboard only available for Group/Private/Meeting chat dialogs. Max 3 whiteboards per chat | ”602f9ea20740a24ec238d9da” |
Once whiteboard is created - a user can display it in app in WebView using the following url:
Request example
Response
Retrieve whiteboards
Endpoint
Parameters
Parameter | Required | Description |
---|---|---|
chat_dialog_id | Yes | Retrieve whiteboards related to particular chat dialog. |
Request example
Response
Update whiteboards
A request to update whiteboard’s parameters. Only creator can update a whiteboard.
Endpoint
Parameters
Parameter | Required | Description | Data type | Value example |
---|---|---|---|---|
name | Yes | Whiteboard name | string | ”New whiteboard name” |
Request example
Response
Delete whiteboard
Delete a whiteboard by ID. Only creator can delete a whiteboard.