API actions for the Twitter integration.
Post, reply to, delete, like, and search tweets on your Twitter account.
Delete a tweet
Delete a tweet from your Twitter account.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tweet_id | string | Yes | Tweet ID to delete. |
Response
{
"status": "success"
}Get my profile
Get the profile details for your connected Twitter account.
Response
{
"status": "success",
"user": {
"id": "123456789",
"name": "Lodol Automation",
"username": "lodol"
}
}Like a tweet
Like a tweet from your connected Twitter account.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tweet_id | string | Yes | Tweet ID to like. |
Response
{
"status": "success"
}Post a tweet
Publish a tweet from your connected Twitter account.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Tweet text. |
Response
{
"status": "success",
"tweet": {
"id": "1234567890",
"text": "Just launched our new product!"
}
}Reply to a tweet
Reply to an existing tweet.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
in_reply_to_tweet_id | string | Yes | The ID of the tweet you want to reply to. |
text | string | Yes | Reply text. |
Response
{
"status": "success",
"tweet": {
"id": "1234567891",
"text": "Thanks for sharing!"
}
}Search recent tweets
Search recent tweets for a word, phrase, or hashtag.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | What to search for, such as a word, phrase, or hashtag. |
max_results | number | No | The most tweets to return, between 10 and 100. Defaults to 10. |
Response
{
"status": "success",
"tweets": [
{
"id": "1234567890",
"text": "Excited about the new AI features! #technology"
}
]
}