API resource

X (Twitter)

Search and read posts, and act as the account: repost, follow and bookmark. X bills every API call, so use these deliberately.

Look up a tweet

GET/v1/twitter/tweet

Works on: X

Resolve a single tweet by ID or URL into its text, author and public metrics. Use this to render a post you are referencing, e.g. the tweet quoted by a quote-style post. Unlike `/v1/twitter/search` this is not limited to the last 7 days and works for any tweet visible to the connected account. Billed as an X posts read ($0.005). Repeat lookups of the same tweet within the same UTC day are charged once.

Query parameters

accountIdstringrequired

The account ID whose X token is used for the lookup

tweetIdstringrequired

Numeric tweet ID or a tweet URL (e.g. https://x.com/user/status/123...). The same name the other /v1/twitter operations use (retweet, bookmark).

idstring

Alias of tweetId, kept for existing callers

curl "https://creatoros-production-5658.up.railway.app/v1/twitter/tweet?accountId=acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z&tweetId=%3CtweetId%3E" \
  -H "Authorization: Bearer $CREATOROS_API_KEY"
Response 200
{
  "status": "success",
  "tweet": {
    "id": "string",
    "text": "string",
    "created": "string",
    "conversationId": "string",
    "inReplyToTweetId": "string",
    "lang": "string",
    "author": {
      "id": "string",
      "username": "string",
      "displayName": "string",
      "avatar": "string",
      "verifiedType": "string"
    },
    "likeCount": 0,
    "replyCount": 0,
    "retweetCount": 0,
    "quoteCount": 0,
    "platform": "twitter"
  }
}

Retweet a post

POST/v1/twitter/retweet

Works on: X

Retweet (repost) a tweet by ID. Rate limit: 50 requests per 15-min window. Shares the 300/3hr creation limit with tweet creation.

Body

accountIdstringrequired

The account ID

tweetIdstringrequired

The ID of the tweet to retweet

curl -X POST "https://creatoros-production-5658.up.railway.app/v1/twitter/retweet" \
  -H "Authorization: Bearer $CREATOROS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z",
    "tweetId": "<tweetId>"
  }'
Response 200
{
  "status": "success",
  "tweetId": "string",
  "retweeted": true,
  "platform": "twitter"
}

Undo retweet

DELETE/v1/twitter/retweet

Works on: X

Undo a retweet (un-repost a tweet).

Query parameters

accountIdstringrequired

No description

tweetIdstringrequired

The ID of the original tweet to un-retweet

curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/twitter/retweet?accountId=acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z&tweetId=%3CtweetId%3E" \
  -H "Authorization: Bearer $CREATOROS_API_KEY"
Response 200
{
  "status": "success",
  "tweetId": "string",
  "retweeted": false,
  "platform": "twitter"
}

Follow a user

POST/v1/twitter/follow

Works on: X

Follow a user on X. Requires the follows.write OAuth scope. For protected accounts, a follow request is sent instead (pending_follow will be true).

Body

accountIdstringrequired

The account ID

targetUserIdstringrequired

The X ID of the user to follow

curl -X POST "https://creatoros-production-5658.up.railway.app/v1/twitter/follow" \
  -H "Authorization: Bearer $CREATOROS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z",
    "targetUserId": "<targetUserId>"
  }'
Response 200
{
  "status": "success",
  "targetUserId": "string",
  "following": true,
  "pending_follow": true,
  "platform": "twitter"
}

Unfollow a user

DELETE/v1/twitter/follow

Works on: X

Unfollow a user on X.

Query parameters

accountIdstringrequired

No description

targetUserIdstringrequired

The X ID of the user to unfollow

curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/twitter/follow?accountId=acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z&targetUserId=%3CtargetUserId%3E" \
  -H "Authorization: Bearer $CREATOROS_API_KEY"
Response 200
{
  "status": "success",
  "targetUserId": "string",
  "following": false,
  "platform": "twitter"
}

Bookmark a tweet

POST/v1/twitter/bookmark

Works on: X

Bookmark a tweet by ID. Requires the bookmark.write OAuth scope. Rate limit: 50 requests per 15-min window.

Body

accountIdstringrequired

The account ID

tweetIdstringrequired

The ID of the tweet to bookmark

curl -X POST "https://creatoros-production-5658.up.railway.app/v1/twitter/bookmark" \
  -H "Authorization: Bearer $CREATOROS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z",
    "tweetId": "<tweetId>"
  }'
Response 200
{
  "status": "success",
  "tweetId": "string",
  "bookmarked": true,
  "platform": "twitter"
}

Remove bookmark

DELETE/v1/twitter/bookmark

Works on: X

Remove a bookmark from a tweet.

Query parameters

accountIdstringrequired

No description

tweetIdstringrequired

The ID of the tweet to unbookmark

curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/twitter/bookmark?accountId=acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z&tweetId=%3CtweetId%3E" \
  -H "Authorization: Bearer $CREATOROS_API_KEY"
Response 200
{
  "status": "success",
  "tweetId": "string",
  "bookmarked": false,
  "platform": "twitter"
}