Skip to main content
POST
/
libraries
/
{libraryId}
/
uploads
/
s3
/
multipart
Initialize Multipart Upload
curl --request POST \
  --url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/uploads/s3/multipart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "demo_reel.mp4",
  "type": "video/mp4",
  "metadata": {
    "libraryId": "lib_123",
    "folderId": "fold_456",
    "source": "dashboard",
    "tags": [
      "launch",
      "promo"
    ]
  }
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

libraryId
string
required

Unique identifier of the library.

Body

application/json
filename
string
required

The original name of the file being uploaded, including its extension (e.g., 'video.mp4').

type
string
required

MIME type of the file (e.g., 'video/mp4', 'image/jpeg'). Used to validate and assign proper upload handling.

metadata
object
required

Additional metadata to associate the uploaded file with a specific library, folder, or tagging context.

Response

The response is of type object.