Skip to content
Development accessTier 1socialProvider id: xManifest r6

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.

VariantFlowRefresh policyPlatform scopes
Sign in with XOAuth 2.0 with PKCErefresh_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.

KindAccepted MIME typesMax countMax file sizeAdditional bounds
image
image/jpegimage/pngimage/webp
45 MiBNone
gif
image/gif
115 MiBNone
video
video/mp4
1512 MiBMax duration 2.3 min

Account-flag overrides

  • X Premium (25,000 characters)verified_long_post

    Detected 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_4k

    Detected 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 rulex.media_formats

    Post 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 rulex.url_weight

    Every web address counts as 23 characters however long it is, and one written without https:// may count 23 too.

  • Hard rulex.one_cashtag

    Use at most one cashtag ($SYMBOL) per post.

  • Hard rulex.alt_text_length

    Keep media alt text within 1,000 characters.

  • Hard rulex.reply_and_quote_exclusive

    Do not combine reply_to_id with quote_tweet_id in the same post; X accepts only one per post.

  • Hard rulex.no_identical_across_channels

    Never 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.

  • Advicex.link_cost

    A post with a web address costs the X app $0.200 instead of $0.015; add a link only when it matters.

  • Advicex.no_repeats

    Do 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).

ScopeOperationWindowMax operations
channelpublish15 minutes100
apppublish24 hours10,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 @mentionssearch_userschannels:read

    Look 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"

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.

Other platforms in this tier