Upload, caption and manage videos. All requests need a secret key; see REST API for keys, errors and limits.
List the organization's videos, newest first GET /v1/videos
Parameters Name In Type Description cursorquery stringlimitquery integersortByquery "createdAt"sortDirquery "asc" | "desc"statusquery "uploading" | "processing" | "ready" | "failed"
curl -X GET https://api.loomieo.com/v1/videos \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description paginationrequired objectvideosrequired list of object
Errors 401: auth_unauthenticated403: forbidden422: validation_failed429: rate_limitedStart an upload POST /v1/videos/uploads
Start an upload: a one-time Stream TUS URL (≤ 500 MB, ≤ 3 min, ~30 min to start) and the video in `uploading`
Body Name Type Description sizeBytesrequired integerThe file's exact size; TUS needs it up front. 1 to 524288000 titlerequired string1 to 200 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.
curl -X POST https://api.loomieo.com/v1/videos/uploads \
-H " Authorization: Bearer $LUMIEO_KEY " \
-H " Content-Type: application/json " \
-d ' {"sizeBytes":1,"title":"…"} '
Response 200 Name Type Description uploadrequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: location_not_found, site_not_found422: validation_failed429: rate_limited502: stream_upstream_error503: stream_unavailableDelete a video DELETE /v1/videos/{id}
Delete a video: out of its playlists, republish the live experiences that showed it, then off Stream after a grace period
Parameters Name In Type Description idrequired path id
curl -X DELETE https://api.loomieo.com/v1/videos/:id \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description deletionrequired object
Errors 401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: video_not_found409: video_shared422: validation_failed429: rate_limited503: publish_unavailable, stream_unavailableOne video, with its processing status GET /v1/videos/{id}
Parameters Name In Type Description idrequired path id
curl -X GET https://api.loomieo.com/v1/videos/:id \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description videorequired object
Errors 401: auth_unauthenticated403: forbidden404: video_not_found422: validation_failed429: rate_limitedRename a video, pick its poster frame PATCH /v1/videos/{id}
Rename a video, pick its poster frame (poster needs `ready`) or move it to another scope
Parameters Name In Type Description idrequired path id
Body Name Type Description posterPctnumberPoster frame as a fraction of the duration. 0 to 1 scopeobjectMove it to everyone, a site or a store. A scoped member can move it only within their scope. titlestring1 to 200 characters
curl -X PATCH https://api.loomieo.com/v1/videos/:id \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description videorequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: location_not_found, site_not_found, video_not_found409: video_not_ready, video_shared422: validation_failed429: rate_limited502: stream_upstream_error503: stream_unavailableUpload a WebVTT caption track PUT /v1/videos/{id}/captions/{language}
Upload a WebVTT caption track (≤ 10 MB), e.g. Swedish, which Stream can't generate
Parameters Name In Type Description idrequired path idlanguagerequired path "sv" | "en"
Body Name Type Description vttrequired stringup to 10485760 characters
curl -X PUT https://api.loomieo.com/v1/videos/:id/captions/:language \
-H " Authorization: Bearer $LUMIEO_KEY " \
-H " Content-Type: application/json " \
Response 200 Name Type Description videorequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: video_not_found409: video_not_ready, video_shared422: validation_failed429: rate_limited502: stream_upstream_error503: stream_unavailableAsk Stream for auto-captions POST /v1/videos/{id}/captions/{language}/generate
Ask Stream for auto-captions (English); the track is `inprogress` until ready
Parameters Name In Type Description idrequired path idlanguagerequired path "en"Stream auto-captions; it can't generate Swedish.
curl -X POST https://api.loomieo.com/v1/videos/:id/captions/:language/generate \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description videorequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: video_not_found409: video_not_ready, video_shared422: validation_failed429: rate_limited502: stream_upstream_error503: stream_unavailableA video's consent attestations, newest first GET /v1/videos/{id}/consents
Parameters Name In Type Description idrequired path id
curl -X GET https://api.loomieo.com/v1/videos/:id/consents \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description consentsrequired list of object
Errors 401: auth_unauthenticated403: forbidden404: video_not_found422: validation_failed429: rate_limitedAttest the creator's consent POST /v1/videos/{id}/consents
Attest the creator's consent; appended, so a correction is a new attestation
Parameters Name In Type Description idrequired path id
Body Name Type Description creatorNamerequired string1 to 200 characters agreementKeystringFrom `PUT /videos/{id}/consents/agreement` 1 to 300 characters creatorEmailemailup to 320 characters creatorHandlestring1 to 100 characters endsOndateLast day the rights hold; open-ended if absent rights"own_site"Use on the merchant's own site default "own_site"
curl -X POST https://api.loomieo.com/v1/videos/:id/consents \
-H " Authorization: Bearer $LUMIEO_KEY " \
-H " Content-Type: application/json " \
Response 200 Name Type Description consentrequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: agreement_not_found, video_not_found409: video_shared422: validation_failed429: rate_limited503: consent_storage_unavailableStore a signed agreement PDF PUT /v1/videos/{id}/consents/agreement
Store a signed agreement PDF (≤ 10 MB) in the EU bucket, sweeping the video's unattested ones over a day old; attest with its key
Parameters Name In Type Description idrequired path id
curl -X PUT https://api.loomieo.com/v1/videos/:id/consents/agreement \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description agreementrequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: video_not_found409: video_shared422: validation_failed429: rate_limited503: consent_storage_unavailableReport that the browser finished the TUS upload POST /v1/videos/{id}/uploaded
Report that the browser finished the TUS upload; the video moves to `processing`
Parameters Name In Type Description idrequired path id
curl -X POST https://api.loomieo.com/v1/videos/:id/uploaded \
-H " Authorization: Bearer $LUMIEO_KEY "
Response 200 Name Type Description videorequired object
Errors 400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope404: video_not_found422: validation_failed429: rate_limited