The Pinterest API is version 5 at https://api.pinterest.com/v5. To post a pin you need an app, an OAuth token with the pins:write and boards:read scopes, a board ID, and a call to POST /v5/pins with a picture by URL. A new app starts with Trial access, which can only write to the sandbox; pins that real people see need Standard access, which Pinterest grants after a review. This page is what we learned building Preflight's Pinterest publishing, which has had Standard access since 25 September 2026.
The steps to post a pin
| Step | What to do |
|---|---|
| 1. Create an app | In Pinterest's developer portal, with a business account |
| 2. OAuth | Authorize with the scopes you need, comma separated |
| 3. Pick a board | GET /v5/boards; every pin needs a board |
| 4. Create the pin | POST /v5/pins with board_id, media_source, title and description |
| 5. Read the result | The response holds the pin ID; the pin is live at once |
Scopes
| Scope | What it allows |
|---|---|
boards:read, boards:write | List and create boards |
pins:read, pins:write | Read and create pins |
boards:read_secret, boards:write_secret | The same for secret boards |
pins:read_secret, pins:write_secret | Pins on secret boards |
user_accounts:read | The account's name and picture |
Two details cost us time. Secret boards are separate scopes: without them a secret board does not appear in the list and a pin to it fails. And the scope list must be comma separated: a space-separated list, as most OAuth providers expect, is answered with invalid_scope.
The pin body
| Field | Limit | Notes |
|---|---|---|
title | 100 characters | Optional, but a pin without one shows none |
description | 800 characters | |
link | One URL | Where a click on the pin goes |
alt_text | 500 characters | Describes the picture |
media_source | One picture or a carousel | image_url with url, or multiple_image_urls with two to five items |
A carousel pin is the same call with source_type: multiple_image_urls and two to five pictures in order. Pinterest fetches each URL itself, so the picture must be reachable from the internet, not on a private network.
Trial access and the sandbox
A new app has Trial access. With it, writes go to api-sandbox.pinterest.com and the pins exist only there; nobody on Pinterest sees them. For production you apply for Standard access, with a short description of the app and usually a video of the flow. A token issued in the sandbox does not work against production: production answers with a bare 401 that looks exactly like an expired token, so if you moved from Trial to Standard, ask users to connect again rather than retrying.
Errors worth handling
- 401 on a token that worked yesterday: expired or revoked; refresh it, and if that fails, the user has to reconnect.
- A scope error: the token was issued without a scope, and no refresh adds it. Reconnect with the full list.
- No board: the account has no board, or none you can see without the secret scopes.
- 429 or an empty body: a rate limit or an edge failure; retry later instead of marking the pin failed.
Without writing the integration
If you want to post pins from a script or an AI agent without your own Pinterest app and review, a scheduler with an API does the OAuth and the board lookup for you. Preflight's REST API and MCP server post pictures and carousels of two to five pictures to Pinterest on every plan, including the free one, and check title, description, link and picture size before the pin goes out. Sizes are on the Pinterest pin size page and scheduling on scheduling Pinterest pins.
From Pinterest's API v5 reference and Preflight's Pinterest adapter, which has had Standard access since 25 September 2026. Read on 26 November 2026.
Questions people ask
- Does Pinterest have an API?
- Yes. The Pinterest API v5 at api.pinterest.com/v5 lets an app with OAuth create pins and boards, read analytics and manage an account's content.
- How do I post a pin with the Pinterest API?
- Get an OAuth token with pins:write and boards:read, choose a board_id, and call POST /v5/pins with media_source (an image_url), a title, a description and an optional link.
- What is Pinterest API Trial access?
- The access a new app starts with. Writes go to the sandbox only, so nobody sees the pins. Standard access, granted after a review, is needed to post to real Pinterest.
- Can the Pinterest API post a carousel?
- Yes. Use media_source with source_type multiple_image_urls and two to five picture URLs in order.
- Why does Pinterest return invalid_scope?
- Usually because the scopes are separated by spaces. Pinterest expects them comma separated, for example boards:read,pins:write.