Skip to content

Widgets API

Create, update and turn widgets on and off. All requests need a secret key; see REST API for keys, errors and limits.

The live widgets a tag, theme or video shows up in

GET /v1/experiences/affected

Parameters

NameInTypeDescription
keysquerystringWith themeId: the theme keys an edit changed (informational; every live experience on the theme is affected).
tagIdqueryid
themeIdqueryid
videoIdqueryid
Terminal window
curl -X GET https://api.loomieo.com/v1/experiences/affected \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Delete an experience that isn't live

DELETE /v1/experiences/{id}

Parameters

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

Response 200

NameTypeDescription
experiencerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found
  • 409: experience_live
  • 422: validation_failed
  • 429: rate_limited

One experience's draft settings

GET /v1/experiences/{id}

Parameters

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

Response 200

NameTypeDescription
experiencerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: experience_not_found
  • 422: validation_failed
  • 429: rate_limited

Save an experience's settings

PATCH /v1/experiences/{id}

Save an experience's settings; when it is on, the save goes live within a minute (a republish that can't go out sets syncError)

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
launcherobject
namestring1 to 120 characters
productFilterbooleanShow only the videos tagged with the product on the page (`<lumieo-experience product>`).
source"tagged" | "picked"Which videos it shows: `tagged` is every video with products, newest first; `picked` is its own `videoIds`, in order.
storyGroupsobject or nullStories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video).
themeIdid or nullNull shows the site's default theme.
videoIdslist of idThe widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list. up to 50 items
viewerobjectHow the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme.
Terminal window
curl -X PATCH https://api.loomieo.com/v1/experiences/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
experiencerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 402: plan_required
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found, feature_not_found, theme_not_found, video_not_found
  • 422: validation_failed
  • 429: rate_limited

Copy an experience's settings, playlist and theme to another site, as a draft

POST /v1/experiences/{id}/copy

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
siteIdrequiredidThe site the copy goes to.
Terminal window
curl -X POST https://api.loomieo.com/v1/experiences/:id/copy \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"siteId":"0193…"}'

Response 200

NameTypeDescription
experiencerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited

The draft's payload as publish would build it, with its warnings and errors

GET /v1/experiences/{id}/draft-payload

Parameters

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

Response 200

NameTypeDescription
draftrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: experience_not_found
  • 422: validation_failed
  • 429: rate_limited
  • 503: stream_unavailable

Write the draft for the site's pk_test_ key and ?version=draft

POST /v1/experiences/{id}/preview

Write the draft for the site's pk_test_ key and ?version=draft; draft errors come back as 422

Parameters

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

Response 200

NameTypeDescription
previewrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found
  • 422: validation_failed
  • 429: rate_limited
  • 503: stream_unavailable

Publish the draft as the next version

POST /v1/experiences/{id}/publish

Publish the draft as the next version; draft errors come back as 422 and nothing is written

Parameters

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

Response 200

NameTypeDescription
publishrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 402: plan_required
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: experience_not_found, feature_not_found
  • 409: publish_in_progress
  • 422: validation_failed
  • 429: rate_limited
  • 503: publish_unavailable, stream_unavailable

Take the experience off the site

POST /v1/experiences/{id}/unpublish

Take the experience off the site (its element collapses); the draft is kept

Parameters

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

Response 200

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

List a site's experiences

GET /v1/sites/{siteId}/experiences

Parameters

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

Response 200

NameTypeDescription
experiencesrequiredlist of object
paginationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden, out_of_scope
  • 404: site_not_found
  • 422: validation_failed
  • 429: rate_limited

Create an experience on a site

POST /v1/sites/{siteId}/experiences

Create an experience on a site; unset settings take the player defaults

Parameters

NameInTypeDescription
siteIdrequiredpathid

Body

NameTypeDescription
namerequiredstring1 to 120 characters
launcherobjectdefault {"type":"carousel"}
productFilterbooleanShow only the videos tagged with the product on the page (`<lumieo-experience product>`). default false
source"tagged" | "picked"Which videos it shows: `tagged` is every video with products, newest first; `picked` is its own `videoIds`, in order. default "tagged"
storyGroupsobject or nullStories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video).
themeIdid or nullNull shows the site's default theme.
videoIdslist of idThe widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list. up to 50 items
viewerobjectHow the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme. default {"type":"feed"}
Terminal window
curl -X POST https://api.loomieo.com/v1/sites/:siteId/experiences \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
experiencerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: site_not_found, theme_not_found, video_not_found
  • 422: validation_failed
  • 429: rate_limited