Skip to content

Playlists API

The slides your screens play. All requests need a secret key; see REST API for keys, errors and limits.

List playlists with their slides in order

GET /v1/playlists

Parameters

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

Response 200

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

Create a playlist, optionally with slides in order

POST /v1/playlists

Body

NameTypeDescription
namerequiredstring1 to 120 characters
itemslist of objectSlides in play order: videos, images, catalog slides and apps. up to 100 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.
videoIdslist of idVideo ids in play order (no durations). up to 100 items
Terminal window
curl -X POST https://api.loomieo.com/v1/playlists \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
playlistrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found, image_not_found, location_not_found, site_not_found, slide_not_found, video_not_found
  • 422: validation_failed
  • 429: rate_limited

Delete a playlist

DELETE /v1/playlists/{id}

Delete a playlist (its videos and images stay)

Parameters

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

Response 200

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

One playlist, with its slides and the screens showing it

GET /v1/playlists/{id}

Parameters

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

Response 200

NameTypeDescription
playlistrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: playlist_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a playlist or set its slides

PATCH /v1/playlists/{id}

Rename a playlist or set its slides (the list replaces the order); screens showing it update at once

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
itemslist of objectSlides in play order: videos, images, catalog slides and apps. up to 100 items
namestring1 to 120 characters
scopeobjectMove it to everyone, a site or a store. A scoped member can move it only within their scope.
videoIdslist of idVideo ids in play order (no durations). up to 100 items
Terminal window
curl -X PATCH https://api.loomieo.com/v1/playlists/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Copy a playlist you can see, slides and all, into everyone, a site or a store

POST /v1/playlists/{id}/duplicate

Copy a playlist you can see, slides and all, into everyone, a site or a store (Duplicate for site); the copy is yours to change

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
namestringThe copy's name; left out, the original's. 1 to 120 characters
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/playlists/:id/duplicate \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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