---
title: "Create a Tweet or Reply"
method: POST
path: "/twitter/tweets/create"
tags: ["Tweet Actions Endpoints"]
---

# Create a Tweet or Reply

`POST /twitter/tweets/create`

## Request

- Base URL: `https://api.twexapi.io`
- URL: `https://api.twexapi.io/twitter/tweets/create`
- Auth: HTTP bearer

Posts a new tweet. To create a reply, provide the `reply_tweet_id`. This endpoint does not handle quote tweets,$0.0005 per call.

## Request body

- PostTweetQuery: Parameters for posting a tweet
  - `media_url` string, nullable: Single media URL: image, GIF, or video. Prefer media_urls for multiple images.
  - `media_urls` string[], nullable: Media URLs to attach (max 4 images, or 1 GIF, or 1 video). Cannot mix GIF/video with other media.
  - `tweet_content` string, required: Content of the tweet to post
  - `delegated_account_username` string, nullable: delegated account username
  - `schedule` string, nullable: Schedule time for the tweet in ISO format
  - `reply_tweet_id` string, nullable: ID of tweet to reply to
  - `cookie` string, required: The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See [Authentication Security](/authentication#write-operations--byoc-bring-your-own-cookie) and [How to get Cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie).
  - `community_name` string, nullable: Name of Twitter community to post in or community id
  - `proxy` string, nullable: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://app.proxy-cheap.com/r/qiMxub

## Response `200`

The ID and user ID of the newly created tweet.

- PostTweetResponse: Post tweet API response
  - `code` integer: HTTP status code
  - `msg` string: Response message
  - `data` PostTweetData: Post tweet response data
    - `tweet_id` string, nullable: Posted tweet ID
    - `user_id` string, nullable: User ID who posted
    - `code` integer: HTTP status code

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/twexapi/apis/twexapi-rest-api.md) · [All operations](https://skmtc.dev/twexapi/apis/twexapi-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/twexapi/apis/twexapi-rest-api/revisions/59a99ac0d8f7?raw)
