Platforms / Pinterest

Pinterest API

Create image, carousel and video Pins on a chosen board and manage boards.

At a glance

Platform id
pinterest
Connects
account
Sign-in
OAuth: the user approves on the platform's own page
Post types
Image Pin · Video Pin · Carousel (2-5 images)

Capabilities

What Pinterest supports here
PublishingYes
SchedulingYes
CommentsNo
Direct messagesNo
MentionsNo
ReviewsNo
AnalyticsPartly

Required on every post

  • An image or video.
  • targets[].board_id: there is no default board (validation.board_id_required).

Options

Send these in platform_data.pinterest on the post, or flat in a target's own platform_data (the target's keys win). See Publishing.

platform_data options for Pinterest
KeyTypeWhat it does
titlestringPin title, up to 100 characters. Default: the post's top-level title.
linkURLDestination link, http or https, up to 2,048 characters.
alt_textstringAlt text, up to 500 characters. Default: the first media item's alt.
cover_image_urlURLVideo Pins: cover image. Default: the first frame.
descriptionstringPin description instead of the post text, up to 800 characters.

Limits

  • Description 800 characters.
  • One image (up to 20 MB), 2 to 5 images as a carousel, or one video up to 100 MB (Pinterest's upload cannot be streamed).
  • This server caps each board at 1,000 Pins a day.

Text over the limit fails validation before anything is sent. The caps of this server are explained in Rate limits.

Good to know

  • The board goes on the target as board_id (page_id is accepted as another name). Putting it in platform_data answers validation.use_board_id; sending both board_id and page_id answers validation.duplicate_board_id.
  • board_id on a target of another platform answers validation.use_page_id.
  • Access tokens are renewed automatically; disconnecting here does not remove the app from the person's Pinterest settings.
  • Published Pins cannot be edited: delete the Pin and publish a new one. Deleting a board deletes every Pin on it.
  • Analytics are the account's profile counts; Pins have no metrics here.

Publish with the API

curl https://api.zaynstack.com/v1/posts \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from SocialWire",
    "media": [{ "type": "image", "source_type": "url", "source": "https://example.com/file.jpg" }],
    "targets": [{ "account_id": "<Pinterest account id>", "board_id": "<board id>" }],
    "publish_now": true
  }'

An operation Pinterest cannot do answers 501 resource.not_supported. Agents can do the same through the MCP server.

Connection errors

A connection that fails comes back to your redirect_uri with status=error, error=<code> and error_description, or as the error of the connect call. All codes: Connect accounts.

Connection error codes for Pinterest
CodeMeaning
account.already_linkedThe brand already holds a different account on this platform, or the account belongs to another brand while lock_accounts_to_brand is on.
billing.brands_limitNo brand_id was sent, so a new brand was needed, and the plan has no room for another brand.

Webhook events

Every platform sends the post.* and account.* events. Pinterest sends no inbox events.

Webhook events and their payloads

Not supported yet

  • Comments, DMs, mentions and webhooks: Pinterest's API has none.
  • Editing published Pins.
  • Per-Pin metrics.

Developer setup (self-hosting)

Only the operator of this server does this, once. Users then just click Connect.

  1. developers.pinterest.com → Connect app (needs a Pinterest business account).
  2. Add the Callback address below as a redirect URI.
  3. Put the app ID and secret into PINTEREST_APP_ID / PINTEREST_APP_SECRET.
Callback address
https://api.zaynstack.com/api/connect/pinterest/callback
Webhook address
https://api.zaynstack.com/api/hooks/pinterest
Server variables
PINTEREST_APP_ID, PINTEREST_APP_SECRET
Developer console
Pinterest developer console

Permissions requested

  • boards:read
  • boards:write
  • pins:read
  • pins:write
  • user_accounts:read

When a reconnect grants fewer permissions than before, an account.updated event with change permissions_reduced is sent. Accounts connected before a permission was added keep working but must reconnect to use the features it unlocks.

Before anyone can connect (review)

  1. Trial access is granted first: Pins you create are visible only to you.
  2. Request Standard access with a demo video of the connect → pin flow.

Typical wait: Trial: instant; Standard: 1-3 weeks. Until then the app works for your own accounts and the testers you add in the console.

Other platforms

Free to start

Your next post can go everywhere at once.

No card. Connect a profile, send a post, see it land.