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

OperationMethod and path
Delete a Twitter/X tweetDELETE /api/v1/misc/twitter/tweet
Delete a Twitter/X commentDELETE /api/v1/misc/twitter/comment
Repost a Twitter/X postPOST /api/v1/misc/twitter/retweet
Undo a Twitter/X repostDELETE /api/v1/misc/twitter/retweet
DELETE /api/v1/misc/twitter/tweet

Delete a Twitter/X tweet

misc.twitter.deleteTweet · requires x-api-key

Request body application/json

  • teamId string required
  • postId string 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
  • success boolean 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

DELETE /api/v1/misc/twitter/comment

Delete a Twitter/X comment

misc.twitter.deleteComment · requires x-api-key

Request body application/json

  • teamId string required
  • commentId string 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

POST /api/v1/misc/twitter/retweet

Repost a Twitter/X post

misc.twitter.retweet · requires x-api-key

Request body application/json

  • teamId string required
  • tweetId string 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

DELETE /api/v1/misc/twitter/retweet

Undo a Twitter/X repost

misc.twitter.unretweet · requires x-api-key

Request body application/json

  • teamId string required
  • tweetId string 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