Create media upload url
POST/v1/media
Creates an Amazon S3 upload URL that can be used to transfer media to Hootsuite which ensures the media is available when a scheduled message is sent to the social network. Hootsuite will generate thumbnails and key frames and return a unique media identifier that can be passed when creating a message. Subsequent uploads to an upload URL will be accepted by Amazon but immediately deleted by Hootsuite and only the first valid media file uploaded will be used. The MIME type and size provided in this call must match the MIME type and size of the media uploaded.
After requesting an upload URL, make a PUT request to the uploadUrl returned, an example cURL request would look like the following, replace the fields as appropriate:
curl --location --request PUT 'https://hootsuite-video.s3.amazonaws.com/production/12255244_01942650-3d42-42b8-a191-aa84eb45d105.mp4?AWSAccessKeyId=AKIAIM7ASX2JTE3ZFAAA&Expires=1471978770&Signature=b%2B196oEHxySdmE%2FC34ZRL6pXSAI%3D' \
--header 'Content-Type: video/mp4' \
--header 'Content-Length: 383631' \
--data 'SOURCE-MEDIA-LOCATION'
Hootsuite will remove uploaded media 90 days after using the media in a message.
Request
Responses
- 200
- 400
Success
Bad Request