Claude Code

Zernio for Claude Code

Add the server

Registers Zernio over HTTP. Nothing to install.

then sign in

Run Pinterest from Claude Code

Run Pinterest Ads campaigns, send conversions to the Pinterest Conversions API, read analytics and publish posts on Pinterest, from Claude Code. Claude Code runs in your terminal, so a long platform job can end as a CSV, a markdown report or a script committed to the repo.

  • Pinterest Ads
  • Conversions
  • Analytics
  • Publishing

Join 200,000+ of the world's most ambitious developers and builders

Warner Music Group
Runable
ClickUp
MoFlo
RE/MAX
Readdy
Long jobs from the terminal

A Pinterest Ads audit that ends in a file with Claude Code

Claude Code is a terminal agent. Give it a job that takes many steps, like a week of conversations to sort or every campaign to audit, and it works through Zernio's tools until the job is done, then writes the result to a file you can diff, share or rerun.

  1. 01

    In a terminal, ask Claude Code: "audit every active Pinterest Ads campaign and write what you find to reports/ads-audit.csv".

  2. 02

    It walks the campaigns one by one through Zernio, reading spend, results and cost per result for each ad set, and keeps going until the list is done.

  3. 03

    It writes the CSV and a short reports/ads.md with the pauses and budget moves it suggests. You mark the ones you want.

  4. 04

    It applies only the marked changes, then sends a test event to the Pinterest Conversions API so you know the campaigns still see conversions.

A Pinterest report built by a script

  1. 01

    Ask Claude Code: "pull 90 days of Pinterest analytics into data/Pinterest.csv and tell me what to do more of".

  2. 02

    It reads the numbers through Zernio's analytics tools, one page at a time, and writes every post as a row.

  3. 03

    It adds a summary to reports/social.md, and you can save the prompt so claude -p reruns it next month.

Use cases

How people run Pinterest from Claude Code

Weekly ads audit

Claude Code reads every active Pinterest Ads campaign, writes spend and cost per result to a CSV, and proposes pauses in a markdown file. Nothing changes until you mark the ones to apply.

Scheduled report

A script runs claude -p each Monday. It pulls Pinterest analytics through Zernio, rewrites reports/social.md with the week's numbers, and the change shows up in git as a diff.

Hooked audit log

A PostToolUse hook in .claude/settings.json appends every Zernio call Claude Code makes on Pinterest to a log file, so you can see later what was sent and when.

Setup

Claude Code and Pinterest in 4 steps

Claude Code reaches Pinterest through the Zernio MCP server. No Zernio server to host and no Pinterest developer app of your own.

01

Connect Pinterest

Sign up free and connect a Pinterest account with at least one board in Zernio.

Connect Pinterest

02

Add the server

One command registers Zernio over HTTP.

03

Sign in

Run /mcp, pick zernio and approve in the browser window that opens. No API key to paste.

04

Check it works

Run claude /mcp again and confirm zernio is listed as connected.

Good to know in Claude Code

  • Claude Code asks before each Zernio tool call. Allow the zernio tools in .claude/settings.json once you trust them, so long jobs do not stop for every call.
  • Hooks can run your own command before or after a Zernio tool call, for example to log every reply sent or block a pause outside work hours.
  • claude -p runs a prompt without the interactive session, so a cron job or CI step can rebuild a report on a schedule.
What it can do

What Claude Code can do on Pinterest

Claude Code runs in your terminal, so a long platform job can end as a CSV, a markdown report or a script committed to the repo.

Ads

Claude Code audits every Pinterest Ads campaign in one run and writes spend and cost per result to a CSV before changing anything.

Campaigns and boosted posts on Pinterest Ads, from a separately connected ad account.

Pinterest Ads with Zernio

Conversions

Claude Code sends test events to the Pinterest Conversions API and saves each request and response to a log file you can check later.

Pinterest Conversions API: events sent server-side to your ad account.

Conversions API docs

Analytics

Claude Code pulls Pinterest analytics into CSV files and markdown reports that a cron job can rebuild with claude -p.

Per-pin impressions, saves and clicks, plus daily account impressions, engagements, saves, pin clicks and outbound clicks for the last 89 days.

Publishing

Claude Code turns a changelog or release notes into queued Pinterest posts, last, after the inbox and ads work is done.

  • Image pins: one image per pin
  • Video pins: one video per pin, with a custom cover image or a cover frame picked by time
Prompts

Ask in plain words. Claude Code picks the tools.

Written for how Claude Code works. Copy one, change the details.

Long jobs from the terminal, in Claude Code

Limits

Pinterest rules the agent runs into

Set by Pinterest's API or by Zernio, whichever agent you use. Checked against the Zernio Pinterest docs on December 4, 2026.

  • Every pin needs exactly 1 image or 1 video; there are no text-only pins, carousels or multi-image posts.
  • Send a boardId on every pin, or it lands on whichever board Pinterest returns first.

Connecting Claude Code is free. Its calls bill like the API requests behind them.

Each Pinterest account counts as one connected account. The first 2 connected accounts are free, then $6 per account a month, falling to $1 as you add more.

Frequently Asked Questions

Connect a Pinterest account with at least one board in Zernio first. Then, in Claude Code: add the server and sign in. Run claude /mcp again and confirm zernio is listed as connected.

Not by default. It asks before each tool call until you allow the Zernio tools for the session or in .claude/settings.json, so replies, ad changes and posts wait for your yes.

Yes. claude -p runs a prompt without the interactive session, so cron or a CI job can call it. Allow the Zernio tools it needs in the project settings first, or it will stop to ask.

Yes. Claude Code can hand parts of a job, like batches of conversations or one campaign each, to subagents that run with their own context and report back to the main session.

Wherever you ask: a CSV in data/, a markdown report, a JSON log. They are plain files in your repo, so you can diff them, commit them or pass them to another script.

Yes. Save the prompt as a project slash command in .claude/commands and commit it. Everyone who has added the Zernio server runs the same steps with their own sign-in.

Impressions, saves and clicks per pin, plus daily account metrics covering every pin on the account, including pins published before connecting. Pinterest serves the last 89 days only.

Give Claude Code your Pinterest account

Connect a Pinterest account with at least one board, add Zernio to Claude Code, and ask.

  • Pinterest Ads
  • Conversions
  • Analytics
  • Publishing