Skip to content

Pinterest Posting API

Create Pins on any board with a title, description, link and alt text, straight from your app.

  • Pins with title, description, link and alt text
  • Pick the board per Pin
  • Accounts connect through Pinterest's login
  • A result per platform, retries for the ones that fail
post.tsnode
const pk = new Postkey(process.env.POSTKEY_API_KEY);

await pk.posts.create({
  content: "A small-space desk setup that actually works",
  mediaItems: [
    {
      type: "image",
      url: "https://cdn.example.com/desk.jpg"
    }
  ],
  platforms: [
    {
      platform: "pinterest",
      accountId: "acc_pin_987",
      platformSpecificData: {
        boardId: "board_5521",
        title: "Small-space desk setup",
        link: "https://example.com/desk-setup",
        altText: "Wooden desk with a monitor arm in a narrow room"
      }
    }
  ],
  publishNow: true
});
  • Pinterestpublished

1 call · result per platform

Your first Pinterest post in three steps

  1. 1

    Connect Pinterest

    Your customer signs in through Pinterest's own login. You get an account ID, never a password.

  2. 2

    Get the account id

    List connected accounts. The id of the new account is the accountId you post with.

  3. 3

    Post

    Send the post to /v1/posts with that accountId. The Pinterest result comes back in the response and by webhook.

Every Pinterest format, one endpoint

Pick a format to see the exact request and what comes back. Options that only make sense on Pinterest sit under "pinterest".

An image Pin on a board, linking back to your page.

RequestREST
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6  "content": "A small-space desk setup that actually works",7  "mediaItems": [8    {9      "type": "image",10      "url": "https://cdn.example.com/desk.jpg"11    }12  ],13  "platforms": [14    {15      "platform": "pinterest",16      "accountId": "acc_pin_987",17      "platformSpecificData": {18        "boardId": "board_5521",19        "title": "Small-space desk setup",20        "link": "https://example.com/desk-setup",21        "altText": "Wooden desk with a monitor arm in a narrow room"22      }23    }24  ],25  "publishNow": true26}
Response

200 · published

Live on Pinterest. If it had failed, its credits would come back.

{
  "success": true,
  "postId": "post_3k9d2",
  "status": "published",
  "platforms": [
    {
      "platform": "pinterest",
      "accountId": "acc_pin_987",
      "success": true,
      "platformPostUrl": "https://www.pinterest.com/pin/…"
    }
  ]
}

Everything you need for Pinterest posting

  • Checked against Pinterest's rules

    Before anything is sent, Postkey checks it against Pinterest's published limits:

    Title
    Up to 100 characterssource
    Description
    Up to 800 characterssource
    Board
    Every Pin is saved to a boardsource
  • Board per Pin

    Every Pin lands on a board. Pass the board ID and Postkey checks the account can save to it.

  • Links that send traffic

    Each Pin can link to a page. That's most of why people post to Pinterest from an app.

  • Alt text

    Send alt text with the image so the Pin is readable with a screen reader.

  • Pinterest login

    Accounts connect through Pinterest's own login. You never handle a password.

  • Boards listed for you

    A helper call lists the boards on a connected account, so your users pick one instead of pasting an ID.

Also for Pinterest

SchedulingPinterest Scheduling APIQueue Pins for later on any board, in any time zone.See the page

Built in

Connect, publish, get told

Your users connect Pinterest through a connect link. If Pinterest fails inside a multi-network post, the others still go out and the Pinterest credits come back.

Works with your stack

  • Your code

    Node and Python SDKs with the same calls, or plain REST from anything that speaks HTTP.

    • Node
    • Python
    • {}REST
    Read the docs
  • No-code tools

    Call the REST API from an HTTP step in n8n, Make or Zapier. One request posts to every network.

    • n8n
    • Make
    • Zapier
    Postkey with n8n
  • AI agents & MCP

    The MCP server lets Claude, Cursor and other agent tools publish and schedule posts, and read the results.

    • MCP server
    About the MCP server

Pinterest posting questions

Something not here? Email hello@postkey.dev.

What can I post to Pinterest?

Image Pins with a title, description, destination link and alt text, saved to a board you choose.

Do I need a board ID?

Yes. Pinterest saves every Pin to a board. Postkey lists the boards for a connected account so you can pick one.

Can a Pin link to my site?

Yes. Set link and the Pin sends people to that page.

Are title and description checked?

Yes, against Pinterest's published limits listed above, before the Pin is sent.

Can I post to Pinterest and Instagram together?

Yes. List both account IDs in one request. Each gets its own result.

Can I schedule Pinterest posts instead?

Yes. Add scheduledFor to the same request. See the Pinterest Scheduling API page for details.

Post to Pinterest for every customer.

Get a key, connect an account, send the request above.