Pinterest API: how to post a pin, scopes and access

    Post a pin with Pinterest API v5: OAuth scopes, board ID, POST /v5/pins, carousels, and why Trial access writes only to the sandbox. From our build.

    Updated · 3 min read · Prices and limits checked against the vendors' own pages and APIs on that date.

    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

    StepWhat to do
    1. Create an appIn Pinterest's developer portal, with a business account
    2. OAuthAuthorize with the scopes you need, comma separated
    3. Pick a boardGET /v5/boards; every pin needs a board
    4. Create the pinPOST /v5/pins with board_id, media_source, title and description
    5. Read the resultThe response holds the pin ID; the pin is live at once

    Scopes

    ScopeWhat it allows
    boards:read, boards:writeList and create boards
    pins:read, pins:writeRead and create pins
    boards:read_secret, boards:write_secretThe same for secret boards
    pins:read_secret, pins:write_secretPins on secret boards
    user_accounts:readThe 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

    FieldLimitNotes
    title100 charactersOptional, but a pin without one shows none
    description800 characters
    linkOne URLWhere a click on the pin goes
    alt_text500 charactersDescribes the picture
    media_sourceOne picture or a carouselimage_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.

    Write it once. Let the rules be our problem.

    Preflight checks every post against each network's rules before it leaves, then publishes it to twelve networks. Free plan, no card.