Generate Signed URL for File Upload
Media Management
Generate Signed URL for File Upload
Generate a pre-signed URL for secure file upload to storage. This endpoint provides a temporary URL that allows direct upload of media files without exposing credentials.
POST
Generate Signed URL for File Upload
Documentation Index
Fetch the complete documentation index at: https://docs.pictory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Generate a pre-signed URL that enables secure, direct upload of media files to storage without exposing your credentials. The signed URL is temporary and automatically expires after 24 hours.You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.
How to Generate a Signed URL and Upload a File
Step 1: Generate a Signed URL
Request a signed URL from the API to obtain temporary upload credentials.Step 2: Upload Your File
Use the signed URL to upload your file directly to storage via a PUT request.Request
Headers
API key for authentication (starts with
pictai_)Body Parameters
Name of the file to be uploaded (e.g.,
sample1.mp3)MIME type of the file. Common types include:
audio/mpeg- MP3 audio filesvideo/mp4- MP4 video filesimage/jpeg- JPEG imagesimage/png- PNG imagesaudio/wav- WAV audio files
Response
Indicates whether the request was successful
Important Notes
Signed URL Expiration: The signed URL automatically expires after 24 hours (86400 seconds). Upload your file promptly after receiving the URL to avoid expiration.
Content-Type Matching: The
Content-Type header in your upload request must exactly match the contentType specified when generating the signed URL, otherwise the upload will fail.