Upload a splash background
post
https://api.flactrum.com/v1/kiosk/themes/{theme}/splash-image
Your own photo for the splash screen, into the draft. To use a ready-made image instead, PATCH the theme with splash_image.
| Required scope | kiosk.write |
| Success status | 200 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| theme * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| image * | string | JPG, PNG or WEBP up to 5 MB, portrait works best. Send as multipart/form-data. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/kiosk/themes/01m43mygg5ar5wc1yvfb94jrkk/splash-image' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"image": "<binary: arka-plan.jpg>"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mygg5ar5wc1yvfb94jrkk",
"branch_id": null,
"version": 0,
"published_at": null,
"has_unpublished_changes": true,
"draft": {
"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": "/storage/kiosk-logos/01m43mygfhk9kr687148gkrqy4/sXJ2IXUdrBSYvqlOOAWofDJI78ysw3jgQ5V6LgSm.png",
"splash_image_url": "/storage/kiosk-splash/01m43mygfhk9kr687148gkrqy4/576ak1lzadHlVVt4uDhL3SCZRayBqGOQn21Lxlkq.jpg",
"splash_image": "upload",
"splash_overlay": 45,
"texts": []
},
"published": null,
"contrast": [
{
"check": "button",
"foreground": "on_primary",
"background": "primary",
"ratio": 6.6,
"minimum": 4.5,
"passes": true
},
{
"check": "text_on_background",
"foreground": "text",
"background": "background",
"ratio": 16.34,
"minimum": 4.5,
"passes": true
},
{
"check": "text_on_surface",
"foreground": "text",
"background": "surface",
"ratio": 17.99,
"minimum": 4.5,
"passes": true
},
{
"check": "muted_on_surface",
"foreground": "text_muted",
"background": "surface",
"ratio": 6.41,
"minimum": 4.5,
"passes": true
},
{
"check": "price_on_surface",
"foreground": "price",
"background": "surface",
"ratio": 17.99,
"minimum": 3,
"passes": true
},
{
"check": "accent_on_background",
"foreground": "accent",
"background": "background",
"ratio": 4.56,
"minimum": 3,
"passes": true
}
]
}
}