Skip to main content
POST
/
v2
/
upload
/
s3
/
multipart
Initiate Multipart Upload
curl --request POST \
  --url 'https://api.lilt.com/v2/upload/s3/multipart?key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "large-file.zip",
  "type": "application/zip",
  "metadata": {
    "size": 104857600,
    "category": "documents",
    "uuid": "123e4567-e89b-12d3-a456-426614174000",
    "labels": [
      "important",
      "review-needed"
    ]
  }
}
'
{
  "uploadId": "abc123def456",
  "key": "uploads/user123/large-file.zip"
}

Authorizations

key
string
query
required

Body

application/json

Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100).

Single file request: { "filename": "...", "type": "...", "metadata": {...} } Bulk request: [{ "filename": "...", "type": "...", "metadata": {...} }, ...]

A single upload request object, or an array of upload request objects (max 100).

filename
string
required

A file name including file extension.

Example:

"large-file.zip"

type
string
required

The content-type or mime-type of the file to upload.

Example:

"application/zip"

metadata
object

Optional file metadata.

Response

Multipart upload initialization information. Returns a single object for single file requests, or an array of objects for bulk requests.

uploadId
string

Multipart upload ID for subsequent part uploads

Example:

"abc123def456"

key
string

Upload key identifier

Example:

"uploads/user123/large-file.zip"