Social

X

Publish posts and threads on X from OrgSDK actions and read available engagement metrics with your connected X account.

View 5 plugin functions ↓

Use X in a project

  • Publish a reviewed post from a scheduled OrgSDK action
  • Publish a thread from prepared content
  • Track engagement metrics across posts
  • Reply or quote-tweet from a queue

Access and credentials

Post, delete, and read analytics for tweets via X OAuth. Posting and deleting are public, mutating actions; deletes are irreversible.

OAuth connections use your own provider application and client credentials. Configure that application in OrgSDK, review its permissions and connect the credential to your project.

Find the connected X account

In Studio, open your project’s Plugins page and enable X. Connect the account you want to use. Paste this example into an action in the same project.

// Check which X account is connected before reading its updates.
return await twitter.getUser({});

Use with OrgSDK

OrgSDK gives external AI clients persistent projects and controlled execution. Plugins add optional tools to those projects. Each run uses pinned plugin versions, and project configuration determines which credentials they can use.

Set up OrgSDK locally ↗

Capabilities

5 functions from this published version. Read calls retrieve or process information; write actions can change data in the connected service.

5 of 5 functions

Get the authenticated user's Twitter/X profile including ID, name, and username.

Parameters and return value

This call takes no parameters.

Returns Promise<{ id: string; name: string; username: string; profileImageUrl?: string }>

Post a tweet. Supports replies and quote tweets. For threads, chain multiple tweets using replyToId.

Parameters and return value
ParameterTypeDetails
textstring—
replyToIdOptionalstring—
quoteTweetIdOptionalstring—

Returns Promise<{ id: string; url: string }>

Post a Twitter/X thread (chain of tweets). Each tweet is posted as a reply to the previous one.

Parameters and return value
ParameterTypeDetails
tweetsstring[]—

Returns Promise<Array<{ id: string; url: string }>>

Get analytics for a single tweet including impressions, likes, replies, retweets, quotes, bookmarks, and engagement rate.

Parameters and return value
ParameterTypeDetails
tweetIdstring—

Returns Promise<{ impressions: number; likes: number; replies: number; retweets: number; quotes: number; bookmarks: number; engagementRate: number }>

Delete a tweet by ID. This action is irreversible.

Parameters and return value
ParameterTypeDetails
tweetIdstring—

Returns Promise<{ success: boolean }>