X
Connect an organic X identity for publishing, engagement, audience, analytics, Lists, Articles, and media.
The X connector owns organic marketing work. It uses Oblive’s packaged direct provider for profiles, posts, replies, quotes, engagement, follows, Lists, Articles, analytics, and approved media uploads. It is separate from X Ads.
Before You Connect
The deployment administrator configures xOAuth.clientId and the exact callback URL registered with
an X developer App using OAuth 2.0 Authorization Code with PKCE. Web Apps, Automated Apps, and Bots
also set xOAuth.clientSecret; Native Apps and SPAs omit it. Without the local-stack generator, set
X_OAUTH_CLIENT_ID, optional X_OAUTH_CLIENT_SECRET, and X_OAUTH_REDIRECT_URI on the backend.
When the secret is present, token exchange, refresh, and revocation use confidential-client Basic authentication. Without it, the same connector uses the public-client PKCE flow.
Choose:
- Read-only for discovery, conversation context, audiences, Lists, media status, and analytics.
- Ask before writes for reviewed publishing and changes that a person approves individually.
- Autonomous for the same bounded write surface without per-action approval.
Chat can perform the changes you explicitly request when the connector grants full access. Autonomous Growth work continues to use the configured approval policy.
Connect X
- Open Integrations and select X.
- Choose Read-only, Ask before writes, or Autonomous.
- Select Continue to X and approve the requested permissions.
- Return to Oblive and confirm that the integration reports ready.
The organization token stays encrypted in the backend. Workers receive a scoped gateway capability, not the token.
Read Access And Payment Errors
If an X read rejects an expired access token, Oblive refreshes the saved OAuth grant and retries that read once after persisting the rotated credential. A revoked refresh grant still requires reconnection. This read recovery never replays a write, and stops if the connection changes during refresh. Analytical collection continues through its existing fresh-work recovery path.
Connecting X or reading the account profile does not prove that post reads are available. A payment-required response (HTTP 402) records the affected operation as unavailable; a forbidden response (HTTP 403) records that it needs configuration. Neither error is retried automatically. Successful profile reads and tool discovery leave those operation failures in place.
Restore the required X billing entitlement or access, then verify the affected read through the connected integration. A task waiting to verify an accepted post must reuse its saved publication receipt, without publishing the post again.
Organic Tool Surface
- Resolve the connected identity, other users, posts, mentions, and follower graphs.
- Search posts and inspect post engagers.
- Read available post analytics with fixed metric fields.
- Create original posts, replies, quotes, polls, and posts with uploaded media.
- Delete posts and manage likes, reposts, bookmarks, follows, and reply visibility.
- Read and manage Lists.
- Create Article drafts and publish reviewed drafts.
- Read media processing status.
There is no arbitrary X API path or unrestricted request-body tool.
Private Media
Growth task runs receive the x-media companion only when the integration uses Ask before writes or
Autonomous. The
worker hashes one regular workspace file, uploads it to an invocation-owned private object key, and
the backend verifies ownership, size, type, signature, and SHA-256 before proposal and execution.
The companion infers:
- JPEG, PNG, or WEBP as
tweet_image; - GIF as
tweet_gif; and - MP4 or MOV as
tweet_video.
The resulting media ID can be used with x_create_post. Writes that need approval wait for your
decision. If X rejects a request because of a rate limit, Oblive waits until X permits another
attempt and retries the same action, with a maximum of three attempts. A lost response can mean
the change already happened; Oblive keeps that outcome unresolved rather than risking a duplicate.