Skip to main content
POST
Generate Signed URL for File Upload

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

string
required
API key for authentication (starts with pictai_)

Body Parameters

string
required
Name of the file to be uploaded (e.g., sample1.mp3)
string
required
MIME type of the file. Common types include:
  • audio/mpeg - MP3 audio files
  • video/mp4 - MP4 video files
  • image/jpeg - JPEG images
  • image/png - PNG images
  • audio/wav - WAV audio files

Response

boolean
Indicates whether the request was successful
object

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.
After successfully uploading your file, use the permanent url field from the response to access or reference the file in future API calls. Store this URL for later use.

Additional Resources

For more information on working with pre-signed URLs, refer to the AWS S3 Pre-signed URL documentation.