X (Twitter) endpoints
X (Twitter) endpoints in the Siar social media API: 4 operations that exist on X (Twitter) only, with parameters, body fields, responses and curl examples.
Updated
These operations exist for X (Twitter) only. The shared operations (posts, comments, analytics) are in the API reference; all network-specific areas are listed under network-specific operations.
Operations
| Operation | Method and path |
|---|---|
| Delete a Twitter/X tweet | DELETE /api/v1/misc/twitter/tweet |
| Delete a Twitter/X comment | DELETE /api/v1/misc/twitter/comment |
| Repost a Twitter/X post | POST /api/v1/misc/twitter/retweet |
| Undo a Twitter/X repost | DELETE /api/v1/misc/twitter/retweet |
/api/v1/misc/twitter/tweet Delete a Twitter/X tweet
misc.twitter.deleteTweet · requires x-api-key
Request body application/json
-
teamIdstring required -
postIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/twitter/tweet" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"postId": "POST_ID"
}' Response 200
1 top-level fields
-
successboolean required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/twitter/comment Delete a Twitter/X comment
misc.twitter.deleteComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/twitter/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID"
}' Response 200
Same fields as the response of Delete a Twitter/X tweet.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/twitter/retweet Repost a Twitter/X post
misc.twitter.retweet · requires x-api-key
Request body application/json
-
teamIdstring required -
tweetIdstring required pattern ^\d+$
Example
curl -X POST "https://api.siaran.my/api/v1/misc/twitter/retweet" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"tweetId": "TWEET_ID"
}' Response 200
Same fields as the response of Delete a Twitter/X tweet.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/twitter/retweet Undo a Twitter/X repost
misc.twitter.unretweet · requires x-api-key
Request body application/json
-
teamIdstring required -
tweetIdstring required pattern ^\d+$
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/twitter/retweet" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"tweetId": "TWEET_ID"
}' Response 200
Same fields as the response of Delete a Twitter/X tweet.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error