Skip to content

Layouts API

Split screens into zones. All requests need a secret key; see REST API for keys, errors and limits.

List screen layouts, newest first

GET /v1/layouts

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
Terminal window
curl -X GET https://api.loomieo.com/v1/layouts \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
layoutsrequiredlist of object
paginationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited

Create a layout

POST /v1/layouts

Create a layout: zones, each with a playlist, and overlays

Body

NameTypeDescription
namerequiredstring1 to 120 characters
zonesrequiredlist of objectIn grid pixels, drawn in order (a later zone covers an earlier one). up to 6 items
orientation"landscape" | "portrait"Landscape draws on a 1920×1080 grid, portrait on 1080×1920. default "landscape"
overlayslist of objectDrawn over every zone: a clock, a ticker, a logo. up to 3 items
scopeobjectWho it belongs to: everyone (org), a site or a store (location). Left out: everyone, or for a member scoped to one site or store, that one. A scoped member can only choose inside their scope.
Terminal window
curl -X POST https://api.loomieo.com/v1/layouts \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…","zones":[]}'

Response 200

NameTypeDescription
layoutrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: image_not_found, location_not_found, playlist_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited

Delete a layout

DELETE /v1/layouts/{id}

Delete a layout; screens showing it fall back, and schedule slots that play it go

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/layouts/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
layoutrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found
  • 422: validation_failed
  • 429: rate_limited

One layout with its zones and overlays

GET /v1/layouts/{id}

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X GET https://api.loomieo.com/v1/layouts/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
layoutrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: layout_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a layout or replace its zones or overlays

PATCH /v1/layouts/{id}

Rename a layout or replace its zones or overlays; screens showing it update at once

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
namestring1 to 120 characters
orientation"landscape" | "portrait"Landscape draws on a 1920×1080 grid, portrait on 1080×1920.
overlayslist of objectDrawn over every zone: a clock, a ticker, a logo. up to 3 items
scopeobjectMove it to everyone, a site or a store. A scoped member can move it only within their scope.
zoneslist of objectIn grid pixels, drawn in order (a later zone covers an earlier one). up to 6 items
Terminal window
curl -X PATCH https://api.loomieo.com/v1/layouts/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
layoutrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: image_not_found, layout_not_found, location_not_found, playlist_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited