Connecting X

Last updated on Nov 05, 2026

The X integration searches recent posts, reads posts and their threads, your mentions, and your timeline, and, at Read and change, posts, replies, likes, reposts, and sends direct messages, each after you approve it. A routine or bot can also start whenever someone mentions you on X.

X charges for every call its API answers, and it charges the developer account that owns the app making the call. So your organization uses an X app of its own: X bills your organization's prepaid X credits directly, and Chat with Work charges nothing extra for X.

1. An owner or admin creates the X app

  1. Sign in to the X Developer Console with the X account your organization wants to own the app, and buy some credits. X has no free tier for new developers.
  2. Create an app on the Pay-per-use package, in the Production environment. Without both, X refuses the sign-in later with client-not-enrolled.
  3. In the app's User authentication settings, turn on OAuth 2.0:
    • Type of app: Web App, Automated App or Bot (a confidential client, so it has a client secret).
    • App permissions: Read and write and Direct message, so people can choose Read and change.
    • Callback URI / Redirect URL: https://chatwithwork.com/x_authorization/callback
    • Website URL: https://chatwithwork.com
  4. Under Keys and tokens, copy the OAuth 2.0 Client ID and Client Secret. They're different from the API key and secret.
  5. In Chat with Work, open Settings ▸ Integrations, find X, choose Set up, paste the client ID and secret, and Save. The row also shows the callback URL to give X.

Until then, members don't see X, and owners and admins see Set up on its row. Removing the app later disconnects everyone who connected X with it.

2. Everyone connects their own X account

Once the app is set up, each person connects X in Settings ▸ Integrations with their own X account, at Read or Read and change. The assistant acts as that account. You can connect more than one X account; the assistant then asks which one to use.

What X charges

X sets its own prices and can change them; the X API pricing page has the current ones. As of October 2026, X lists:

What X charges
Each post read (search, a thread, mentions, timeline) $0.005
Looking up an account (to send it a message) $0.010
A post or reply $0.015
A post or reply with a link $0.20
A like or repost $0.015
A direct message $0.015

X usually charges a post only once a day (UTC), however often it's read. The assistant asks for 10 posts at a time unless you ask for more, so a search usually costs about $0.05. A mentions trigger costs nothing while nobody mentions you, and about $0.005 per mention it reads. These charges come out of your organization's X credits, not your Chat with Work credits; the answers themselves use Chat with Work credits as usual.

When your X credits run out, X refuses every call: the assistant says so, and a mentions routine pauses itself until you resume it. Add credits, or turn on auto-recharge, in the X Developer Console.

Privacy

Your X tokens are stored encrypted, and only your own chats use them. Disconnecting X in Settings ▸ Integrations revokes the grant with X and deletes the tokens.