Skip to main content

Pinterest API v5

Call Pinterest's own API v5 with the Pinterest account connected to a profile: board and section management, Pin details and analytics, account analytics, trends, followers and verified websites. You send Pinterest's path, query parameters and JSON body; Upload-Post adds the connection's token and answers with Pinterest's response in data.

GET    /api/uploadposts/pinterest/api/{endpoint}?user=my-profile
POST /api/uploadposts/pinterest/api/{endpoint}?user=my-profile
PATCH /api/uploadposts/pinterest/api/{endpoint}?user=my-profile
DELETE /api/uploadposts/pinterest/api/{endpoint}?user=my-profile&confirm=true
  • Authentication: API Key — Authorization: Apikey <YOUR_API_KEY>
  • {endpoint} is the path from Pinterest's API v5 reference without the leading slash, for example user_account/analytics, boards/1234567890/pins or trends/keywords/US/top/growing.
  • user (query) is the profile whose Pinterest connection is used.
  • Every other query parameter, and the JSON body of POST and PATCH, is Pinterest's own. Each one is checked against Pinterest's published API description before anything is sent: an unknown parameter answers 400 invalid_parameter, a body that does not match answers 400 invalid_body.
  • Business Access: where Pinterest accepts ad_account_id, pass it to act on the business account that owns that ad account.

Examples​

Account analytics for the last 30 days:

curl "https://api.upload-post.com/api/uploadposts/pinterest/api/user_account/analytics?user=my-profile&start_date=2026-10-25&end_date=2026-11-23&metric_types=IMPRESSION,SAVE,PIN_CLICK" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"endpoint": "/user_account/analytics",
"cached": false,
"data": {
"all": {
"summary_metrics": { "IMPRESSION": 48210, "SAVE": 912, "PIN_CLICK": 1380 },
"daily_metrics": [ { "date": "2026-10-25", "data_status": "READY", "metrics": { "IMPRESSION": 1502, "SAVE": 31, "PIN_CLICK": 44 } } ]
}
}
}

Trending keywords in the United States:

curl "https://api.upload-post.com/api/uploadposts/pinterest/api/trends/keywords/US/top/growing?user=my-profile&limit=20" \
-H 'Authorization: Apikey your-api-key-here'

Create a section on a board:

curl -X POST "https://api.upload-post.com/api/uploadposts/pinterest/api/boards/1234567890/sections?user=my-profile" \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{"name": "Autumn recipes"}'

Delete a board (deletes need confirm=true):

curl -X DELETE "https://api.upload-post.com/api/uploadposts/pinterest/api/boards/1234567890?user=my-profile&confirm=true" \
-H 'Authorization: Apikey your-api-key-here'

A write answers {"success": true, "endpoint": "...", "data": {...}} with Pinterest's status (200 or 201).

What you can call​

Only these Pinterest operations are accepted; anything else answers 404 pinterest_endpoint_not_supported, and a known path with another method answers 405 pinterest_method_not_supported with the accepted methods. Every one of them works with the permissions a Pinterest connection grants Upload-Post (boards:read, boards:write, pins:read, pins:write, user_accounts:read). The OpenAPI spec (readPinterestApi) lists the permissions of each one.

AreaOperations
Boards and sectionsGET/POST /boards, GET/PATCH/DELETE /boards/{board_id}, GET /boards/{board_id}/pins, GET/POST /boards/{board_id}/sections, PATCH/DELETE /boards/{board_id}/sections/{section_id}, GET /boards/{board_id}/sections/{section_id}/pins
Pins and mediaGET /pins, GET /pins/{pin_id}, GET /pins/{pin_id}/analytics, GET /media, GET /media/{media_id}
AccountGET /user_account, /user_account/analytics, /user_account/analytics/top_pins, /user_account/analytics/top_video_pins, /user_account/businesses, /user_account/followers, /user_account/following, /user_account/following/boards, /user_account/websites, /user_account/websites/verification, GET /users/{username}/interests/follow
TrendsGET /trends/keywords/{region}/top/{trend_type}, /trends/topics/featured, /trends/editorial_articles, /trends/product_categories/trending, /trends/product_categories/details

Not available here: ads, Business Access administration and OAuth. To create, save or delete Pins use Upload Photos or Upload Video, Save a Pin and Unpublish, which count toward your plan and appear in the upload history.

Caching and limits​

  • Reads are cached per Pinterest account: analytics and trends for 1 hour, everything else for 60 seconds. The response says "cached": true when it came from the cache; add refresh=true to skip it. A write through this route clears the cached reads of that account.
  • Reads count toward a daily limit per Upload-Post account. Over it the call answers 429 pinterest_daily_limit_reached with a Retry-After header. Pinterest's own rate limit answers 429 pinterest_rate_limited.
  • A write that got no answer from Pinterest answers 502 pinterest_write_outcome_unknown: the change may or may not have been applied and it is never retried for you. Read the object before sending it again.

Permissions​

Each operation needs the Pinterest permissions Pinterest lists for it (boards:read, pins:read, user_accounts:read...). If the connection did not grant one, the call answers 403 without calling Pinterest, with missing_scopes:

  • pinterest_reconnect_required: reconnect Pinterest to grant it.
  • pinterest_scope_not_enabled: Upload-Post does not ask Pinterest for that permission yet, so reconnecting does not help.

Errors​

Statuserror_codeMeaning
400missing_required_fields, invalid_parameter, invalid_bodyThe request does not match Pinterest's description of the operation.
400confirmation_requiredA delete without confirm=true.
400account_not_linkedThe profile has no Pinterest account connected.
400pinterest_rejectedPinterest refused the request.
401pinterest_reauth_requiredThe Pinterest connection expired: reconnect it.
403pinterest_reconnect_required, pinterest_scope_not_enabled, pinterest_forbiddenMissing permission (see above), or Pinterest refused access.
404pinterest_endpoint_not_supported, pinterest_not_foundNot an operation of this route, or Pinterest has no such object.
405pinterest_method_not_supportedThe path exists with other methods (methods).
429pinterest_daily_limit_reached, pinterest_rate_limitedDaily limit or Pinterest rate limit (Retry-After).
502pinterest_upstream_error, pinterest_unavailable, pinterest_write_outcome_unknownPinterest failed or did not answer.
503pinterest_guard_unavailableUpload-Post could not check its limits; try again shortly.