X
Pay-per-use API costs are passed through at cost; no auto-replies.
Connection note
You sign in with the X account you are logged in to on x.com; switch accounts there first if needed.
Specification summary
- Text limit
- 280 charactersWeighted (URLs count as 23, CJK/emoji as 2)Conditional limits: 25,000 (verified_long_post), 4,000 (premium_4k)
- Media attachments
- up to 4 images, up to 1 gif, up to 1 video (one kind per part)
- Threads and parts
- Threaded reply chain (up to 25 parts)
- Authentication
- OAuth 2.0 with PKCECloud shares a platform app once reviewed; self-hosters register their own app.
- Approvals and autonomy
- Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish)Default publish:
in_the_loop· Ceiling:on_the_loop - Analytics and API cost
- Allowed for analytics and learningPlatform-metered pass-through at cost (with monthly spend cap)
Authentication and token lifecycle
Credentials are encrypted at rest and scoped to the connected channel. You can revoke and scrub stored tokens immediately via POST /v2/channels/disconnect or from the web app; see Data deletion for full revocation and deletion details.
| Variant | Flow | Refresh policy | Platform scopes |
|---|---|---|---|
| Sign in with X | OAuth 2.0 with PKCE | refresh_token · proactive · serialised rotation | tweet.readtweet.writeusers.readmedia.writeoffline.access |
Content and media constraints
Editor mode: plaintext. Minimum text length: 0. Polls: not supported. AI content disclosure: supported via made_with_ai.
| Kind | Accepted MIME types | Max count | Max file size | Additional bounds |
|---|---|---|---|---|
image | image/jpegimage/pngimage/webp | 4 | 5 MiB | None |
gif | image/gif | 1 | 15 MiB | None |
video | video/mp4 | 1 | 512 MiB | Max duration 2.3 min |
Account-flag overrides
- X Premium (25,000 characters)
verified_long_postDetected at connect when the account carries X Premium / Premium+ or verified status, unlocking 25,000-character long posts and 10-minute videos.
- X Premium Basic (4,000 characters)
premium_4kDetected at connect when the account carries X Premium Basic, unlocking 4,000-character posts.
Guardrails, rate limits and compliance
Pass-through API costs and monthly cap
X's pricing page (docs.x.com/x-api/getting-started/pricing) is undated and says prices are subject to change; the rates were read on as_of. A post is $0.015 per request and $0.200 with a URL. Media attachments budget $0.005 per media item (covering X Media Metadata / upload costs conservatively). Reads are per resource: $0.001 for an owned read, $0.005 per post, and $0.010 per user (also applied to `search_users` tool calls, which fail closed without workspace spend-cap metering). Analytics reads are gated by the per-workspace monthly X spend cap.
Manifest validation rules
- Hard rule
x.media_formatsPost single posts or threads up to 25 parts, attaching up to 4 images (JPEG, PNG, WebP) with optional alt text, 1 GIF, or 1 MP4 video per part.
- Hard rule
x.url_weightEvery web address counts as 23 characters however long it is, and one written without https:// may count 23 too.
- Hard rule
x.one_cashtagUse at most one cashtag ($SYMBOL) per post.
- Hard rule
x.alt_text_lengthKeep media alt text within 1,000 characters.
- Hard rule
x.reply_and_quote_exclusiveDo not combine reply_to_id with quote_tweet_id in the same post; X accepts only one per post.
- Hard rule
x.no_identical_across_channelsNever post the same or nearly the same text to several X accounts: X prohibits identical or similar content across accounts. Give each X channel its own wording.
- Advice
x.link_costA post with a web address costs the X app $0.200 instead of $0.015; add a link only when it matters.
- Advice
x.no_repeatsDo not post the same text again on one account: X may refuse a duplicate of a recent post.
Queue and rate-limit windows
Worker queue: x (max 1 concurrent job). Supports asynchronous platform processing (poll interval 5s, budget 10 min).
| Scope | Operation | Window | Max operations |
|---|---|---|---|
channel | publish | 15 minutes | 100 |
app | publish | 24 hours | 10,000 |
Shipped platform guardrails
- forbidApplies to: agent, oauth_client, api_key, user
Since 2026-02-23 X refuses programmatic replies unless the original post's author summoned the replying account, and Honeloop does not reply to other people's posts on any platform (26 R4-N1).
- forbidApplies to: agent, oauth_client, api_key
Engagement automation, summoned replies included, is out of scope on every platform (26 R4-N1); X also requires its prior approval for AI reply features.
- forbidApplies to: user, api_key, oauth_client, agent
Direct messages are out of scope (constitution §1).
Manifest helper tools
Invoke via POST /v2/providers/invoke_tool or MCP invoke_provider_tool:
- Search X accounts for @mentions
search_userschannels:readLook up an X account by handle or search query to verify @mentions. Example: {"query":"honeloop_test"} returns [{"id":"...","label":"@honeloop_test"}].
Publish to X
Every call passes the same 12-stage policy gate, manifest preflight check and audit trail. Under the default in_the_loop policy, scheduling returns HTTP 202 ApprovalDiversion until a reviewer approves.
# Draft and schedule for your X channel (provider: x) hl posts create --channels "$CHANNEL_ID" --text "Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00." hl posts schedule "$POST_ID" --version 1 --at 2026-11-26T09:30:00Z hl posts status "$POST_ID"
curl -sS -X POST "https://api.honeloop.example/v2/posts/create" \
-H "Authorization: Bearer $HONELOOP_AGENT_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-x-0001" \
-d '{
"channel_ids": ["0197e3a0-0000-7000-8000-0000000000a5"],
"parts": [
{ "kind": "text", "text": "Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00." }
]
}'Common questions
How does Honeloop count characters for X?
X allows up to 280 characters by default using Weighted (URLs count as 23, CJK/emoji as 2). Honeloop validates text length before scheduling and rejects over-limit drafts with 400 validation_failed instead of failing after approval.
What media and multi-part formats does X support?
up to 4 images, up to 1 gif, up to 1 video (one kind per part). Threaded reply chain (up to 25 parts).
How do authentication and approvals work on X?
X connects via OAuth 2.0 with PKCE. Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish). Disconnecting the channel immediately revokes and scrubs stored credentials.
What compliance guardrails apply to X?
Analytics AI posture is allowed. Cost model: Platform-metered pass-through at cost (with monthly spend cap). Access status: development access while platform review is pending.