post mate · docs

n8n integration

Two nodes, one credential. Schedule posts, generate captions and react to events — all from an n8n workflow.

The post mate n8n integration gives you two native nodes:

NodeTypeWhat it does
Post MateActionCall any /v1 endpoint — schedule posts, generate AI captions, read analytics, manage webhooks
Post Mate TriggerWebhookStart a workflow the instant a post publishes, fails, gets approved, or crosses an engagement threshold

The nodes are published as n8n-nodes-post-mate on npm.

Installation

n8n Cloud or Desktop

  1. Open Settings → Community Nodes
  2. Click Install
  3. Enter n8n-nodes-post-mate
  4. Restart n8n when prompted

Self-hosted

npm install n8n-nodes-post-mate
# restart n8n

Credentials

  1. In post mate, go to Settings → API and click New key
  2. Choose scope Full (REST API) — the key starts with pm_live_…
  3. Copy it (shown once)
  4. In n8n, add a new credential → Post Mate API
  5. Paste the key into API Key
  6. Leave Base URL as https://post-mate.com (change only for self-hosted post mate)
  7. Click Test credential — you should see a green tick

One credential works across every Post Mate and Post Mate Trigger node in all your workflows.

Post Mate node — quick start

  1. Add a Post Mate node to any workflow
  2. Select your credential
  3. Choose Resource → Post, Operation → Get Many
  4. Run — you'll see your scheduled posts as JSON items

Resources and operations

Post

OperationWhat it does
Schedule / CreateCreate a post (publishes immediately if no date set)
GetFetch one post by ID
Get ManyList posts, optionally filtered by status
CancelDelete a draft or scheduled post
ApproveApprove a pending_approval post
Request ChangesSend a post back to draft with an optional note

Schedule / Create fields:

FieldRequiredNotes
Typetext / image / video / story
CaptionMain caption, up to 10 000 chars
Social Account IDsComma-separated UUIDs — get them from Account → Get Many
Scheduled AtISO 8601. Leave blank to publish now.
TimezoneDefaults to UTC
Media Keys (JSON)Array from the Media → Upload operation

Caption (AI)

OperationWhat it does
GenerateReturns 5 caption variants for a topic
HashtagsSuggests ranked hashtags for a caption or topic
TranslateTranslates a caption while preserving voice

AI operations share the same monthly quota as the post mate dashboard. Rate limit: 20 requests per minute per API key.

Account

OperationWhat it does
Get ManyList all connected social accounts with their IDs

Run this once to find the account UUIDs you need for scheduling.

Analytics

OperationWhat it does
GetFetch engagement metrics for the last N days (default 30, max 180)

Media

OperationWhat it does
UploadUpload a binary file (max 50 MB) and get back a key for use in posts

Connect a Read Binary File, HTTP Request, or Google Drive node before Post Mate to supply the binary data.

Webhook

OperationWhat it does
ListList all registered webhook endpoints
CreateRegister a new webhook (idempotent by URL + events)
Test (Ping)Send a test ping and see the response immediately
DeleteRemove a webhook

Metric Alert

OperationWhat it does
ListList all threshold rules
CreateCreate a rule that fires post.metric_threshold once
DeleteRemove a rule

Post Mate Trigger — quick start

  1. Add a Post Mate Trigger node at the start of a workflow
  2. Select your credential
  3. Pick one or more Events (e.g. Post Published, Post Failed)
  4. Activate the workflow
  5. The node automatically registers itself in post mate via POST /v1/webhooks
  6. When the workflow is deactivated, the webhook is removed automatically

Trigger events

EventWhen it fires
Post PublishedA post successfully publishes to a network
Post FailedA post fails after all retry attempts
Post ScheduledA post enters the scheduled queue
Post ApprovedA pending-approval post is approved
Post Changes RequestedA reviewer sends a post back to draft
Post Metric ThresholdA post crosses a configured metric alert

HMAC verification

The trigger node verifies the X-PostMate-Signature header automatically on every incoming request. Requests with an invalid signature or a timestamp older than 5 minutes are rejected with 401 and do not trigger the workflow.

To disable verification during development behind an isolated network, open the node's Options and enable Skip Signature Verification.

Workflow recipes

Blog post → all networks

RSS Feed → Post Mate (Caption: Generate) → Post Mate (Post: Schedule)

Failure → Slack alert

Post Mate Trigger (post.failed) → Slack (send message)

Approve posts from Slack

Post Mate Trigger (post.changes_requested)
  → Slack (ask for approval)

Slack Trigger (button clicked: "Approve")
  → Post Mate (Post: Approve)

Daily metrics → Google Sheets

Schedule Trigger (08:00 every day)
  → Post Mate (Analytics: Get)
  → Google Sheets (append row)

Viral alert → notify team

Post Mate Trigger (post.metric_threshold)
  → Slack (notify #content with post link + metric value)

Troubleshooting

Credential test fails with 401 The key is invalid or has been revoked. Create a new one under Settings → API. Make sure the scope is Full (REST API), not MCP-only.

Credential test fails with 402 Your trial ended or your subscription is inactive. Upgrade at Settings → Billing.

Trigger node doesn't fire Check that the workflow is Active (toggle in the top-right). If it's active but events aren't arriving, use Webhook → Test (Ping) in a Post Mate action node to verify the endpoint responds.

Duplicate webhooks in Settings → API The trigger node deduplicates by URL + event list on every activation, so duplicates shouldn't accumulate. If you see stale entries, delete them manually or via Webhook → Delete.

Rate limit errors (429) Post Mate allows 60 API requests per minute per key (20/min for AI operations). Add a Wait node between high-volume steps or split large batches across multiple executions.

Plan

The n8n integration uses the same API key and plan as the REST API: Pro plan or an active trial. One key works for n8n, MCP, and direct REST calls — rotate it any time from Settings → API.

On this page