Overview / Kiosk / Theme for a kiosk

Theme for a kiosk

get https://api.flactrum.com/v1/kiosk/theme

The call the kiosk app makes. Returns only published values: the branch override if the branch has one, otherwise the brand theme, otherwise defaults. Poll it on start-up and every few minutes, and compare revision; or subscribe to the kiosk_theme.published webhook and fetch when it fires.

Required scope kiosk.read
Success status200

Parameters

NameInTypeDescription
branch query string The kiosk's branch. Leave it out to get the brand theme.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X GET 'https://api.flactrum.com/v1/kiosk/theme?branch=01m43myfw9wzr1gt9qzh5ww6fm' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": {
        "source": "default",
        "revision": "default",
        "version": 0,
        "published_at": null,
        "colors": {
            "background": "#F5F4F0",
            "surface": "#FFFFFF",
            "primary": "#6A34E0",
            "on_primary": "#FFFFFF",
            "text": "#16161E",
            "text_muted": "#5E5E68",
            "price": "#16161E",
            "accent": "#B45309",
            "splash_background": "#16161E"
        },
        "splash_logo_url": null,
        "splash_image_url": null,
        "splash_image": null,
        "splash_overlay": 45,
        "texts": []
    }
}