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
| Name | In | Type | Description |
|---|
keys | query | string | With themeId: the theme keys an edit changed (informational; every live experience on the theme is affected). |
tagId | query | id | |
themeId | query | id | |
videoId | query | id | |
curl -X GET https://api.loomieo.com/v1/experiences/affected \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencesrequired | list of object | |
Errors
401: auth_unauthenticated403: forbidden422: validation_failed429: rate_limited
Delete an experience that isn't live
DELETE /v1/experiences/{id}
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X DELETE https://api.loomieo.com/v1/experiences/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found409: experience_live422: validation_failed429: rate_limited
One experience's draft settings
GET /v1/experiences/{id}
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/experiences/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
401: auth_unauthenticated403: forbidden404: experience_not_found422: validation_failed429: 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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
launcher | object | |
name | string | 1 to 120 characters |
productFilter | boolean | Show 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. |
storyGroups | object or null | Stories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video). |
themeId | id or null | Null shows the site's default theme. |
videoIds | list of id | The widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list. up to 50 items |
viewer | object | How the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme. |
curl -X PATCH https://api.loomieo.com/v1/experiences/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
400: bad_request401: auth_unauthenticated402: plan_required403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found, feature_not_found, theme_not_found, video_not_found422: validation_failed429: rate_limited
Copy an experience's settings, playlist and theme to another site, as a draft
POST /v1/experiences/{id}/copy
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
siteIdrequired | id | The site the copy goes to. |
curl -X POST https://api.loomieo.com/v1/experiences/:id/copy \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found, site_not_found422: validation_failed429: rate_limited
The draft's payload as publish would build it, with its warnings and errors
GET /v1/experiences/{id}/draft-payload
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/experiences/:id/draft-payload \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
draftrequired | object | |
Errors
401: auth_unauthenticated403: forbidden404: experience_not_found422: validation_failed429: rate_limited503: 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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X POST https://api.loomieo.com/v1/experiences/:id/preview \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
previewrequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found422: validation_failed429: rate_limited503: 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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X POST https://api.loomieo.com/v1/experiences/:id/publish \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
publishrequired | object | |
Errors
400: bad_request401: auth_unauthenticated402: plan_required403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found, feature_not_found409: publish_in_progress422: validation_failed429: rate_limited503: 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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X POST https://api.loomieo.com/v1/experiences/:id/unpublish \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: experience_not_found422: validation_failed429: rate_limited
List a site's experiences
GET /v1/sites/{siteId}/experiences
Parameters
| Name | In | Type | Description |
|---|
cursor | query | string | |
limit | query | integer | |
sortBy | query | "createdAt" | |
sortDir | query | "asc" | "desc" | |
siteIdrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/sites/:siteId/experiences \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
experiencesrequired | list of object | |
paginationrequired | object | |
Errors
401: auth_unauthenticated403: forbidden, out_of_scope404: site_not_found422: validation_failed429: 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
| Name | In | Type | Description |
|---|
siteIdrequired | path | id | |
Body
| Name | Type | Description |
|---|
namerequired | string | 1 to 120 characters |
launcher | object | default {"type":"carousel"} |
productFilter | boolean | Show 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" |
storyGroups | object or null | Stories circles: group by creator or product, in this order, renamed. Null groups by none (one circle per video). |
themeId | id or null | Null shows the site's default theme. |
videoIds | list of id | The widget's own videos, in order (shown when `source` is `picked`). Replaces the whole list. up to 50 items |
viewer | object | How the viewer opens: `presentation` and `layout`, per breakpoint. Behaviour comes from the theme. default {"type":"feed"} |
curl -X POST https://api.loomieo.com/v1/sites/:siteId/experiences \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
Response 200
| Name | Type | Description |
|---|
experiencerequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: site_not_found, theme_not_found, video_not_found422: validation_failed429: rate_limited