Collaborative Whiteboard Plugin: Registration, Auth Token, and Board Limits
How to add Cloudflare RealtimeKit's hosted Whiteboard plugin: auth token in the URL fragment, SDK registration, permissions, board data, and limits.
This page summarizes Cloudflare RealtimeKit documentation on the hosted Whiteboard plugin and the Plugins API you use to register it beside custom meeting plugins. The whiteboard is collaborative drawing inside a meeting: Cloudflare hosts and operates it, and you add it through the same registration flow as your own plugins—nothing to deploy on your side.
The Whiteboard plugin is a collaborative whiteboard that Cloudflare hosts and operates. Participants draw, write, and diagram together on a shared board inside the meeting, and see each other’s cursors and names as they work.
— Cloudflare, Add the Whiteboard plugin
Whiteboard plugin: what participants can and cannot do
Section titled “Whiteboard plugin: what participants can and cannot do”Participants can draw shapes, arrows, lines, freehand strokes, and text; see live cursors and RealtimeKit display names; rejoin after disconnect and continue on the same board; and export the board as an image. Each meeting has one board that persists across all sessions of that meeting, so a recurring room picks up where it left off (see Board data in the same guide).
The hosted whiteboard does not support images, frames, embedded web content, or importing board files—participants see a message that those features are unavailable. For editable documents or fully custom collaboration, see Build your own plugins or Custom Plugins.
Plugins API: how the whiteboard fits registration and activation
Section titled “Plugins API: how the whiteboard fits registration and activation”Plugins are interactive apps that run inside a meeting. When one participant activates a plugin, RealtimeKit activates it for everyone in the session and renders it in the layout.
| Concept | Behavior |
|---|---|
| Registration | Pass plugin configs in defaults.plugins at SDK init (web: HTMLElement or iframe; mobile: url / { src } into a WebView). |
Plugin id |
Use the same id on every platform so activation syncs across web and mobile. |
| Activation | meeting.plugins.all.get(pluginId).activate() applies to all participants (subject to permissions). |
| Custom vs hosted | Custom plugins are DOM elements you own; the Whiteboard loads from Cloudflare’s plugin URL. |
You must register a plugin with the same id on every platform your participants use. Activation only syncs across participants who registered the plugin with the same id.
— Cloudflare, Plugins
For field-level reference, see Register a plugin and the Plugins guide. UI Kit exposes rtk-plugins, rtk-plugins-toggle, and rtk-plugin-main when you register at init (Render plugins).
Participant auth token: fragment URL, not query string
Section titled “Participant auth token: fragment URL, not query string”Each participant needs the auth token from Add participant (the same token passed to RealtimeKitClient.init). The whiteboard loads from:
https://whiteboard-v2.plugins.realtime.cloudflare.com/#authToken=<auth_token>
The plugin verifies the token with RealtimeKit and opens the board for that token’s meeting with the participant’s display name—you do not pass a meeting ID or display name yourself.
Browsers do not send the URL fragment to servers or include it in Referer headers, so the token stays out of request logs. The plugin also removes the token from its address as soon as it loads.
— Cloudflare, Add the Whiteboard plugin
Why authToken must be after #
Section titled “Why authToken must be after #”Pass the auth token only after #, not as a query parameter such as ?authToken=. The auth token lets anyone who has it join the meeting as that participant, and browsers send query parameters to servers, where they can appear in logs. The plugin does not use a token in a query parameter, and shows Whiteboard link needs updating instead.
— Cloudflare, Add the Whiteboard plugin
Web setup: iframe, clipboard policy, and SDK registration
Section titled “Web setup: iframe, clipboard policy, and SDK registration”Read Plugins first—the whiteboard guide builds on it.
Create the iframe once per meeting
Section titled “Create the iframe once per meeting”Create one iframe before SDK init and reuse it for the whole meeting. Set referrerPolicy="no-referrer", full width/height, and load:
const WHITEBOARD_URL = "https://whiteboard-v2.plugins.realtime.cloudflare.com/";iframe.src = `${WHITEBOARD_URL}#authToken=${encodeURIComponent(authToken)}`;Full example: Add the Whiteboard plugin — Create the plugin component.
allow="clipboard-read; clipboard-write"
Section titled “allow="clipboard-read; clipboard-write"”The plugin iframe must set allow=“clipboard-read; clipboard-write”. The Whiteboard plugin loads from a different origin than your app, so browsers block the Clipboard API inside it unless the iframe allows it.
— Cloudflare, Add the Whiteboard plugin
Set allow before the first load of src; changing it later has no effect until reload.
Register with RealtimeKitClient.init
Section titled “Register with RealtimeKitClient.init”Pass the iframe as component under defaults.plugins with a stable id (for example whiteboard), display name, icon, and permissions.canActivate / canDeactivate. See Add the Whiteboard plugin — Register the plugin for Web, Android, iOS, and React Native variants.
Mobile setup: WebView URL instead of an iframe
Section titled “Mobile setup: WebView URL instead of an iframe”On Android and iOS, the SDK creates the WebView. Register RtkClientPluginConfig with url set to the whiteboard URL including #authToken=... in RtkMeetingInfo plugins list—same token rules as web (Register the plugin).
Open, close, and who can edit the board
Section titled “Open, close, and who can edit the board”With UI Kit, the whiteboard appears in the plugins panel; participants open and close it there. With a custom UI, call activate() and deactivate() on the plugin object for the whole session (Open the whiteboard, Activate and deactivate a plugin).
| Question | Answer |
|---|---|
| Who can open the board? | Anyone with a valid auth token for that meeting; the token’s meeting determines which board opens. |
| Who can edit? | Everyone who has the board open. Presets do not control whiteboard editing. |
| Who can open/close the plugin UI? | Controlled by the plugin entry’s permissions (canActivate / canDeactivate). |
| Domain allowlisting for embed? | The whiteboard works on any domain; you do not register your app origin. |
Details: Access and permissions.
Board data, retention, and compliance
Section titled “Board data, retention, and compliance”Cloudflare stores all board content (shapes, lines, strokes, text) on its infrastructure so a new session of the same meeting can restore the board.
Board content is kept indefinitely and is not deleted when a session ends. There is currently no API to clear or delete a board.
— Cloudflare, Add the Whiteboard plugin
Participant cursors and display names are shared only with participants who have the board open and are not stored with the board. You are responsible for participant-entered text (including sensitive data), informing users that content is stored, and legal obligations—see the Content on the board note in Board data. Broader RealtimeKit retention is in Data retention (linked from that section).
Meeting vs session (one persistent meeting, many sessions) is explained in Meeting and Concepts — Session.
Limits, capacity, and network allowlist
Section titled “Limits, capacity, and network allowlist”The whiteboard targets collaborative meetings, not large broadcast audiences.
| Limit | What happens |
|---|---|
| Concurrent participants on one board | Capped; joiners on a full board cannot connect and see Reconnect. For large events, let a small group edit and share via screen share. |
| Board size | Maximum total content; when full, new changes are not saved and participants see a message. |
| Single element size | Very long strokes or large text blocks may fail to save with a message. |
| Connection attempts | Rapid retries from the same network are rate limited (Too many attempts; retry after about a minute). |
Source: Limits.
If outbound traffic is restricted, allow whiteboard-v2.plugins.realtime.cloudflare.com in addition to standard RealtimeKit domains (Network allowlist).
Common mistakes
Section titled “Common mistakes”- Putting
authTokenin a query string instead of the URL fragment (leaks to logs; plugin refuses to load). - Omitting
allow="clipboard-read; clipboard-write"on the web iframe (paste from context menu fails). - Using different plugin
idon web vs mobile (activation does not sync). - Expecting preset permissions to block drawing (editing is open to everyone with the board open).
- Assuming board content is erased when the call ends (content is retained indefinitely with no delete API).
- Embedding many editors on one board in a webinar-scale room (use screen share for viewers per Limits).
Related plugin patterns
Section titled “Related plugin patterns”To build your own in-meeting app (counter, document viewer), register an HTMLElement and sync state with the meeting key-value store or message broadcast (Build your own plugins). Preset editor Plugins permissions control which plugins a role may view or open in the meeting UI (Preset), separate from whiteboard editing rules above.
How to check this on your site
Section titled “How to check this on your site”-
Confirm each test user receives a fresh participant token from your backend via the Add participant flow, and that the whiteboard iframe or mobile
urluses#authToken=only (Add the Whiteboard plugin). -
Join a test meeting with two clients using the same registered plugin
id, activate the whiteboard, and verify strokes and cursors sync (Plugins). -
Run the RealtimeKit pre-call test (also linked from Network allowlist — Verify connectivity) and confirm connectivity, including allowlisting
whiteboard-v2.plugins.realtime.cloudflare.comif you use a restrictive firewall. -
End the session, start a new session on the same meeting, and confirm board content persisted (Board data).
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the official docs or your integration behavior, email yimasynthetic@gmail.com with the page URL and the exact statement you want clarified or corrected.