Markets, their websites and publishable keys. All requests need a secret key; see REST API for keys, errors and limits.
List the active organization's sites with their publishable keys
GET /v1/sites
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/sites \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
paginationrequired | object | |
sitesrequired | list of object | |
Errors
401: auth_unauthenticated403: forbidden422: validation_failed429: rate_limited
Create a site on a catalog connection
POST /v1/sites
Create a site on a catalog connection (owner); it gets one pk_live_ and one pk_test_ key
Body
| Name | Type | Description |
|---|
currencyrequired | string | ISO 4217 code, e.g. SEK. |
localerequired | string | BCP 47 language tag, e.g. sv or en-GB. |
namerequired | string | 1 to 120 characters |
actions | list of object or null | Product card buttons on this market's widgets. Null: the catalog's default (view product, plus add to cart when the shop has a cart). |
allowedOrigins | list of string | up to 50 items |
connectionId | id or null | The catalog source; defaults to the organization's built-in Lumieo catalog. |
defaultThemeId | id or null | |
feedUrl | uri or null | This site's catalog feed (feed connections). |
market | string or null | Market id within the connection (Centra). |
curl -X POST https://api.loomieo.com/v1/sites \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"currency":"…","locale":"…","name":"…"}'
Response 200
| Name | Type | Description |
|---|
siterequired | object | |
Errors
400: bad_request401: auth_unauthenticated402: plan_limit_reached403: auth_csrf_rejected, forbidden, out_of_scope404: connection_not_found422: validation_failed429: rate_limited
Delete a site
DELETE /v1/sites/{id}
Delete a site (owner): its publishable keys stop working and its listings go. A site stores still use can't be deleted (site_in_use, with storeCount)
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X DELETE https://api.loomieo.com/v1/sites/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
siterequired | object | |
Errors
401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: site_not_found409: site_in_use422: validation_failed429: rate_limited
One site with its publishable keys
GET /v1/sites/{id}
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/sites/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
siterequired | object | |
Errors
401: auth_unauthenticated403: forbidden404: site_not_found422: validation_failed429: rate_limited
Update a site
PATCH /v1/sites/{id}
Update a site (owner): name, language, origins; new origins apply to its keys at once, the currency can't change
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
actions | list of object or null | Product card buttons on this market's widgets. Null: the catalog's default (view product, plus add to cart when the shop has a cart). |
allowedOrigins | list of string | up to 50 items |
currency | string | Fixed at create: any other value answers site_currency_locked. |
defaultThemeId | id or null | |
feedUrl | uri or null | This site's catalog feed (feed connections). |
locale | string | BCP 47 language tag, e.g. sv or en-GB. |
market | string or null | Market id within the connection (Centra). |
name | string | 1 to 120 characters |
curl -X PATCH https://api.loomieo.com/v1/sites/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
siterequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: site_not_found409: site_currency_locked422: validation_failed429: rate_limited
Set what the screens of a site's stores show
PUT /v1/sites/{id}/assignment
Set what the screens of a site's stores show; a store, group or screen of their own still wins. 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/sites/: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, playlist_not_found, site_not_found422: validation_failed429: rate_limited
Rotate a site's pk_live_ or pk_test_ key
POST /v1/sites/{id}/keys/{environment}/rotate
Rotate a site's pk_live_ or pk_test_ key (owner); the old key keeps working for 7 days
Parameters
| Name | In | Type | Description |
|---|
environmentrequired | path | "live" | "test" | |
idrequired | path | id | |
curl -X POST https://api.loomieo.com/v1/sites/:id/keys/:environment/rotate \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
siterequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: site_not_found422: validation_failed429: rate_limited
The site's setup checklist
GET /v1/sites/{id}/setup
The site's setup checklist: products, allowed origins, embed seen, a live experience
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X GET https://api.loomieo.com/v1/sites/:id/setup \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
setuprequired | object | |
Errors
401: auth_unauthenticated403: forbidden404: site_not_found422: validation_failed429: rate_limited
Switch a site's catalog source
POST /v1/sites/{id}/source
Switch a site's catalog source (owner): its listings and product snapshots are removed, and live experiences show no products until re-tagged
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
connectionIdrequired | id or null | The new source; null is the built-in Lumieo catalog. |
feedUrl | uri or null | This site's catalog feed (feed connections). |
market | string or null | Market id within the connection (Centra). |
curl -X POST https://api.loomieo.com/v1/sites/:id/source \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"connectionId":"…"}'
Response 200
| Name | Type | Description |
|---|
sourceSwitchrequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: connection_not_found, site_not_found422: validation_failed429: rate_limited