X
X (formerly Twitter) is a social media platform for sharing and discovering posts. Use this app to search, publish, and manage posts, look up users by username, and trigger Blackbird workflows when new posts match your search.
Before setting up
Section titled “Before setting up”Before you can connect you need to make sure that:
- You have a X account and you have the credentials to access it.
- You have
Client IDandClient Secretfor the X API.
You can find the instructions on how to create a new app and get the Client ID and Client Secret here. After creating the app, you should go to the User authentication settings section, click on Edit button and under the App info set the Callback URI / Redirect URL field to https://bridge.blackbird.io/api/AuthorizationCode. This is necessary for the OAuth2.0 authentication to work. Also, set any website URL in the Website URL field (e.g. https://blackbird.io).
After completing the above steps, you should have the Client ID and Client Secret under Keys and tokens section in OAuth 2.0 Client ID and Client Secret field.
Connecting
Section titled “Connecting”- Navigate to Apps, and identify the X app. You can use search to find it.
- Click Add Connection.
- Name your connection for future reference e.g. ‘My X connection’.
- Fill in the
Client IDandClient Secretfor the X API. - Establish X connection via OAuth.
- Click Connect.

Actions
Section titled “Actions”Tweets
Section titled “Tweets”- Search tweets: Search tweets by specified parameters. Also, note that we are using
/tweets/search/recentendpoint, which means that we are searching for the most recent tweet that are up to 7 days old.
When using the Search tweets action, you can specify the following parameters:
- Max results:
- Description: This parameter defines the maximum number of results to return. If you do not specify a value, the default is set to 10.
- Keywords:
- Description: This parameter matches a keyword within the body of a tweet. It uses a tokenized match, meaning that your keyword string will be matched against the tokenized text of the tweet body. Tokenization splits words based on punctuation, symbols, and Unicode basic plane separator characters.
- Exact phrase match:
- Description: This parameter matches the exact phrase within the body of a tweet. When enabled, the entire phrase must appear in the tweet exactly as it is specified.
- From:
- Description: This parameter matches any tweet from a specific user. The value can be either the username (excluding the
@character) or the user’s numeric user ID.
- Description: This parameter matches any tweet from a specific user. The value can be either the username (excluding the
- To:
- Description: This parameter matches any tweet that is in reply to a particular user. The value can be either the username (excluding the
@character) or the user’s numeric user ID.
- Description: This parameter matches any tweet that is in reply to a particular user. The value can be either the username (excluding the
- Context:
- Description: This parameter matches tweets with a specific domain ID/entity ID pair. For more information about this operator, please visit the annotations documentation.
- Language:
- Description: This parameter filters tweets by language. The language code must be provided according to the BCP 47 standard.
- Start time:
- Description: This parameter specifies the earliest time from which to search for tweets. The time should be provided in ISO 8601 format.
- End time:
- Description: This parameter specifies the latest time until which to search for tweets. The time should be provided in ISO 8601 format.
- Get tweet: Get tweet by specified ID.
- Create tweet: Create tweet on your twitter page.
- Delete tweet: Delete specified tweet by ID.
- Retweet: Retweet specified tweet by id and user.
- Unretweet: Unretweet specified tweet by id and user.
- Get user by username: Get user by specified username.
Events
Section titled “Events”- On tweets created: Triggered after specified time interval to check for new tweets.
Note, this event is built around a polling mechanism, which means that the event will be triggered after the specified time interval to check for new tweets. Keep this in mind when using this event in your workflow to avoid exceeding your Monthly Post cap usage. We strongly recommend setting the interval to 1 day or more. Additionally, please note that by default, it will return only 10 tweets. You can change this by setting the Max results optional input (but be aware that this may affect your Monthly Post cap usage).
Example
Section titled “Example”Here is an example of how you can use the X app in a workflow:

In this example, the workflow starts with the On message event from Slack app which triggers when a new message is posted in the channel. Then, the workflow uses the Translate action to translate the message to a specified language. In the next step we use the Create tweet action to post the translated message on your twitter page.
Feedback
Section titled “Feedback”Do you want to use this app or do you have feedback on our implementation? Reach out to us using the established channels or create an issue.