Physical stores, their hours and time zones. All requests need a secret key; see REST API for keys, errors and limits.
List stores, newest first, with their screen counts
GET /v1/locations
Parameters
| Name | In | Type | Description |
|---|
cursor | query | string | |
limit | query | integer | |
sortBy | query | "createdAt" | |
sortDir | query | "asc" | "desc" | |
curl -X GET https://api.loomieo.com/v1/locations \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
locationsrequired | list of object | |
paginationrequired | object | |
Errors
401: auth_unauthenticated403: forbidden422: validation_failed429: rate_limited
Add a store
POST /v1/locations
Add a store (owner)
Body
| Name | Type | Description |
|---|
namerequired | string | 1 to 120 characters |
timeZonerequired | string | IANA time zone, e.g. Europe/Stockholm. 1 to 64 characters |
address | object | default {} |
alertEmails | list of email | Who gets offline alerts; empty sends them to the organization's owners. up to 5 items |
offlineAlertMinutes | integer or null | Email when a screen here has been silent this many minutes of opening hours (S-15); null is off. |
openingHours | object | Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them. default {} |
siteId | id | The site (market) whose language, currency and listings it uses; the organization's first site when omitted. |
sleepOutsideHours | boolean | Screens here go dark outside the opening hours (when any are set). default false |
themeId | id or null | |
curl -X POST https://api.loomieo.com/v1/locations \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…","timeZone":"…"}'
Response 200
| Name | Type | Description |
|---|
locationrequired | object | |
Errors
400: bad_request401: auth_unauthenticated402: plan_limit_reached403: auth_csrf_rejected, forbidden, out_of_scope404: site_not_found, theme_not_found422: validation_failed429: rate_limited
Delete a store
DELETE /v1/locations/{id}
Delete a store (owner): ?moveScreensTo=<store id> moves its screens, ?removeScreens=true removes them
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
moveScreensTo | query | id | Another store to move this store's screens to. |
removeScreens | query | "true" | "false" | true removes this store's screens (their tokens stop working). |
curl -X DELETE https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
locationrequired | object | |
Errors
401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: location_not_found409: location_last, screen_group_limit_reached422: validation_failed429: rate_limited
One store
GET /v1/locations/{id}
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
locationrequired | object | |
Errors
401: auth_unauthenticated403: forbidden404: location_not_found422: validation_failed429: rate_limited
Update a store
PATCH /v1/locations/{id}
Update a store (owner); its screens pick up a new time zone, site language or opening hours
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
address | object | |
alertEmails | list of email | Who gets offline alerts; empty sends them to the organization's owners. up to 5 items |
name | string | 1 to 120 characters |
offlineAlertMinutes | integer or null | Email when a screen here has been silent this many minutes of opening hours (S-15); null is off. |
openingHours | object | Opening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them. |
siteId | id | |
sleepOutsideHours | boolean | |
themeId | id or null | |
timeZone | string | IANA time zone, e.g. Europe/Stockholm. 1 to 64 characters |
curl -X PATCH https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
locationrequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: location_not_found, site_not_found, theme_not_found409: screen_group_limit_reached422: validation_failed429: rate_limited
Set what a store's screens show
PUT /v1/locations/{id}/assignment
Set what a store's screens show; a group or screen of their own still wins, and it beats the site and everyone. All null: clear it
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
fallbackPlaylistId | id or null | Plays when the main playlist is empty or none is set; cached on the screen. |
layoutId | id or null | Plays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13). |
playlistId | id or null | |
curl -X PUT https://api.loomieo.com/v1/locations/:id/assignment \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
assignmentrequired | object or null | What the target now shows; null once cleared. |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: layout_not_found, location_not_found, playlist_not_found422: validation_failed429: rate_limited