Skip to content

Tags API

Products on videos. All requests need a secret key; see REST API for keys, errors and limits.

List product tags, optionally for one video or one product

GET /v1/tags

Parameters

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

Response 200

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

Tag a video with a product, optionally for a span

POST /v1/tags

Tag a video with a product, optionally for a span (startMs–endMs); one tag per video and product

Body

NameTypeDescription
productIdrequiredid
videoIdrequiredid
endMsinteger or null
startMsinteger or null
Terminal window
curl -X POST https://api.loomieo.com/v1/tags \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"productId":"0193…","videoId":"0193…"}'

Response 200

NameTypeDescription
tagrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found, video_not_found
  • 409: tag_exists, tag_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Tag several videos with several products

POST /v1/tags/bulk

Tag several videos with several products (whole video); existing pairs are kept

Body

NameTypeDescription
productIdsrequiredlist of idup to 10 items
videoIdsrequiredlist of idup to 100 items
Terminal window
curl -X POST https://api.loomieo.com/v1/tags/bulk \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"productIds":[],"videoIds":[]}'

Response 200

NameTypeDescription
tagsrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found, video_not_found
  • 409: tag_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Set a video's products in one go

POST /v1/tags/replace

Set a video's products in one go: unlisted tags go, new ones are added, spans are updated

Body

NameTypeDescription
productsrequiredlist of objectup to 10 items
videoIdrequiredid
Terminal window
curl -X POST https://api.loomieo.com/v1/tags/replace \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"products":[],"videoId":"0193…"}'

Response 200

NameTypeDescription
tagsrequiredlist of object
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found, video_not_found
  • 422: validation_failed
  • 429: rate_limited

Remove a product tag

DELETE /v1/tags/{id}

Parameters

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

Response 200

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

One product tag, with its live experience count

GET /v1/tags/{id}

Parameters

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

Response 200

NameTypeDescription
tagrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: tag_not_found
  • 422: validation_failed
  • 429: rate_limited

Change a tag's span

PATCH /v1/tags/{id}

Change a tag's span; null clears a bound

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
endMsinteger or null
startMsinteger or null
Terminal window
curl -X PATCH https://api.loomieo.com/v1/tags/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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