tools

Create Upload URL

Generate signed upload (expires in 2 hours) and download URLs for a file (expires in 1 hour).

See the Upload page for native Python and Typescript SDKs.

post/tools/uploadUrl

Request

  • Base URL: https://www.trypinnacle.dev/api
  • URL: https://www.trypinnacle.dev/api/tools/uploadUrl
  • Auth: API key in header PINNACLE-API-Key

Request body

contentTypestring required

The MIME type of the file.

Supported types are audio/basic, audio/L24, audio/mp4, audio/mpeg, audio/mpg, audio/mp3, audio/ogg, audio/aac, audio/vndrn-realaudio, audio/vndwave, audio/3gpp, audio/3gpp2, audio/ac3, audio/webm, audio/amrnb, audio/amr, video/mpeg, video/mp4, video/quicktime, video/webm, video/3gpp, video/3gpp2, video/3gpptt, video/H261, video/H263, video/H2631998, video/H2632000, video/H264, video/m4v, video/mpeg4, video/webm, image/jpeg, image/gif, image/png, image/gif, image/bmp, image/tiff, image/webp, text/vcard, text/xvcard, text/csv, text/rtf, text/richtext, text/calendar, text/directory, application/ogg, application/pdf, application/vcard, application/vndapple.pkpass.

sizeinteger required

The size of the file in bytes. Should be less than 100 MB.

namestring required

The name of the file.

Response

Successfully generated upload and download URLs

uploadstring

The URL to upload the file.

downloadstring

The URL to download the file.

Changes

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