Upload File

Generate presigned URLs that let you upload files directly to our storage and allow your users to download them securely.

Headers

PINNACLE-API-KEYstringRequired

Request

This endpoint expects an object.
contentTypestringRequired
MIME type of your file. <br> Supported file types: - Audio: mp3, mp4, mpeg, ogg, aac, webm, wav, 3gpp, amr - Video: mp4, mpeg, quicktime, webm, 3gpp, H.264, m4v - Image: jpeg, png, gif, bmp, tiff, webp - Documents: pdf, csv, rtf, calendar, vcard
sizeintegerRequired>=1
Size of your file in bytes. Should be less than 100 MB.
namestringOptional
Name of your file.
optionsobjectOptional
Additional configurations for your file.

Response

Successfully uploaded the file.
uploadUrlstring
Presigned URL for uploading your file to storage.
downloadUrlstring
Presigned URL for downloading your file.
metadataobject

Errors