Publish the draft
post
https://api.flactrum.com/v1/kiosk/themes/{theme}/publish
Copies the draft to live, increments version and fires the kiosk_theme.published webhook.
| Required scope | kiosk.write |
| Success status | 200 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| theme * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/kiosk/themes/01m43myg05p7d706k405jdxc3f/publish' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": {
"id": "01m43myg05p7d706k405jdxc3f",
"branch_id": null,
"version": 1,
"published_at": "2026-10-04T14:26:36+00:00",
"has_unpublished_changes": false,
"draft": {
"colors": {
"background": "#F6F1EA",
"surface": "#FFFFFF",
"primary": "#123456",
"on_primary": "#FFFFFF",
"text": "#2A1D15",
"text_muted": "#6B5A4E",
"price": "#8A4B1F",
"accent": "#A0522D",
"splash_background": "#2A1D15"
},
"splash_logo_url": null,
"splash_image_url": null,
"splash_image": null,
"splash_overlay": 45,
"texts": []
},
"published": {
"colors": {
"background": "#F6F1EA",
"surface": "#FFFFFF",
"primary": "#123456",
"on_primary": "#FFFFFF",
"text": "#2A1D15",
"text_muted": "#6B5A4E",
"price": "#8A4B1F",
"accent": "#A0522D",
"splash_background": "#2A1D15"
},
"splash_logo_url": null,
"splash_image_url": null,
"splash_image": null,
"splash_overlay": 45,
"texts": []
},
"contrast": [
{
"check": "button",
"foreground": "on_primary",
"background": "primary",
"ratio": 12.72,
"minimum": 4.5,
"passes": true
},
{
"check": "text_on_background",
"foreground": "text",
"background": "background",
"ratio": 14.54,
"minimum": 4.5,
"passes": true
},
{
"check": "text_on_surface",
"foreground": "text",
"background": "surface",
"ratio": 16.34,
"minimum": 4.5,
"passes": true
},
{
"check": "muted_on_surface",
"foreground": "text_muted",
"background": "surface",
"ratio": 6.57,
"minimum": 4.5,
"passes": true
},
{
"check": "price_on_surface",
"foreground": "price",
"background": "surface",
"ratio": 6.76,
"minimum": 3,
"passes": true
},
{
"check": "accent_on_background",
"foreground": "accent",
"background": "background",
"ratio": 5,
"minimum": 3,
"passes": true
}
]
}
}