Complete a file upload
POST/v1/files/{id}/complete
Finalizes an upload after the file bytes have been uploaded.
If an optional md5 hex digest is provided, the server validates the checksum before marking the file as completed.
Required scope: files:create
Rate limit category: Write
Path Parameters
id: string
Unique identifier of the file to complete.
Body ParametersJSON
md5: optional string
Optional MD5 hex digest of the uploaded file for checksum verification.
Returns
Complete a file upload
curl https://api.lightfield.app/v1/files/$ID/complete \
-H 'Content-Type: application/json' \
-H 'Lightfield-Version: 2026-03-01' \
-H "Authorization: Bearer $API_KEY" \
-d '{}'{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}Returns Examples
{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}