Skip to main content
A theme controls how a room looks. You set three values (a primary color, a background color, and a font), and Flowla generates the rest of the palette from them: navigation, header, blocks, groups, links, and canvas. See Themes for how this looks in the product. There are two kinds of themes:
  • Organization themes can be applied to any room. Their flowId is null.
  • Room themes belong to one room. Their flowId is that room’s ID.

Endpoints

To apply an existing theme to a room, set themeId with PATCH /api/v2/rooms/{room_id}.

Property sources

The three values that drive a theme live in propertySources. Each one says where the value comes from:
A theme that uses target-company needs a company linked to the room. When the room has none, the response includes a warning, and the room shows black and white placeholder colors until you link a company.

List themes

GET /api/v2/themes Returns your organization’s themes. With roomId, it also returns that room’s own themes and roomActiveThemeId, the ID of the theme the room uses.

Query parameters

string
Room ID. Adds the room’s own themes to the results, and the room’s current theme as roomActiveThemeId.

Response

Response 200
roomActiveThemeId is only included when you pass roomId. data holds the full theme. Besides propertySources, it contains any values someone set by hand in the theme editor.

Create a theme

POST /api/v2/themes Pass roomId to create a room theme. It’s applied to that room straight away. Leave roomId out to create an organization theme.

Body parameters

string
required
Theme name, up to 128 characters. It must be unique (ignoring case) among your organization themes, or among the room’s own themes for a room theme.
string
Room ID. The theme belongs to this room and is applied to it.
object
Any of primaryColor, bgColor, and font, as described in Property sources. Values you leave out default to your organization’s brand color, a white background (#FFFFFF), and your organization’s font.
Example

Response

Response 200

Update a theme

PATCH /api/v2/themes/{theme_id} All fields are optional. Only the property sources you send change. Values someone set by hand in the theme editor are kept.
Updating an organization theme changes every room that uses it. To restyle a single room, create a room theme for it instead.

Body parameters

string
New theme name.
object
Any of primaryColor, bgColor, and font, as described in Property sources.
Example
The response has the same shape as Create a theme, including warning when it applies.

Promote a room theme

POST /api/v2/themes/{theme_id}/promote Turns a room theme into an organization theme, so every room can use it. The theme keeps its ID, and the room it came from keeps using it.

Body parameters

string
Name for the organization theme. Defaults to the current name. Pass a new one if another organization theme already uses that name.
The response is the promoted theme, with flowId set to null.

Errors