POST
/
connections
/
storage
from mixpeek import Mixpeek

mixpeek = Mixpeek('API_KEY')

mixpeek.connections.storage.upload(
    connection_id="conn_123",
    file_path="/my/file/path/filename.mp4",
    prefix="movies"
)
{
  "full_url": "<string>",
  "object_key": "<string>",
  "presigned_url": "<string>"
}

The Upload to Storage endpoint allows you to upload files directly to a specified storage bucket, such as AWS S3, using a secure connection. This is essential for applications that manage large files or require direct storage interactions.

All file transfers are handled securely and are optimized for performance using multipart uploads.

Supported storage integrations

Request

connection_id
string
required

The identifier for the storage connection

file
file
required

The file to upload

prefix
string

Option to send the file to a folder inside the bucket.

Ensure that the bucket exists and your connection has the necessary permissions to perform uploads.

from mixpeek import Mixpeek

mixpeek = Mixpeek('API_KEY')

mixpeek.connections.storage.upload(
    connection_id="conn_123",
    file_path="/my/file/path/filename.mp4",
    prefix="movies"
)

Response

full_url
string
required

full url of the object in its bucket

object_key
string

just the object key

presigned_url
string
required

presigned url