Register media upload
POST {{baseUrl}}/media
Register your intent to upload media
The response includes all of the information needed to upload the media to Pinterest.
To upload the media, make an HTTP POST request (using curl, for example) to uploadurl using the Content-Type header value. Send the media file's contents as the request's file parameter and also include all of the parameters from uploadparameters.
Learn more about video Pin creation.
Request Body
{"media_type"=>"video"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"media_id":"fugiat nisi in non laboris","media_type":"video","upload_url":"https://pinterest-media-upload.s3-accelerate.amazonaws.com/","upload_parameters":{"x-amz-date":"exercitation in ad","x-amz-signature":"consectetur Ut aute ut Lorem","x-amz-security-token":"adipisicing","x-amz-algorithm":"nostrud laboris aliquip ad dolor","key":"amet dolore","policy":"dolore ea nisi","x-amz-credential":"sit pariatur consequat","Content-Type":"multipart/form-data"}}