Skip to main content
Every twitter.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Tweets

create

tweets.create Post a new tweet Risk: write
await corsair.twitter.api.tweets.create({});
Input
NameTypeRequiredDescription
textstringYesTweet text content (max 280 weighted characters)
quoteTweetIdstringNo
mediaIdsstring[]No
replySettingsfollowing | mentionedUsers | subscribersNo
Output
NameTypeRequiredDescription
dataobjectNo
{
  id: string,
  text: string
}

createReply

tweets.createReply Post a reply to an existing tweet Risk: write
await corsair.twitter.api.tweets.createReply({});
Input
NameTypeRequiredDescription
textstringYesReply text content (max 280 weighted characters)
inReplyToTweetIdstringYesID of the tweet to reply to
excludeReplyUserIdsstring[]No
Output
NameTypeRequiredDescription
dataobjectNo
{
  id: string,
  text: string
}