Complete a large upload

POST/v1/files/{id}/complete

After the PUT, check what arrived (size and real file type) and make the file usable as an input.

Needs the files scope.

Path

FieldTypeDescription
idrequiredstringThe file id (file_…) from POST /v1/files/uploads.

Example

curl -X POST https://www.luce.space/api/v1/files/file_Jl2EkOMeVu6EXhts/complete \
  -H "Authorization: Bearer $LUCE_API_KEY"

Response

HTTP 200.

{
  "id": "file_Jl2EkOMeVu6EXhts",
  "object": "file",
  "status": "ready",
  "kind": "video",
  "content_type": "video/mp4",
  "bytes": 48213744,
  "width": null,
  "height": null,
  "name": "walkthrough.mp4",
  "url": "https://media.luce.space/teams/…/api-files/file_Jl2EkOMeVu6EXhts.mp4",
  "created_at": "2026-11-24T10:14:55.010Z",
  "expires_at": "2026-12-24T10:14:55.010Z"
}

Errors

codeWhen
not_foundNo such job, file or webhook for this studio.
invalid_inputAn input image or video can't be used (unreachable, too large, wrong type, or an upload not completed).
Complete a large upload — Luce API reference