Airtable to Pinterest: n8n template that pins approved records
This n8n workflow pins each Airtable record whose Status is Approved to one Pinterest board through PubNio. Title, Description, Link, and Alt text become Pin settings and Image URL the Pin image. A key saved on the record before the request means a rerun returns the first Pin instead of creating another.
What it does.
- Trigger. A Schedule Trigger every 15 minutes searches the table with `{Status} = 'Approved'`.
- Approval. Set Status to Approved. Other records are never read past the search.
- Request. One create request per approved item. Each create carries the item's saved key as
Idempotency-Key, and every request sendsPubNio-Version: 2026-12-02. - Result. The answer is written back to the item; the next runs read the post's status until every destination settles.
Fields: Airtable fields.
The workflow also fills pubnio_key, pubnio_post_id, pubnio_status, pubnio_outcome, pubnio_error, pubnio_sent_at; create them as text fields.
| Field | Type | Use |
|---|---|---|
Status | single select | Approved pins the record. |
Title | text | Up to 100 characters. |
Description | long text | Up to 800 characters. |
Link | URL | Where the Pin leads; HTTPS. |
Alt text | text | Up to 500 characters. |
Image URL | URL | A public HTTPS image. |
Set up.
- Create a PubNio API key. In PubNio, create an API key with the publish scope; it includes read, which the status checks use.
- Import the workflow. Download the JSON and import it into n8n with Import from File. It is checked on n8n 2.50.7.
- Add the PubNio credential. Create a Header Auth credential named PubNio API key with name Authorization and value Bearer followed by the key. Select it on Create post in PubNio, Read post status, Import media, Read media status.
- Fill PubNio settings. Open the PubNio settings node and set workspaceId, pinterestAccountId. pinterestAccountId: The board's account ID from PubNio's list of connected accounts; in PubNio each board is an account.
- Connect Airtable. Add the airtable fields above and the pubnio_ text fields, then select your Airtable credential and the same base and table on Read rows, Save key before sending, Write result to row.
- Run one approved test item. Approve one test item, run the workflow once, and read pubnio_status and pubnio_outcome. Then activate it.
Request.
Empty fields are left out of the settings rather than sent blank. PubNio does not post this network's media from a URL, so the workflow first has PubNio import Image URL, waits for the import to be ready, and sends the media ID it returns.
{
"media": [
{
"mediaId": "aaaaaaaa-1111-4aaa-8aaa-aaaaaaaaaaaa"
}
],
"targets": [
{
"accountId": "66666666-6666-4666-8666-666666666666",
"placement": "pin",
"settings": {
"title": "Spring launch",
"description": "Three ways to style it.",
"link": "https://shop.example.com/spring",
"altText": "A jacket on a hanger"
}
}
]
}
Tested behavior.
The download is imported unchanged into a clean n8n 2.50.7 container, and its node types, versions, parameters, and operations are checked against that release. Then a copy runs with n8n execute. Its PubNio requests and its Code, If, Switch, and Merge nodes run as published. Its trigger and source nodes are simulated by a fake source with the same row shapes, its media wait is cut to one second, and PubNio is a fake API that decodes every request with PubNio's own schemas and checks it with PubNio's own content rules. PubNio's test suite replays every create and validate request the run sent against the real API and requires the same answer. It proves:
- Only approved items are sent to PubNio.
- The key is a hash of the stable row ID, saved on the row with its send time before the request that sends it.
- A lost response (503 after PubNio admitted the post) is resent with the same key and PubNio returns the first post.
- A key with no post ID that was sent 23 hours and 1 minute ago, or has no send time, stops at needs_review instead of being resent.
- A 202 is recorded as queued or scheduled, never as published, until a delivery reports it.
- The Pin targets the configured board with placement pin.
- Title, Link, and Alt text arrive as title, link, and altText in Pinterest settings.
- Image URL is imported and sent as media[0].mediaId; a record without an image is rejected with media_required at targets.0.media, then accepted once the URL is filled.
Recovery.
- When pubnio_error names media_required: Fill Image URL and clear pubnio_status. PubNio stored nothing for the rejected request, so the next run sends the row again.
- When pubnio_error names empty_content: PubNio asks for a title or description on every Pin. Fill Title or Description and clear pubnio_status; nothing was stored, so the next run sends the record again.
- When pubnio_error starts Media import failed: PubNio could not fetch Image URL. Point it at a public HTTPS file, clear pubnio_status, and the next run imports it again.
- When pubnio_status is media_processing: Nothing to do: PubNio is still importing the file, and the next run checks the same import again.
- When pubnio_status is published: pubnio_outcome carries the Pin URL.
Limits.
- One board per workflow; copy it per board.
- One image per Pin. PubNio also accepts a carousel of 2 to 5 images or a video with a cover image, which takes a different media array than this workflow builds.
- A Pin needs a Title or a Description; a record with neither is rejected with empty_content before anything is stored.
- PubNio has no approval step of its own; approval happens in Airtable before n8n calls PubNio.
- The check uses a fake PubNio and fake provider answers, so this page shows no real delivery.
Import it and send one test row.
Connect accounts for free, create an API key, and run the workflow once with one approved item.

