Skip to content

Videos API

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

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
statusquery"uploading" | "processing" | "ready" | "failed"
Terminal window
curl -X GET https://api.loomieo.com/v1/videos \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Start 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

NameTypeDescription
sizeBytesrequiredintegerThe file's exact size; TUS needs it up front. 1 to 524288000
titlerequiredstring1 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.
Terminal window
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

NameTypeDescription
uploadrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, site_not_found
  • 422: validation_failed
  • 429: rate_limited
  • 502: stream_upstream_error
  • 503: stream_unavailable

Delete 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

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

Response 200

NameTypeDescription
deletionrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: video_not_found
  • 409: video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 503: publish_unavailable, stream_unavailable

One video, with its processing status

GET /v1/videos/{id}

Parameters

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

Response 200

NameTypeDescription
videorequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: video_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename 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

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
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
Terminal window
curl -X PATCH https://api.loomieo.com/v1/videos/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
videorequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, site_not_found, video_not_found
  • 409: video_not_ready, video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 502: stream_upstream_error
  • 503: stream_unavailable

Upload 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

NameInTypeDescription
idrequiredpathid
languagerequiredpath"sv" | "en"

Body

NameTypeDescription
vttrequiredstringup to 10485760 characters
Terminal window
curl -X PUT https://api.loomieo.com/v1/videos/:id/captions/:language \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"vtt":"…"}'

Response 200

NameTypeDescription
videorequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: video_not_found
  • 409: video_not_ready, video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 502: stream_upstream_error
  • 503: stream_unavailable

Ask Stream for auto-captions

POST /v1/videos/{id}/captions/{language}/generate

Ask Stream for auto-captions (English); the track is `inprogress` until ready

Parameters

NameInTypeDescription
idrequiredpathid
languagerequiredpath"en"Stream auto-captions; it can't generate Swedish.
Terminal window
curl -X POST https://api.loomieo.com/v1/videos/:id/captions/:language/generate \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
videorequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: video_not_found
  • 409: video_not_ready, video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 502: stream_upstream_error
  • 503: stream_unavailable

A video's consent attestations, newest first

GET /v1/videos/{id}/consents

Parameters

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

Response 200

NameTypeDescription
consentsrequiredlist of object
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: video_not_found
  • 422: validation_failed
  • 429: rate_limited

Attest the creator's consent

POST /v1/videos/{id}/consents

Attest the creator's consent; appended, so a correction is a new attestation

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
creatorNamerequiredstring1 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"
Terminal window
curl -X POST https://api.loomieo.com/v1/videos/:id/consents \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"creatorName":"…"}'

Response 200

NameTypeDescription
consentrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: agreement_not_found, video_not_found
  • 409: video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 503: consent_storage_unavailable

Store 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

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X PUT https://api.loomieo.com/v1/videos/:id/consents/agreement \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
agreementrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: video_not_found
  • 409: video_shared
  • 422: validation_failed
  • 429: rate_limited
  • 503: consent_storage_unavailable

Report 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

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

Response 200

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