API actions for the Twitter integration.
Post, reply, delete, like, and search tweets on Twitter using OAuth 2.0.
Delete a tweet
Delete a tweet by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tweet_id | string | Yes | Tweet ID to delete. |
Response
{
"status": "success"
}Get my profile
Get the authenticated user's Twitter profile information.
Response
{
"status": "success",
"user": {
"id": "123456789",
"name": "Lodol Automation",
"username": "lodol"
}
}Like a tweet
Like a tweet on behalf of the authenticated user.
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 by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
in_reply_to_tweet_id | string | Yes | Tweet ID to reply to. |
text | string | Yes | Reply text. |
Response
{
"status": "success",
"tweet": {
"id": "1234567891",
"text": "Thanks for sharing!"
}
}Search recent tweets
Search recent tweets using a query string.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query. |
max_results | number | No | Maximum tweets to return (10-100, defaults to 10). |
Response
{
"status": "success",
"tweets": [
{
"id": "1234567890",
"text": "Excited about the new AI features! #technology"
}
]
}