Skip to main content

Twitter / X Posting API

Publish to Twitter/X through one simple API that fits apps, platforms, automations, and AI workflows.

  • Tweets, threads, polls, and Community posts via one endpoint
  • Image, video, and GIF uploads
  • OAuth handled, no Twitter developer app needed
  • Real-time webhooks for post status
No credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin"], "content": "Hello world!" }
Published
2 platforms
TwitterLinkedIn
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XLIFBTT
One API, every platform
DF

"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"

David Flor, Founder at Darklight Interactive

Divanshu KhatterMarketing Manager at Sembark

"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."

Divanshu Khatter, Marketing Manager at Sembark

Het TikawalaFounder at Kalizzle AI Studio

"Great integration experience. Jonathan ships fixes within hours. Mad respect for the speed."

Het Tikawala, Founder at Kalizzle AI Studio

Add Social Media to Your Product in Three Steps

Connect once, then publish, schedule, and read data through the same API.

01

Get Your API Key

Sign up and get your API key instantly. No sales calls or complicated setup.

02

Integrate in Minutes

Connect once to PostPeer to publish, schedule, analyze, manage comments, and handle messages.

03

Support Every Major Platform

Give your users access to major social platforms without building and maintaining each integration yourself.

New to PostPeer? Read the getting started guide

Explore Requests and Responses by Format

Use the same endpoint and change only the fields required for each publishing format.

POSTRequest · Tweet
{
    "content": "We just shipped v2.4. Faster uploads, fewer retries.",
    "platforms": [
      {
        "platform": "twitter",
        "accountId": "abc123"
      }
    ],
    "publishNow": true
}
202Response · Tweet
{
    "success": true,
    "status": "published",
    "postId": "post_abc123",
    "platforms": [
      {
        "platform": "twitter",
        "success": true,
        "platformPostUrl": "https://twitter.com/you/status/123456"
      }
    ]
}

POST https://api.postpeer.dev/v1/posts

View the Twitter/X documentation

Everything You Need for Twitter Posting

Skip the Twitter API complexity. PostPeer gives you a simple, unified endpoint for all Twitter publishing needs.

Single Tweets & Threads

Post a single tweet or create multi-tweet threads with a single API request. Each thread item supports text and media.

Community Posts

Post directly into any Twitter Community by passing a communityId. Optionally share with your followers at the same time using shareWithFollowers.

Rich Media Support

Upload images, videos, and GIFs. PostPeer validates media against Twitter's specifications before publishing.

Polls

Create Twitter polls with 2–4 options and configurable duration. Just pass poll data in platformSpecificData.

Scheduled Posting

Schedule tweets for any time with timezone support. PostPeer queues and delivers at the scheduled time.

Cross-Post With Other Platforms

Post the same content to Twitter, Instagram, YouTube, and more in a single workflow. Platform-specific formatting is handled for you.

Ship Twitter Posting in Any Stack

Whether your product is a Node app, a no-code workflow, or an AI agent, the same PostPeer API can power the publishing workflow.

Dev Stack

Typed SDKs and predictable REST APIs let you integrate PostPeer into the stack your application already uses.

No Code

Trigger publishing workflows from tools your team already uses.

Setup guides

AI Agents & MCP

Give Claude, Cursor, Codex, or your own AI agent the ability to publish, schedule, and interact with social workflows through PostPeer.

Connect via MCP

Frequently Asked Questions

Power Your Next Project With a Unified Social Media API

Give your users posting, scheduling, analytics, and engagement features through one API your team can maintain.

Start with 20 free credits. No credit card required.