How to Enable the Whiteboard in Digital Samba via the API
With Digital Samba Embedded, you can switch on the collaborative whiteboard for any room from the dashboard or programmatically through the REST API. This guide covers the API route: enabling the whiteboard for an existing room, enabling it at room creation, making it the default for your whole team, and controlling who gets to draw once it is on.
What you'll need
Every request goes to https://api.digitalsamba.com/api/v1 and authenticates with HTTP Basic authentication: your team ID as the username and your developer key as the password, both available in your Digital Samba dashboard. Keep the developer key secret – it authenticates every API request for your team – and always send credentials in the authorisation header over HTTPS, never in a URL.
Enable the whiteboard for an existing room
The whiteboard is controlled by a single boolean room property, whiteboard_enabled. To turn it on for a room that already exists:
- API endpoint: Make a PATCH request to edit the room:
https://api.digitalsamba.com/api/v1/rooms/{room_id}
The room ID is the UUID returned when you created the room; you can also look it up with a GET request to the /rooms endpoint.
- Request payload: In the request body, set whiteboard_enabled to true:
{"whiteboard_enabled": true}
- Send the request: Here is the full curl command for a room with the ID c39d7c40-7ff7-4faa-b06f-698a639a9523:
curl --request PATCH \
--header "Content-Type: application/json" \
--url https://api.digitalsamba.com/api/v1/rooms/c39d7c40-7ff7-4faa-b06f-698a639a9523 \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"whiteboard_enabled": true}'
- Check the response: You should receive a 200 OK response containing the updated room object, with "whiteboard_enabled": true among its properties.
- Confirm it: Open the room settings in your Digital Samba dashboard, or execute a GET request for the room, to confirm the whiteboard is now enabled.
Enable the whiteboard when creating a room
If you provision rooms programmatically, you can enable the whiteboard from the start. Include whiteboard_enabled in the POST request that creates the room – the only required field is privacy, which accepts "public" or "private":
curl --request POST \
--header "Content-Type: application/json" \
--url https://api.digitalsamba.com/api/v1/rooms \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"privacy": "public", "whiteboard_enabled": true}'
Make the whiteboard a team-wide default
Rather than patching rooms one by one, you can set whiteboard_enabled in your default room settings with a PATCH request against the root endpoint:
curl --request PATCH \
--header "Content-Type: application/json" \
--url https://api.digitalsamba.com/api/v1 \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"whiteboard_enabled": true}'
Every room then inherits the setting unless you override it on the individual room. For a full walkthrough of this mechanism, see our guide on configuring your room defaults using the developer API.
Control who can use the whiteboard
Enabling the whiteboard makes it available in the room; role permissions decide what each participant can do with it:
- edit_whiteboard – allows a role to edit the whiteboard and make drawings.
- manage_edit_whiteboard – allows a role to give and remove whiteboard editing permission for selected roles, for example a teacher inviting one student up to the board.
- control_room_components – allows a role to switch room components such as the whiteboard, chat and Q&A on or off on the fly while a session is running.
Digital Samba provides three predefined roles – moderator, speaker and attendee – and moderators are allowed to do everything inside the room by default. You can also create custom roles with exactly the whiteboard permissions you need and assign them through the roles and default_role fields on the room.
Going further: whiteboards in your own UI
Once the feature is enabled, your application can drive the whiteboard at runtime through the SDK methods: createWhiteboard() creates and opens a new whiteboard, persisting it immediately in the room or personal content library, openWhiteboard(), closeWhiteboard() and toggleWhiteboard() control its visibility, and addImageToWhiteboard() adds an image to the whiteboard.
You can also prepare boards ahead of a session: a POST request to the content library whiteboards endpoint (/libraries/{library_id}/whiteboards) creates a named, empty whiteboard file in the content library ahead of time. And if you want your platform to react to what happens in your rooms, pair this setup with webhooks that notify your backend about room events.
For all other available room properties, refer to the official Digital Samba REST API documentation.
Frequently asked questions
Can I enable the whiteboard for every room in my team at once?
Yes. Send a PATCH request to https://api.digitalsamba.com/api/v1 with {"whiteboard_enabled": true}. This updates your default room settings, and every room inherits the value unless you have overridden it on the individual room.
Who can draw on the whiteboard?
Participants whose role has the edit_whiteboard permission. Roles with manage_edit_whiteboard can grant or remove editing rights for selected roles during the session, and moderators can do everything inside the room by default.
Can the whiteboard be switched on or off during a live session?
Yes. Participants whose role has the control_room_components permission can enable or disable room components such as the whiteboard, chat and Q&A while the session is running, and your application can open or close a whiteboard programmatically with the SDK's openWhiteboard(), closeWhiteboard() and toggleWhiteboard() methods.
Where are whiteboards stored?
Whiteboards are files in the content library. A whiteboard created with createWhiteboard() is immediately persisted in the room or personal library, and you can pre-create empty whiteboard files through the REST API's content library endpoints.
Wrap up
Enabling the whiteboard in Digital Samba comes down to one boolean: set whiteboard_enabled to true on a room, at creation, or in your team defaults, then shape the experience with role permissions and the SDK. It is a small change that turns a video call inside your product into a shared workspace where participants can sketch, annotate and explain ideas together.
Sign up to Digital Samba Embedded for free or talk to our sales team about embedding video conferencing with a collaborative whiteboard into your software or app.
Share this
You May Also Like
These Related Stories

How to Configure Default Room Settings with the Digital Samba API

Configuring your Digital Samba rooms with the developer API and SDK

