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.
Search recent tweets
/v1/twitter/searchWorks on: X
Query parameters
accountIdstringrequiredThe account ID
querystringrequiredX search query, max 512 characters. Operators are passed through unchanged; X rejects malformed queries with a 400.
limitstringResults per page. X requires a minimum of 10; values below 10 are rejected.
sinceIdstringOnly return tweets with an ID greater than (more recent than) this numeric tweet ID. Non-numeric values are rejected with 400.
untilIdstringOnly return tweets with an ID less than (older than) this numeric tweet ID. Non-numeric values are rejected with 400.
startTimestringOldest UTC timestamp (ISO 8601, inclusive), within the last 7 days
endTimestringNewest UTC timestamp (ISO 8601, exclusive), within the last 7 days
cursorstringPagination cursor from a previous response
sortOrderstringNo description
curl "https://creatoros-production-5658.up.railway.app/v1/twitter/search?accountId=acc_Xt9Wm3Kq1Vz6Ny4Lb8Hc2Jr5Pd0Fs7Ga3Ue9Ki1Oq4Z&query=%3Cquery%3E" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"status": "success",
"tweets": [
{
"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"
}
],
"pagination": {
"hasMore": true,
"cursor": "string"
},
"meta": {
"resultCount": 0,
"newestId": "string",
"oldestId": "string",
"platform": "twitter"
}
}Look up a tweet
/v1/twitter/tweetWorks on: X
Query parameters
accountIdstringrequiredThe account ID whose X token is used for the lookup
tweetIdstringrequiredNumeric 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).
idstringAlias 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"{
"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
/v1/twitter/retweetWorks on: X
Body
accountIdstringrequiredThe account ID
tweetIdstringrequiredThe 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>"
}'{
"status": "success",
"tweetId": "string",
"retweeted": true,
"platform": "twitter"
}Undo retweet
/v1/twitter/retweetWorks on: X
Query parameters
accountIdstringrequiredNo description
tweetIdstringrequiredThe 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"{
"status": "success",
"tweetId": "string",
"retweeted": false,
"platform": "twitter"
}Follow a user
/v1/twitter/followWorks on: X
Body
accountIdstringrequiredThe account ID
targetUserIdstringrequiredThe 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>"
}'{
"status": "success",
"targetUserId": "string",
"following": true,
"pending_follow": true,
"platform": "twitter"
}Unfollow a user
/v1/twitter/followWorks on: X
Query parameters
accountIdstringrequiredNo description
targetUserIdstringrequiredThe 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"{
"status": "success",
"targetUserId": "string",
"following": false,
"platform": "twitter"
}Bookmark a tweet
/v1/twitter/bookmarkWorks on: X
Body
accountIdstringrequiredThe account ID
tweetIdstringrequiredThe 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>"
}'{
"status": "success",
"tweetId": "string",
"bookmarked": true,
"platform": "twitter"
}Remove bookmark
/v1/twitter/bookmarkWorks on: X
Query parameters
accountIdstringrequiredNo description
tweetIdstringrequiredThe 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"{
"status": "success",
"tweetId": "string",
"bookmarked": false,
"platform": "twitter"
}