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 exampleuser_account/analytics,boards/1234567890/pinsortrends/keywords/US/top/growing.user(query) is the profile whose Pinterest connection is used.- Every other query parameter, and the JSON body of
POSTandPATCH, is Pinterest's own. Each one is checked against Pinterest's published API description before anything is sent: an unknown parameter answers400invalid_parameter, a body that does not match answers400invalid_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.
| Area | Operations |
|---|---|
| Boards and sections | GET/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 media | GET /pins, GET /pins/{pin_id}, GET /pins/{pin_id}/analytics, GET /media, GET /media/{media_id} |
| Account | GET /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 |
| Trends | GET /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": truewhen it came from the cache; addrefresh=trueto 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
429pinterest_daily_limit_reachedwith aRetry-Afterheader. Pinterest's own rate limit answers429pinterest_rate_limited. - A write that got no answer from Pinterest answers
502pinterest_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
| Status | error_code | Meaning |
|---|---|---|
| 400 | missing_required_fields, invalid_parameter, invalid_body | The request does not match Pinterest's description of the operation. |
| 400 | confirmation_required | A delete without confirm=true. |
| 400 | account_not_linked | The profile has no Pinterest account connected. |
| 400 | pinterest_rejected | Pinterest refused the request. |
| 401 | pinterest_reauth_required | The Pinterest connection expired: reconnect it. |
| 403 | pinterest_reconnect_required, pinterest_scope_not_enabled, pinterest_forbidden | Missing permission (see above), or Pinterest refused access. |
| 404 | pinterest_endpoint_not_supported, pinterest_not_found | Not an operation of this route, or Pinterest has no such object. |
| 405 | pinterest_method_not_supported | The path exists with other methods (methods). |
| 429 | pinterest_daily_limit_reached, pinterest_rate_limited | Daily limit or Pinterest rate limit (Retry-After). |
| 502 | pinterest_upstream_error, pinterest_unavailable, pinterest_write_outcome_unknown | Pinterest failed or did not answer. |
| 503 | pinterest_guard_unavailable | Upload-Post could not check its limits; try again shortly. |