Try Kling Image V4 Long for Page Mockups from Kling AI →
Models
Agents
Workflows
Studio
PricingBlogDocs
ExploreDiscover models by categoryDiscoverModels and effects built by WiroBrowse All ModelsBrowse the complete catalogSee FavoritesSign in to view saved models
Generative Media AgentCreate and edit media by chattingWorkflow AgentBuild visual workflows with Agent
OverviewThe platform at a glanceLearnSkills, knowledge, guardrailsAnatomyWhat makes agents reasonBuild Your AgentPick skills, choose a plan, deploy, then connect your tools
Pre-built AgentsBrowse the catalogConnectorsConnect agents to your apps
Agent Usecases
Ad Campaign ManagerApp Event ManagerApp Review RepliesBarber BookingCustomer Win-BackEcommerce ListingsRestaurant Reviews
Sign InStart Building
  1. Home
  2. Connectors
  3. Social
  4. X
Wiro × X

Connect X to your Wiro AI agent

Post, reply and read on X (Twitter).

Connect to an AgentVisit X All Connectors
X logoX logo
Sign InWith Wiro's ready-made X app or your own app
10 actions5 read, 5 write
Chat and Scheduled TasksWhere it works
Allow, Ask or BlockYour choice for each action
Example chat
X logoX logoX connected Signed in

Run a poll on X asking which feature we should build next: bank sync, a mobile app or multi-currency invoices. Keep it open 3 days.

Publish an X post twitter__create_post

You said go, so the poll is live on your X account and stays open for 3 days:

Which should Cobaltfin build next? Vote, and tell us why in the replies.

  • Bank sync
  • Mobile app
  • Multi-currency invoices

Anyone can reply, so people can explain their vote.

Type a message...

X actions

Your agent picks the right ones for each request

Get the connected X accountUpload media to XDelete an X postList my X postsPublish an X postMake other X changesGet an X postPublish an X thread

Overview

What X does for your agent

Signs in to X through a ready-made app that needs no developer account, or through your own X app. The agent publishes posts with up to four images, one GIF or one video, or a poll, replies to and quotes other posts, runs threads of 2 to 25 posts and deletes the account's own posts, and it reads the likes, reposts, replies, quotes and impressions on what the account posted. With your own app, X charges every read and post to the prepaid API credits of the developer account that owns it.

Use cases

What your Wiro agent can do with X

  1. 01

    Turn release notes into an X thread

    Paste the changelog in Chat and ask for a thread. The agent splits it into posts that fit X's character limit, attaches the screenshots you link with alt text, and publishes the whole thread once you approve it. Each post replies to the one before, so the thread reads in order.

  2. 02

    Post a tip every weekday morning

    Give the agent a list of tips once, then set a Scheduled Task for 10:00 on weekdays. Each run publishes the next tip, with its image if it has one, and keeps track of which tips are used so the list goes out in order without repeats.

  3. 03

    Get a Monday report on last week's posts

    A Scheduled Task reads the account's posts from the past seven days with their likes, reposts, replies, quotes and impressions, compares them with the week before, and writes a short summary in Chat that names the posts with replies above the weekly average.

  4. 04

    Ask your followers with a poll

    Ask in Chat for a poll on which feature to build next. The agent writes two to four options of up to 25 characters each, keeps the poll open for the time you choose, up to seven days, and can limit replies to people the account follows.

  5. 05

    Post a product video with the right labels

    Share a link to an MP4 or MOV file of up to 512 MB. The agent uploads it, waits until X has processed it, and posts it with your caption. When the video was made with AI or the post is a paid partnership, it turns on X's label for that.

  6. 06

    Replace a post that went out with a wrong link

    Tell the agent which post has the mistake. It finds the post among the account's recent posts, deletes it after you confirm in Chat, and publishes the corrected text in its place.

How it works

How X works with Wiro

  1. 01

    Connect X

    Deploy an agent, open its Connectors tab, choose X and sign in with your X account.

  2. 02

    Choose what each action may do

    Set each X action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.

  3. 03

    Ask in Chat or schedule it

    Ask your agent for X work in Chat, or put it on a Scheduled Task that runs on its own.

  • Where it runsInside your agent. Its requests go straight from the agent to X.
  • Where its data goesapi.x.com
  • How it signs inSign in to X with Wiro's app or with your own app.

What it can do

Actions your Wiro agent can take in X

By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.

Read-only (5)Create and send (3)Change and delete (2)

Read-only 5 actions

Looks things up in X and changes nothing.

ActionWhat it doesChatScheduled Tasks
Get the connected X accountReturns the connected X account: id, username, name, bio, follower, following and post counts, verification and X Premium subscription type.AllowAllow
List my X postsLists the connected account's own posts, newest first, with each post's link, text, time and like, repost, reply, quote and impression counts.AllowAllow
Get an X postReturns one X post by its id: link, text, time, counts, the post it replies to or quotes, and its media.AllowAllow
Get an X media upload's statusReturns the processing state of an upload.AllowAllow
Read other X dataReads what the actions above do not cover, straight from the X API.AllowAllow

Create and send 3 actions

Creates or sends something new in X, such as a post, a message or an email.

ActionWhat it doesChatScheduled Tasks
Upload media to XUploads one image, GIF or video from a public https URL to X with the chunked upload.AskAllow
Publish an X postPublishes a post on X right away: text, up to 4 images or one GIF or video, or a poll; optionally as a reply to a post, quoting a post, with reply settings and AI or paid-partnership labels.AskAllow
Publish an X threadPublishes a thread on X: 2 to 25 posts, each with text and up to 4 images or one GIF or video, every post replying to the one before (the first optionally replying to an existing post).AskAllow

Change and delete 2 actions

Changes or deletes what is already in X.

ActionWhat it doesChatScheduled Tasks
Delete an X postDeletes one of the connected account's posts by its id, for good.AskAllow
Make other X changesSends any other change straight to the X API.AskAllow

How to connect

Connect X to Wiro

Open the agent's Connectors tab, choose X and sign in with your account. The consent screen shows what the agent can reach.

What the Connect dialog asks for

Pick one way in the Connect dialog: it asks only for what that way needs.

Wiro's ready-made app

Nothing to fill in: you sign in to X in its own window.

Your own app

Client ID and Client Secret from your own X app, then you sign in to X in its own window.

FieldAbout
Client IDRequired
  1. Go to X Developer Portal → Projects and Apps
  2. Select your app (or create a new one)
  3. Go to Settings → Authentication settings → click Edit
  4. Enable OAuth 2.0 and set Type of App to Web App
  5. Add this Callback URL:

https://api.wiro.ai/v1/AgentConnector/OAuthCallback

  1. Save, then go to Keys and Tokens tab
  2. Copy your OAuth 2.0 Client ID
Used only to sign in; the agent never receives it.
Client SecretRequired
  1. Go to X Developer Portal → your app → Keys and Tokens
  2. Under OAuth 2.0 Client ID and Client Secret, click Regenerate if needed
  3. Copy the Client Secret
Used only to sign in; the agent never receives it.

Troubleshooting

Troubleshooting X

What to check when X stops working for your agent.

  • Your own app's sign-in fails Check your app's settings in X: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
  • Access revoked in X If the access is removed in X, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose X and Reconnect.
  • Limits set by X X limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your X plan.

For developers

Connect X from your own product

Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.

  1. 01

    Read the connector

    Detail answers without a session: what the connector needs and the tools it gives an agent.

    POST /AgentConnector/Detail
    {
      "slug": "twitter"
    }
    Response
    {
      "result": true,
      "errors": [],
      "agentconnectors": [
        {
          "slug": "twitter",
          "title": "X",
          "category": "social",
          "authtype": "provider-oauth",
          "credentialfields": [
            {
              "name": "clientid",
              "label": "Client ID",
              "required": true,
              "secret": false,
              "format": "text"
            },
            {
              "name": "clientsecret",
              "label": "Client Secret",
              "required": true,
              "secret": true,
              "format": "password"
            }
          ],
          "tools": [
            {
              "name": "get_me",
              "readonly": true
            },
            {
              "name": "list_my_posts",
              "readonly": true
            }
          ]
        }
      ]
    }
  2. 02

    Start the sign-in

    Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.

    POST /UserAgent/ConnectorConnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "twitter",
      "mode": "oauth",
      "values": {
        "clientid": "YOUR_CLIENTID",
        "clientsecret": "YOUR_SECRET"
      },
      "redirecturl": "https://your-app.example.com/connectors/return"
    }
    Response
    {
      "result": true,
      "errors": [],
      "status": "pending",
      "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..."
    }
  3. 03

    Come back to your page

    After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.

    Your redirect URL
    https://your-app.example.com/connectors/return?connector_connected=true
    https://your-app.example.com/connectors/return?connector_error=authorization_denied
  4. 04

    Read the status

    connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.

    POST /UserAgent/ConnectorList
    {
      "useragentguid": "YOUR_AGENT_GUID"
    }
    Response
    {
      "result": true,
      "errors": [],
      "useragentconnectors": [
        {
          "slug": "twitter",
          "title": "X",
          "authtype": "provider-oauth",
          "status": "connected",
          "accounts": {},
          "savedvariables": [
            "clientid",
            "clientsecret"
          ],
          "lasterror": null
        }
      ]
    }
  5. 05

    Disconnect

    Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.

    POST /UserAgent/ConnectorDisconnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "twitter"
    }
    Response
    {
      "result": true,
      "errors": [],
      "removed": true,
      "revoked": true,
      "restart": "scheduled"
    }
API Reference

Questions

X and Wiro FAQ

What can an X (Twitter) AI agent do with this Connector?

It publishes posts with text, up to four images or one GIF or video, or a poll, and it can reply to a post or quote one. It publishes threads of 2 to 25 posts, deletes the account's own posts, and reads the account's posts with their like, repost, reply, quote and impression counts. For other X API calls it has a general read action and a general request action, both limited to what the account allowed at sign-in and to the app's X API access.

How do I connect X to an AI agent?

Open the agent's Connectors tab and choose X, or ask for an X connection in Chat. Sign in with the ready-made app, which needs no X developer account, or with your own X app: in the X Developer Portal, turn on OAuth 2.0 with the Web App type, add the callback URL shown in the Connect dialog, and paste the OAuth 2.0 Client ID and Client Secret. Either way, you approve access on X's own consent screen.

Do I need a paid X API plan to automate X?

Not when you sign in with the ready-made app. With your own X developer app, X charges by usage rather than by plan: each read and post comes out of credits bought in advance for that app's developer account, and the balance and spending limit set there decide how much the agent can do. The Connector itself adds nothing to your agent plan's cost, and X's own limits on your account still apply.

Will the agent post on X without asking me?

Reading runs on its own. By default, a post, a media upload or a deletion waits in Chat until you approve it, so nothing reaches X before you say yes. In Scheduled Tasks these actions run without a prompt, which is how a timed post goes out on schedule. Each action can be set to Allow, Ask or Block on the agent's Connectors tab, once for Chat and once for Autopilot, the column that covers Scheduled Tasks.

What limits does X set on posts and media?

A post holds 280 characters, with a link counted as 23 and some characters as two, or up to 25,000 on an X Premium account. Each post takes up to four images or one GIF or video: JPEG, PNG or WebP images up to 5 MB, GIFs up to 15 MB and MP4 or MOV videos up to 512 MB. A thread here runs 2 to 25 posts, and X refuses an exact copy of a recent post.

Where are my X tokens kept, and can the AI see them?

With your own app, the Client ID and Client Secret are used only for the sign-in and never reach the agent. The tokens X hands back are kept encrypted, and the AI model is never given them. Disconnecting X on the Connectors tab deletes them and revokes the sign-in with X. You can also remove the app from the connected apps in your X settings.

Is this an X MCP server I have to host?

No. The X Connector lives inside the agent and gives it X actions as tools; nothing needs to be installed or kept running on your side. You connect it once on each agent that should post, and that agent can use it in Chat and in its Scheduled Tasks.

Access

Revoke X access

Remove the app's access in your X account's connected apps settings, then disconnect it here.

Related connectors

More social connectors for your Wiro agent

  • YouTube logoYouTubeUpload and publish videos and Shorts, edit metadata and playlists, and read channel…
  • Bluesky logoBlueskyRead profiles and post to Bluesky with links, mentions, hashtags and images.
  • Facebook Pages logoFacebook PagesPublish posts, photos and videos to your Facebook Pages and read their engagement.
  • Instagram logoInstagramPublish photos, carousels, Reels and Stories to your Instagram professional accounts.
  • LinkedIn logoLinkedInPublish posts to a LinkedIn organization page.
  • Mastodon logoMastodon logoMastodonRead your timeline and post statuses on your Mastodon instance.

Put X to work with Wiro

Deploy an agent and connect X from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.

Build an AgentAll Connectors

Discover, test, and run AI models, build workflows and agents with one unified API.

All systems operational
WiroModelsAgentsMCP ServerLLM GatewayBrowser ExtensionIntegrationsConnectorsPricingAboutBlogCareersContactPartnerChangelogStatusFAQ
CategoriesText to ImageImage to ImageImage EditingImage to TextText to VideoImage to VideoVideo to VideoText to SpeechSpeech to TextSpeech to SpeechVoice CloneRealtime ConversationMusic GenerationLLMUtilities
ModelsNano Banana 2GPT Image 2.5Seedream V5 ProSeedance 2.5Veo 3.1Kling V3FLUX 3FLUX.2 ProWan 3.0 PrimeGrok Imagine 1.5
PartnersGoogleOpenAIByteDanceBlack Forest LabsKling AIQwenAlibabaxAIMiniMaxElevenLabs
Getting StartedWiro ModelsWiro EffectsIntroductionAuthenticationProjectsCode ExamplesWiro MCP ServerSelf-Hosted MCPn8n IntegrationLLMs.txt
API ReferenceModelsRun a ModelModel ParametersTasksLLM & Chat StreamingWebSocketRealtime VoiceFiles
© 2026 Wiro AI. All rights reserved.
PrivacyTermsData Deletion