Postproxy ร— X (Twitter)

Publish tweets to X (Twitter) with automatic format detection. Handle images, videos, and text posts seamlessly.

One API call handles tweets with automatic content format detection.

Free plan ยท No credit card ยท Live in under 5 minutes

Tweets

Publish tweets with automatic format detection

Media Support

Add up to 4 images or 1 video per tweet

Thread Support

Create threaded conversations with multiple tweets

Automatic Formatting

Content format determined automatically based on media

POST /v1/posts
Terminal window
curl -X POST "https://api.postproxy.dev/api/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post": {
"body": "Just shipped a new feature! Check it out ๐ŸŽ‰"
},
"profiles": ["twitter"],
"media": ["https://example.com/image.jpg"],
"platforms": {
"twitter": {}
}
}'

View full documentation for all platform-specific features for X (Twitter)

INTEGRATION COST

Skip weeks of X (Twitter) integration work

One test post against a sandbox account is the easy part. Production X (Twitter) publishing means app verification, OAuth across many accounts, media pipelines, dozens of edge cases, and a permanent on-call rotation for "why didn't this one go through this time?"

5 min
Time to your first X (Twitter) post via API
Weeks โ†’ Hours
Engineering time saved on integration work
$0
Free plan, no credit card required
Build it yourself
  • Submit a X (Twitter) app for verification โ€” review cycles, screencasts, business docs
  • Implement OAuth, token refresh, secure credential storage per account
  • Build media upload pipelines (chunked, async, multi-step) for every format
  • Handle rate limits, quotas, retries, and partial failures across accounts
  • Cover dozens of edge cases: expired tokens, scope drift, regional restrictions, policy changes
  • Triage every silent failure: "Why didn't this one post go through?"
Ship with Postproxy
  • One REST endpoint. One payload schema. SDKs for popular languages
  • OAuth, tokens, and refresh handled for you โ€” across all accounts
  • Media upload, chunking, and format detection โ€” automatic
  • Retries, rate-limit windows, and per-platform receipts built in
  • Edge cases are our problem. Failures come back with an explicit reason
  • We track the API changes. You ship features
Start posting to X (Twitter) via API See pricing

Free plan includes the X (Twitter) API. No credit card.

Why Postproxy for X (Twitter)?

Skip Twitter API complexity

No need to handle Twitter API v2, OAuth flows, or rate limits. Postproxy handles it all.

Handle rate limits automatically

Twitter rate limits are managed automatically with intelligent retry logic.

Support all formats

Publish tweets with text, images, or videos through one unified API.

Supported formats:
Tweets

Reliable delivery

Automatic retries and clear status reporting ensure your tweets reach X.

How X (Twitter) Publishing Works with Postproxy

X's publishing model

X (formerly Twitter) uses a v2 API that requires OAuth 2.0 with PKCE for user-context authentication. Publishing a tweet is a single POST request, but media attachments require a separate multi-step upload flow through the v1.1 media endpoint โ€” the v2 API still relies on v1.1 for media uploads. Postproxy handles this split: send your text and media URLs in one request, and the API manages the v1.1 media upload followed by the v2 tweet creation automatically.

Media uploads and format detection

X's media upload endpoint uses a chunked upload protocol for videos and GIFs over 5MB. Each chunk must be uploaded sequentially, with a finalize step at the end and optional status polling for async video processing. Images are simpler but still require a separate upload-then-attach flow. Postproxy detects the media type from your URLs, chooses the correct upload method, handles chunking for large files, and attaches the resulting media IDs to your tweet.

Common gotchas Postproxy handles for you

X has some of the strictest rate limits of any social platform โ€” as low as 17 tweets per 24-hour window on free-tier API plans, with separate limits for media uploads. The API also has a 280-character limit for tweet text (with URLs counting toward the limit differently than plain text). Error responses from X are often vague, returning generic 403s for multiple distinct issues. Postproxy validates content length, manages rate limit windows, and translates X's error codes into actionable messages.

Threads and reply chains

Posting a thread on X requires creating each tweet sequentially, with each reply referencing the previous tweet's ID. If any tweet in the chain fails, you're left with a partial thread. Postproxy's thread support lets you send an array of tweet contents and handles the sequential posting with proper reply chaining, rolling back on failure so you don't end up with orphaned partial threads.

Frequently Asked Questions

Common questions about X (Twitter) integration

Are there any platform-specific parameters for Twitter?

No, X (Twitter) does not have custom parameters. Content format is determined automatically based on the media you provide. Postproxy handles all the formatting automatically.

What are the media constraints for Twitter?

Twitter supports images (jpg, png, webp, gif) up to 5 MB with a maximum of 4 images per tweet, and videos (mp4, mov) up to 512 MB with a duration between 1 second and 140 seconds.

What is the maximum text length for tweets?

Standard accounts have a 280 character limit for tweet text. Postproxy will automatically validate this limit before publishing.

Can I post text-only tweets?

Yes! Twitter fully supports text-only posts. Simply omit the media array from your post request.

Can I mix videos and images in a single tweet?

No, Twitter does not allow mixing videos and images in a single tweet. You can post up to 4 images or 1 video per tweet.

Ready to get started?

Start with our free plan and scale as your needs grow. No credit card required.