tools > file

Upload File

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

post/tools/files/upload

Request

  • Base URL: https://api.pinnacle.sh
  • URL: https://api.pinnacle.sh/tools/files/upload
  • Auth: API key in header PINNACLE-API-KEY

Request body

contentTypestring required

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
sizeinteger required

Size of your file in bytes. Should be less than 100 MB.

namestring

Name of your file.

Response

Successfully uploaded the file.

uploadUrlstring required

Presigned URL for uploading your file to storage.

downloadUrlstring required

Presigned URL for downloading your file.

Changes

No recorded changes to this operation across all 1 revision of this API.