Automate Pinterest with Codex
Create pins, target boards, add destination links, and control visual branding with dominant colors — all from the command line or through your AI agent.
Please make sure there is always a human in the loop.
Pin to Pinterest in Seconds
Terminal
# Install the skill
npx skills add gitroomhq/postiz-agent
# Set your API key
export POSTIZ_API_KEY=your_api_key
# Find your Pinterest integration
postiz integrations:list
# Upload an image
IMAGE=$(postiz upload design.jpg)
IMAGE_URL=$(echo "$IMAGE" | jq -r '.path')
# Create a Pinterest pin
postiz posts:create \
-c "Beautiful home office setup ideas for remote workers" \
-m "$IMAGE_URL" \
-s "2025-01-15T10:00:00Z" \
--settings '{"board":"board-id","title":"Home Office Ideas","link":"https://example.com/home-office"}' \
-i "your-pinterest-integration-id"Pinterest-Specific Features
Pin Creation
Create rich pins with images, descriptions, titles, and destination links. Drive traffic from Pinterest to your website.
Board Targeting
Pin directly to specific boards. Organize your content by topic, campaign, or audience segment for maximum reach.
Link Pins
Attach destination URLs to your pins. Every click drives traffic directly to your website, product page, or blog.
Visual Branding
Set a dominant color for your pins to maintain brand consistency. Control how your content looks in Pinterest feeds.
Image Uploads
Upload high-quality images directly via the CLI. Supports JPG, PNG, WEBP, and other common image formats.
Scheduled Pinning
Schedule pins for optimal times when your audience is most active. Build a consistent pinning cadence automatically.
How It Works
Find Your Pinterest Integration
List your connected accounts and grab your Pinterest integration ID. You can also fetch available settings to see what options are supported.
Discovery
# List all integrations
postiz integrations:list
# Filter for Pinterest
postiz integrations:list | jq \
'.[] | select(.identifier=="pinterest")'
# Get Pinterest settings schema
postiz integrations:settings <pinterest-id>Upload Your Image
Upload your pin image to get a public URL. Pinterest requires high-quality images for best results. Supports JPG, PNG, WEBP, and more.
Upload
# Upload image and extract URL
RESULT=$(postiz upload design.jpg)
IMAGE_URL=$(echo "$RESULT" | jq -r '.path')
echo $IMAGE_URL
# https://uploads.postiz.com/your-image.jpgCreate Your Pin
Schedule a Pinterest pin with your image, description, board, title, destination link, and optional dominant color for brand consistency.
Pin Creation
postiz posts:create \
-c "Inspiring workspace design tips" \
-m "$IMAGE_URL" \
-s "2025-03-01T09:00:00Z" \
--settings '{
"board": "your-board-id",
"title": "Workspace Design Tips",
"link": "https://example.com/tips",
"dominant_color": "#682EE1"
}' \
-i "pinterest-id"Pinterest Settings Reference
Every Pinterest pin accepts these platform-specific settings via the --settings flag.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "pinterest" |
board | string | Board ID to pin to |
title | string | Pin title (max 100 characters) |
link | string | Destination URL when the pin is clicked |
dominant_color | string | Hex color code for visual branding (e.g. "#FF6B35") |
Common Configurations
Copy-paste these settings for common Pinterest pinning scenarios.
Simple Pin with Link
settings.json
{
"board": "home-decor-board-id",
"title": "10 Modern Living Room Ideas",
"link": "https://example.com/living-room-ideas"
}Branded Pin with Color
settings.json
{
"board": "brand-pins-board-id",
"title": "New Product Launch",
"link": "https://example.com/product",
"dominant_color": "#FF6B35"
}Minimal Pin (Board Only)
settings.json
{
"board": "inspiration-board-id"
}Blog Post Pin
settings.json
{
"board": "blog-posts-board-id",
"title": "How to Automate Social Media in 2025",
"link": "https://example.com/blog/automate-social-media",
"dominant_color": "#682EE1"
}What is Codex?
Codex is OpenAI's autonomous coding agent that handles software engineering tasks — writing features, fixing bugs, and answering questions about your codebase. It works via CLI and IDE integrations, and can execute shell commands like Postiz.
CLI & IDE Native
Codex runs from your terminal or IDE. It executes shell commands directly, making Postiz integration seamless — no extra configuration needed.
Autonomous Execution
Codex works in sandboxed cloud environments, autonomously running commands, reading output, and chaining multi-step workflows like social media posting.
Parallel Tasks
Run multiple Codex tasks simultaneously. Schedule posts to different platforms in parallel while Codex handles other coding work.
How Postiz Works with Codex
Codex discovers Postiz when you install it globally. It reads the SKILL.md to understand available commands and can autonomously chain them for social media workflows.
- ✓Install Postiz Agent globally with npx skills add
- ✓Codex reads the SKILL.md and learns all Postiz commands
- ✓POSTIZ_API_KEY must be set in environment
- ✓Codex executes commands in sandboxed environments
- ✓Works alongside your coding tasks in parallel
Install Postiz
# Install the Postiz skill
npx skills add gitroomhq/postiz-agent
# Set your API key
export POSTIZ_API_KEY=your_api_key
# Codex discovers Postiz commands
# from the SKILL.md automatically
codex "list my social media integrations"Pinterest Pinning with Codex
Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.
CLI Workflow
Terminal and IDE integration
Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.
Codex CLI
$ codex "Post to Pinterest about our
new feature launch, schedule for
tomorrow at 9am"
Codex: I'll handle that.
Running: postiz integrations:list
Found your Pinterest integration.
Running: postiz posts:create ...
Done! Your post is scheduled.
Post ID: abc-123Parallel Tasks
Multiple tasks at once
Codex can handle multiple tasks in parallel. Schedule posts to different platforms while it works on other coding tasks simultaneously.
Codex Parallel Tasks
# Run multiple posting tasks in parallel
$ codex "Schedule a post about our
launch to X for tomorrow 9am" &
$ codex "Write a LinkedIn article
about our new feature and schedule
for tomorrow noon" &
$ codex "Fix the bug in auth.ts"
# All three tasks run simultaneouslyWhy Codex + Postiz for Pinterest
Codex's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for Pinterest workflows.
- ✓CLI-native — runs from your terminal or IDE
- ✓Autonomous execution in sandboxed environments
- ✓Parallel task support — post while coding
- ✓Reads SKILL.md for automatic command discovery
- ✓Cross-post to Pinterest + other platforms in a single session
- ✓Powered by OpenAI's most capable models
SKILL.md (auto-discovered)
---
name: postiz
description: Social media automation
CLI for scheduling posts across
30+ platforms including Pinterest
metadata:
codex:
requirements:
env:
- POSTIZ_API_KEY
binaries:
- postiz
---
# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>
# Pinterest Settings
board (required), title,
link (destination URL),
dominant_color (hex branding)Also Works with Claude Code
Postiz Agent works as a CLI tool with any AI agent that can execute shell commands — including Anthropic's Claude Code.
Claude Code
by Anthropic
Claude reads the SKILL.md file to learn all available Postiz commands, then autonomously discovers your Pinterest integration, uploads your image, selects the right board, and creates the pin with your link and branding.
Claude Code
> Pin my new product image to the
"Spring Collection" board with a link
to the product page, use brand color
Claude will automatically run:
postiz integrations:list
postiz upload ./product-image.jpg
postiz posts:create \
-c "New spring collection!" \
-m "uploaded-image-url" \
-s "2025-03-02T09:00:00Z" \
--settings '{"board":
"spring-collection-id",
"title":"Spring Collection",
"link":"https://shop.example.com
/spring",
"dominant_color":"#682EE1"}' \
-i "pinterest-id"Pinterest + Other Platforms
Schedule the same image to Pinterest and other platforms in a single command. Each platform gets its own settings.
Terminal
# Pin to Pinterest and post to Instagram simultaneously
postiz posts:create \
-c "Check out our latest design! #design #inspiration" \
-m "$IMAGE_URL" \
-s "2025-03-01T09:00:00Z" \
--settings '{
"board": "design-inspiration-id",
"title": "Latest Design Showcase",
"link": "https://example.com/designs",
"dominant_color": "#682EE1"
}' \
-i "pinterest-id,instagram-id"
# Batch schedule a week of Pinterest pins
for day in 1 2 3 4 5; do
postiz posts:create \
-c "Design tip #$day for the week" \
-m "tip${day}-image-url" \
-s "2025-03-0${day}T10:00:00Z" \
--settings '{"board":"design-tips-id","title":"Design Tip '$day'","link":"https://example.com/tips/'$day'"}' \
-i "pinterest-id"
doneStart pinning to Pinterest
Install Postiz Agent and automate your Pinterest content strategy with AI-powered scheduling and publishing.
Ready to get started?
Grow your social media presence with Postiz.
Schedule, analyze, and engage with your audience.
Open-source social media scheduling tool