Apps: room boards
Put one board on the screen of a call, for everyone in it: a title, a few lines, a score table, buttons, a video and a moment.
A room board is one board on the screen of a call, the same for everyone in it, late arrivals included. Your app needs the rooms:board scope: requested by the app, granted by whoever installs it, and off for everyone else. Boards work in Kemble Work and Kemble Circle, in channels only, never in a direct conversation.
Write a board
curl -X PUT https://kemble.io/api/apps/rooms/$CHANNEL/board \
-H "authorization: Bearer $APP_TOKEN" \
-H 'content-type: application/json' \
-d '{ "title": "Round 3", "lines": ["Next up: Sara"], "scores": { "rows": [{ "name": "Blue team", "score": 12 }] } }'- The channel must be one your app is added to, and the token’s person must be able to open it and be allowed to post in it.
- Send the whole board every time. There is no merge. A board can be up to 8 KB after cleaning, and everything is plain text.
- title is required, up to 80 characters. lines is up to 6 lines of 200 characters.
- scores is { caption?, rows: [{ name, score }] }, up to 10 rows.
- blocks is one actions block of buttons, the same blocks a message uses.
- video is { title, url }, and the address must be https.
- moment is { kind: "confetti", label? } or { kind: "spotlight", userId, label? }. Confetti plays only for people who are there when it’s written.
Take it down
DELETE /api/apps/rooms/:channel/board takes the board down. Moderators can take one down too, and a board goes when the last person leaves the room.
Buttons
A button press reaches your interaction URL as an ordinary block_action, with channelId and no messageId. Its response_url and trigger_id work as usual.
Refusals and pace
- A room with nobody in it answers 409.
- A spotlight must name someone in the room, or the answer is 422.
- An app may write 30 boards a minute in a workspace or community. Past that it gets 429. People are never limited by this.