Pinterest API client for managing pins, boards, and media. Built on aux4/curl.
aux4 aux4 pkger install community/pinterest
You need a Pinterest developer account and an OAuth2 access token. Create an app at Pinterest Developers, then generate an access token (it starts with pina_).
Login with your Pinterest access token:
aux4 pinterest login --token pina_YOUR_ACCESS_TOKEN
The token is saved to .oauth/pinterest.json. Add .oauth/ to your .gitignore.
Check authentication status:
aux4 pinterest status
Logout:
aux4 pinterest logout
By default, commands use the production API (https://api.pinterest.com). To use the sandbox environment, either pass --apiUrl or set the PINTEREST_API_URL environment variable:
# Per command
aux4 pinterest pin list --apiUrl https://api-sandbox.pinterest.com
# Or set once for all commands
export PINTEREST_API_URL=https://api-sandbox.pinterest.com
aux4 pinterest pin list
aux4 pinterest pin create --body '{
"title": "My Pin",
"description": "A great pin",
"board_id": "123456",
"media_source": {
"source_type": "image_url",
"url": "https://example.com/image.jpg"
}
}'
aux4 pinterest pin list
aux4 pinterest pin list --pageSize 10
aux4 pinterest pin get 123456789
aux4 pinterest pin update 123456789 --body '{"title":"Updated Title"}'
aux4 pinterest pin delete 123456789
aux4 pinterest pin save 123456789 --body '{"board_id":"987654"}'
aux4 pinterest pin analytics 123456789 --startDate 2026-01-01 --endDate 2026-01-31
aux4 pinterest board create --body '{"name":"My Board","description":"A collection","privacy":"PUBLIC"}'
aux4 pinterest board list
aux4 pinterest board get 123456
aux4 pinterest board update 123456 --body '{"name":"New Name"}'
aux4 pinterest board delete 123456
aux4 pinterest board pins 123456
aux4 pinterest board section create 123456 --body '{"title":"My Section"}'
aux4 pinterest board section list 123456
aux4 pinterest board section update --boardId 123456 789012 --body '{"title":"New Title"}'
aux4 pinterest board section delete --boardId 123456 789012
aux4 pinterest board section pins --boardId 123456 789012
aux4 pinterest search pins "summer recipes"
aux4 pinterest search boards "travel"
aux4 pinterest user info
aux4 pinterest user analytics --startDate 2026-01-01 --endDate 2026-01-31
aux4 pinterest user followers
aux4 pinterest media upload --body '{"media_type":"video"}'
aux4 pinterest media list
aux4 pinterest media get abc123
| Variable | Description | Default | |----------|-------------|---------| | PINTEREST_API_URL | Pinterest API base URL | https://api.pinterest.com |