Register media upload
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 upload_url 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 upload_parameters.
Learn more about video Pin creation.
Request body
Response
The request has succeeded.
Example response
{
"media_id": "12345",
"upload_parameters": {
"Content-Type": "multipart/form-data",
"key": "uploads/11/aa/22/3:video:203014033110991560:5212123920968240771",
"policy": "eyJleHBpcmF0aW9uIjoiMj..==",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "ASIA6QZJ64OPIKV7FRVX/20220127/us-east-1/s3/aws4_request",
"x-amz-date": "20220127T185143Z",
"x-amz-security-token": "IQoJb3JpZ2luX2VjEJr...==",
"x-amz-signature": "fcd6309a6aaee213348666a72abed8b44552a43acb6b340e8e1b288d21a5fe92"
},
"upload_url": "https://pinterest-media-upload.s3-accelerate.amazonaws.com/"
}Changes
Changed in 3 of the 29 revisions of this API.213
- ▲
the
media_typerequest property type/format changed fromstring/to/request-property-type-changed
- ○
the request required property
media_typebecame not write-onlyrequest-required-property-became-not-write-only
- ○
removed
subschema #1from the response bodyallOflist for the response status201response-body-all-of-removed
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the optional property
upload_parametersto the response with the201statusresponse-optional-property-added
- ○
added the optional property
upload_urlto the response with the201statusresponse-optional-property-added
- ○
added the required property
media_idto the response with the201statusresponse-required-property-added
- ○
added the required property
media_typeto the response with the201statusresponse-required-property-added
- ○
added the success response with the status
200response-success-status-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type/format changed from
/toobject/for status201response-body-type-changed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○