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":"pariatur in","media_type":"video","upload_url":"https://pinterest-media-upload.s3-accelerate.amazonaws.com/","upload_parameters":{"x-amz-date":"consequat cupidatat aute","x-amz-signature":"dolore ea aliqua","x-amz-security-token":"non cupidatat occaecat consecte","x-amz-algorithm":"culpa proident dolor exercitation","key":"minim eu","policy":"sunt magna occaecat enim","x-amz-credential":"tempor non dolore ea","Content-Type":"multipart/form-data"}}