---
title: "Pinterest register media upload API: POST /media"
description: "When PubNio calls Pinterest's register media upload request, POST /media: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Pinterest register media upload API: POST /media

PubNio calls Pinterest's `POST /media` (`media/create`) to register a video upload with Pinterest. Values checked 2026-12-05.

## How PubNio calls it

- Publishing: [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) (unless it saves a draft), [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish), or [`POST /api/v1/posts/{postId}/targets/{targetId}/retry`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/targets/{targetId}/retry) starts the delivery.
- PubNio sends `media_type` `video` and gets back a media ID, an upload URL, and upload parameters.
- The video then goes to that URL as a form POST with the parameters first and the file last, and only when the URL is Pinterest's S3 upload bucket. The bearer token never goes to S3.

| Value                  | Official value               | Source                                                                                                             | Checked    |
| ---------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | ---------- |
| Video size             | 2GB                          | [Pinterest Business Help: Review ad specs](https://help.pinterest.com/en/business/article/pinterest-product-specs) | 2026-12-05 |
| Video length (minutes) | 5; another official page: 15 | [Pinterest Help: Review Pin specs](https://help.pinterest.com/en/article/review-pin-specs)                         | 2026-12-05 |

## Scopes

- The pinned spec lists 2 scopes, all required: `pins:read` and `pins:write`.
- PubNio's Pinterest sign-in requests every one of them.
- Before a delivery makes this call, PubNio checks that the account granted `pins:write`.

## Errors

PubNio has no Pinterest error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`media/create` in the pinned spec, revision `5c6c1fc9a6dbdee1df537f3f805f09262c496917`.

Refreshed by hand: no weekly change record.

## Limits

- A registration without an upload URL or parameters is refused rather than retried.

## Sources

- [Pinterest REST API OpenAPI description](https://github.com/pinterest/api-description/blob/5c6c1fc9a6dbdee1df537f3f805f09262c496917/v5/openapi.json)
- [Pinterest Business Help: Review ad specs](https://help.pinterest.com/en/business/article/pinterest-product-specs), checked 2026-12-05
- [Pinterest Help: Review Pin specs](https://help.pinterest.com/en/article/review-pin-specs), checked 2026-12-05

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [Pinterest rate limits and quota](https://pubnio.com/docs/providers/pinterest/quota/)

Source: https://pubnio.com/docs/providers/pinterest/operations/media-create/index.mdx
