AI agent guide

Connect n8n to social media

Can n8n post to social media through Postprism? Yes. n8n calls the Postprism REST API with an HTTP Request node and an API key, so any workflow can create drafts or scheduled posts for 6 networks. Common setups turn a new blog post, a form entry or a spreadsheet row into a post that waits for review on the Postprism calendar.

How to connect n8n to Postprism

What you need

  • n8n (cloud or self-hosted)
  • A Postprism Freelancer or Agency plan (API keys are not available on Solo)
  • At least one social account connected in Postprism
  1. 01

    Create an API key

    In Postprism, open the Developer page from the sidebar and choose Generate API key. Name it (for example “n8n”) and copy it. It starts with pp_live_ and is shown only once.

  2. 02

    Add a credential in n8n

    Create a Header Auth credential with the name Authorization and the value Bearer followed by your key.

    Header Auth
    Authorization: Bearer pp_live_…
  3. 03

    Add an HTTP Request node

    Method POST, URL below, authentication Header Auth with your credential, body JSON. Give each platform its own text in platform_content; that is what gets published. Leave out scheduled_at to create a draft.

    POST /api/v1/posts
    POST https://studio.postprism.app/api/v1/posts
    {
      "base_content": "{{ $json.title }}: {{ $json.link }}",
      "platforms": ["linkedin", "twitter"],
      "platform_content": {
        "linkedin": { "content": "New on the blog: {{ $json.title }} {{ $json.link }}" },
        "twitter": { "content": "{{ $json.title }} {{ $json.link }}" }
      },
      "scheduled_at": "2026-10-16T09:30:00Z"
    }
  4. 04

    Test and activate

    Run the node once. A 201 response returns the new post, and it appears on your Postprism calendar. Then activate the workflow.

What it looks like

You ask

Workflow: RSS Feed Trigger (our blog) → OpenAI node writes a LinkedIn and an X version → HTTP Request creates a Postprism draft.

What happens

Every new article becomes a draft with both versions on the Postprism calendar the morning it is published. The marketer reviews it and schedules it with one click.

See an agent-scheduled week in Postprism

In the walkthrough, the marketer writes one post herself, then asks Claude to plan the follow-ups. They land on the same calendar.

Prompt library

Copy these and change the details for your brand.

Blog to social

RSS Feed Trigger → HTTP Request (create draft for LinkedIn, X and Bluesky).

Form to post

Typeform or Tally submission (customer win) → AI node writes a post → Postprism draft for LinkedIn.

Sheet calendar

Google Sheets trigger (new row with copy, platforms, date) → HTTP Request with scheduled_at.

Weekly report

Schedule Trigger (Monday) → GET /api/v1/analytics → summarise → send to Slack.

API endpoints

GEThttps://studio.postprism.app/api/v1/postsList posts
POSThttps://studio.postprism.app/api/v1/postsCreate a post
PATCHhttps://studio.postprism.app/api/v1/posts/{id}Update a post
DELETEhttps://studio.postprism.app/api/v1/posts/{id}Delete a post
POSThttps://studio.postprism.app/api/v1/mediaUpload media
GEThttps://studio.postprism.app/api/v1/analyticsRead analytics
GEThttps://studio.postprism.app/api/v1/platformsConnected accounts
GEThttps://studio.postprism.app/api/v1/workspacesWorkspaces
Full API reference

Working well with n8n

Draft by default

Leave scheduled_at out of automated workflows until you trust them. Drafts wait on the calendar for a person to schedule.

Use platform_content for real tailoring

Send a version per network in platform_content (for example a short X post and a longer LinkedIn post) instead of the same text everywhere.

Limits to know

  • The agent works inside your Postprism workspace. It can only post to social accounts you have already connected in Postprism; connecting a new account always happens in Postprism, through each network’s own sign-in.
  • Each network’s own rules still apply: Pinterest Pins need an image, TikTok and YouTube need a video, X posts are capped at 280 characters, and Bluesky at 300.
  • Media has to be uploaded with upload_media first (JPEG, PNG, GIF, WebP, MP4 or MOV, up to 10 MB per file). Links to files hosted elsewhere are rejected.
  • A post created without a date is saved as a draft. A post created with scheduled_at is scheduled and publishes automatically, so ask for drafts if you want to review first.
  • The MCP server allows 200 requests per hour per user, which is plenty for planning a month of posts but not for bulk-migrating thousands.

n8n and Postprism: FAQ

Let n8n handle the busywork

Start a 7-day trial, connect your accounts, and add Postprism to your assistant in minutes.