Skip to content

Screens API

Pair, update, command and remove screens. All requests need a secret key; see REST API for keys, errors and limits.

List screens, newest first, with status

GET /v1/screens

List screens, newest first, with status (online: a heartbeat in the last 3 minutes)

Parameters

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

Response 200

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

Add a screen by the code it shows

POST /v1/screens/claim

Add a screen by the code it shows; it starts playing within about a minute

Body

NameTypeDescription
coderequiredstringThe code the screen shows; spaces and dashes are ignored. 6 to 8 characters
namerequiredstring1 to 120 characters
contentobjectdefault {"fallbackPlaylistId":null,"layoutId":null,"playlistId":null}
groupIdslist of idup to 20 items
locationIdidThe store it's in; the organization's first store (of yours, when you're limited to stores) when omitted.
orientation"landscape" | "portrait" | "landscape-flipped" | "portrait-flipped"default "landscape"
Terminal window
curl -X POST https://api.loomieo.com/v1/screens/claim \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"…","name":"…"}'

Response 200

NameTypeDescription
screenrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 402: plan_limit_reached
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found, location_not_found, pairing_code_not_found, playlist_not_found, screen_group_not_found
  • 409: pairing_code_claimed, screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Remove a screen

DELETE /v1/screens/{id}

Remove a screen (owner): its token stops working and it shows a new pairing code

Parameters

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

Response 200

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

One screen with its last heartbeat

GET /v1/screens/{id}

Parameters

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

Response 200

NameTypeDescription
screenrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: screen_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a screen, move it to a store or set its groups

PATCH /v1/screens/{id}

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
groupIdslist of idup to 20 items
locationIdid
namestring1 to 120 characters
orientation"landscape" | "portrait" | "landscape-flipped" | "portrait-flipped"
Terminal window
curl -X PATCH https://api.loomieo.com/v1/screens/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
screenrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, screen_group_not_found, screen_not_found
  • 409: screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Set what one screen shows

PUT /v1/screens/{id}/assignment

Set what one screen shows; it overrides its groups. Both null: follow the groups again

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
fallbackPlaylistIdid or nullPlays when the main playlist is empty or none is set; cached on the screen.
layoutIdid or nullPlays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).
playlistIdid or null
Terminal window
curl -X PUT https://api.loomieo.com/v1/screens/:id/assignment \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
screenrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found, playlist_not_found, screen_not_found
  • 422: validation_failed
  • 429: rate_limited

Send a screen a live command

POST /v1/screens/{id}/commands

Send a screen a live command: reload content, restart, clear cache or snapshot

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
kindrequired"reload-content" | "restart" | "clear-cache" | "snapshot"reload-content fetches the manifest now; restart reloads the app; clear-cache drops cached media and downloads it again; snapshot reports what each zone shows.
Terminal window
curl -X POST https://api.loomieo.com/v1/screens/:id/commands \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"reload-content"}'

Response 200

NameTypeDescription
commandrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden
  • 404: screen_not_found
  • 422: validation_failed
  • 429: rate_limited

How a live command went, and a snapshot's report

GET /v1/screens/{id}/commands/{commandId}

Parameters

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

Response 200

NameTypeDescription
commandrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: screen_command_not_found, screen_not_found
  • 422: validation_failed
  • 429: rate_limited

Rebuild a screen's manifest now

POST /v1/screens/{id}/refresh

Parameters

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

Response 200

NameTypeDescription
screenrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: screen_not_found
  • 422: validation_failed
  • 429: rate_limited