How to post to X (Twitter) from n8n

To post to X from n8n without creating an X developer account, install the community node n8n-nodes-postwire, connect your X account by signing in on X's own page, and set Post → Publish with Networks set to X. The workflow then publishes a post of up to 280 characters with up to 4 images or one video, or a thread of up to 26 posts, and can schedule it. n8n's built-in X node works with your own X app: n8n's docs list "Create an X developer account" as a prerequisite, with a Client ID and a Client Secret, and X bills that app for each request. With PostWire, X is part of the paid plans from $19 a month, which include X credits: a post uses 1 credit, a post with a link 10, and each image or video adds 1.

Typical trigger: a new article in an RSS feed, a release on GitHub, an approved row in a sheet. The same node sends that news to LinkedIn, Bluesky or Telegram in the same step, each with its own text.

Updated . Written from PostWire's own code; vendor prices read on Nov 26, 2026. Live networks: TikTok, Instagram, YouTube, LinkedIn (personal profiles), Facebook Pages, Bluesky, Mastodon, Telegram, Discord, and X on paid plans.

Post to X from n8n, step by step

About eight minutes. X is on PostWire's paid plans; the node, the API and the other nine networks are on the free plan too.

  1. Create a free PostWire account

    Open postwire.io/dashboard.html, type your email and press Create my free account. PostWire emails you a link to confirm the address; connecting accounts and publishing unlock once it is confirmed. No password and no card (free plan: 1 business, 10 posts a month, 5 AI drafts a day (about 20 a month), 2 networks per post, 3 scheduled posts at a time — every network connects free, no card).

  2. Pick a paid plan

    X is on the paid plans: Starter ($19 a month, 30 X credits), Pro ($29, 150) and Agency ($99, 600). The credits come back every month, and when a busy month needs more you add a pack: 80 credits for $5 or 340 credits for $20. See the plans.

  3. Connect X by signing in

    In the dashboard open Accounts and press Connect on X. X's own page opens and shows "Sensitive permissions requested · This app is not affiliated with X", as it does for every outside app: tick I trust this app, then Authorize app. The permission covers posting and uploading media. There is no developer portal, no app to create and no callback URL to paste. Reading your @handle right after connecting uses 1 credit.

  4. Copy your API key

    In the dashboard, open API & MCP and press Copy key on the API key card. It is sent as Authorization: Bearer pw_live_… (the X-API-Key header also works). Keep it server-side.

  5. Install the PostWire node

    In n8n: Settings → Community nodes → Install, enter n8n-nodes-postwire (version 0.5.1 on npm on Nov 26, 2026), then add a PostWire API credential with the key and press Test, which checks the key at once. Where community nodes cannot be installed, the HTTP Request node further down does the same job.

  6. Configure Post → Publish

    Networks: X. Content: Smart Distribute: Write a Native Post per Network, with the Idea from the previous node (e.g. {{ $json.title }}), or Same Text on Every Network to send your own words. Media: None, or URL / Binary File for an image or a video. For a thread, open Options: X Thread lists posts 2 to 26, in order, and X Reply adds one reply under the last post, the place for the link. Dry Run checks every text and length without publishing.

  7. Or one HTTP Request node

    POST to the REST API with header Authorization: Bearer pw_live_…. per_platform.x.thread takes the posts after the first (up to 25), and options.x.reply one reply under the last of them:

    POST https://postwire.io/api/post
    Authorization: Bearer pw_live_…
    Content-Type: application/json
    
    {
      "platforms": ["x"],
      "per_platform": { "x": {
        "text": "{{ $json.hook }}",
        "thread": ["{{ $json.point_1 }}", "{{ $json.point_2 }}"]
      } },
      "options": { "x": { "reply": "Full article: {{ $json.link }}" } },
      "idempotency_key": "{{ $json.guid }}"
    }
  8. Read the result, or schedule it

    The result carries the post's link on X. To publish later, use Post → Schedule with When: At a Specific Time or In the Next Free Queue Slot (or POST /api/schedule with run_at).

With an RSS trigger, put the item's guid in Options → Idempotency Key (or idempotency_key): PostWire refuses a second post with the same key for 24 hours, so a re-run never posts the same article twice. A whole workflow, from the trigger to the post, is laid out in n8n social media automation; an AI agent in n8n can use the same account through the X MCP server.

Three ways to post to X from n8n

n8n's own documentation, X's pricing page and each vendor's page, read on Nov 26, 2026.

RouteWhat you set up for XThreads from the workflowWhat X posting costs
PostWireSign in to X once on X's own page; no developer accountYes — X Thread option, up to 26 posts, plus an X ReplyIn the plan: $19/mo with 30 X credits a month
n8n's built-in X nodeAn X developer account and your own app: Client ID, Client Secret, callback URLOne "Create or reply a tweet" operation per postX bills your app per request: $0.015 a post, $0.200 with a URL
Upload-Post (HTTP Request)HTTP Request to its upload APINot listed on its n8n pageNot listed on its n8n page

Checked on Nov 26, 2026 (2026-11-26) on each vendor's own pricing or docs page, linked in the first column and below. Monthly billing in USD unless noted. "Not listed" means we could not find it on their page, not that it is missing.

Where PostWire is ahead

  • No X developer account. You sign in on X's page and authorize; there is no app to create and no Client ID to copy. n8n's X credentials page lists "Create an X developer account" as a prerequisite.
  • A whole thread from one node: up to 26 posts in X Thread, chained by PostWire, with the link in an X Reply under the last one. n8n's X node lists one "Create or reply a tweet" operation.
  • One bill: X posting is part of the plan, counted in credits (a post uses 1 credit, a post with a link 10, and each image or video adds 1). X bills a developer app per request.
  • Checked as X counts before the first post is sent: a post over the limit stops the node and nothing is published.
  • The post is written in the node for X from the previous step's data, or sent word for word.
  • Nine more networks from the same node, each with its own version of the news: TikTok, Instagram, YouTube, LinkedIn, Facebook Pages, Bluesky, Mastodon, Telegram and Discord.
Sources, all read on Nov 26, 2026:

What a post to X from n8n uses

X bills every post made through its API, so PostWire counts your X posts in credits: a post uses 1 credit, a post with a link 10, and each image or video adds 1. Each post of a thread, and the reply under it, counts by the same rule.

  • A text post: 1 credit.
  • Text and 1 image: 2 credits.
  • Text with a link: 10 credits.
  • A 5-post thread: 5 credits.
  • A 5-post thread and an X Reply with the link: 15 credits.

What the plans include:

  • 30 credits a month on Starter, 150 on Pro, 600 on Agency, and up to 5, 20 and 60 X posts a day; every post of a thread counts as one.
  • When the credits run out, nothing is sent to X: the node stops with "Not enough X credits" and says where to top up, and a pack (80 credits for $5 or 340 credits for $20) raises the balance.
  • Credits come back when X says no: a post X refuses does not use up your allowance.

Source: PostWire's X pricing code, read Nov 26, 2026. X's own per-request rates are in X API pricing for posting.

X threads from n8n

  • Up to 26 posts in one chain: the first post plus up to 25 in X Thread (or per_platform.x.thread), each posted as a reply to the one before, so X shows them as one thread. Media stays on the first post.
  • The link goes under the thread: X Reply is one more post, by you, under the last one, up to 280 characters.
  • Checked before anything goes out: every post is measured as X counts it (280 characters, a link counts 23 and an emoji 2). A post over the limit stops the node before the first one is sent, and nothing is published to any network.
  • One step for several networks: the Thread option carries the same chain to Bluesky and Mastodon (up to 10 posts there); X Thread gives X its own, longer one.

Source: the node's options in n8n-nodes-postwire 0.5.1 and PostWire's X code, read Nov 26, 2026.

What n8n's built-in X node asks for

n8n ships an X (Formerly Twitter) node. Its documentation lists the operations: create a direct message; "Create or reply a tweet", delete, search, like and retweet a tweet; and get a user (n8n's X node). The node signs in with an X app that you own. n8n's X credentials page starts with the prerequisite "Create an X developer account", then has you open the developer portal, set the app's permissions to read and write, choose "Web App, Automated App or Bot", paste n8n's redirect URL as the callback and copy a Client ID and a Client Secret into n8n. It adds that with OAuth2 "app rate limits apply".

That app is also what X bills. X's API has, in its own words, "pay-per-usage pricing with no subscriptions": on Nov 26, 2026 creating a post was listed at $0.015 per request, and $0.200 when the post contains a URL (X API pricing). With PostWire there is no X app of your own and no X bill: you sign in to X once, and the posts use the X credits in your plan.

What it does not do

PostWire publishes and schedules your own X posts and threads from n8n. It does not read your timeline or search X, it does not like, repost, follow or send direct messages, it does not post polls, and it does not report an X post's views or likes. A post is up to 280 characters as X counts them, with up to 4 images or one video. X is on paid plans; the free plan publishes to the other nine networks.

Questions people ask

Does n8n have an X (Twitter) node?

Yes. n8n has a built-in X (Formerly Twitter) node; its documentation lists creating a direct message, creating or replying to a tweet, deleting, searching, liking and retweeting a tweet, and getting a user. Its credentials need your own X developer account and app.

Can I post to X from n8n without an X developer account?

Yes, with the community node n8n-nodes-postwire. You connect X by signing in on X's own page from PostWire's dashboard, and the node posts with that account. There is no developer portal, no Client ID and no callback URL.

How do I post an X thread from n8n?

In the PostWire node, open Options and fill X Thread with the posts after the first, in order (up to 25, 26 posts in all), and X Reply with one reply under the last, the usual place for the link. Through the API, per_platform.x.thread takes the same list and options.x.reply the reply.

How much does it cost to post to X from n8n?

With PostWire, X is part of the paid plans: Starter is $19 a month with 30 X credits, Pro $29 with 150. A post uses 1 credit, a post with a link 10, and each image or video adds 1. Extra credits come in packs: 80 credits for $5 or 340 credits for $20.

Why does a post with a link use more credits?

X bills a post that contains a URL at a higher rate than a plain post ($0.200 against $0.015 per request on X's pricing page on Nov 26, 2026), so PostWire counts 10 credits for it instead of 1.

Can n8n post images and video to X?

Yes: up to 4 images or one video per post, by URL or as a binary file from a previous node. Each image or video adds 1 credit. In a thread, media stays on the first post.

How do I stop a workflow posting the same thing twice?

Put a stable value such as the RSS item's guid in Options → Idempotency Key (idempotency_key in the API). PostWire refuses a second post with the same key for 24 hours, so a re-run or a retried execution publishes once.