> ## Documentation Index
> Fetch the complete documentation index at: https://docs.twexapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Quote Tweet

> Posts a new tweet that quotes an existing tweet. Requires the URL of the tweet to be quoted and the new content,$0.0025 per call.



## OpenAPI

````yaml /api-reference/openapi.json post /twitter/tweets/quote
openapi: 3.1.0
info:
  title: Twitter API Service
  description: |2-

            A comprehensive Twitter API service that provides various Twitter operations including:
            
            * **Search Operations**: Advanced search, hashtags, cashtags
            * **Tweet Operations**: Post, like, retweet, quote, bookmark, delete
            * **User Operations**: Batch user information retrieval
            * **Influencer Operations**: Get tweets from top influencers
            
            All endpoints return standardized responses in the format:
            ```json
            {
                "code": 200,
                "msg": "success", 
                "data": {...}
            }
            ```
            
            ## Authentication
            
            This API uses Bearer token authentication. Include your token in the Authorization header:
            ```
            Authorization: Bearer your_token_here
            ```
            
  contact:
    name: API Support
    email: support@twitterxapi.com
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.twexapi.io
    description: Development server
security: []
paths:
  /twitter/tweets/quote:
    post:
      tags:
        - Tweet Actions Endpoints
      summary: Create a Quote Tweet
      description: >-
        Posts a new tweet that quotes an existing tweet. Requires the URL of the
        tweet to be quoted and the new content,$0.0025 per call.
      operationId: quote_tweets_twitter_tweets_quote_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteTweetQuery'
        required: true
      responses:
        '200':
          description: The ID and user ID of the newly created quote tweet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTweetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    QuoteTweetQuery:
      properties:
        media_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Url
          description: >-
            Single media URL (backward compatible). Prefer media_urls for
            multiple images.
          example: https://example.com/image.jpg
        media_urls:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 4
            - type: 'null'
          title: Media Urls
          description: Media URLs to attach (max 4 images). Cannot mix with video.
          example:
            - https://example.com/image1.jpg
            - https://example.com/image2.jpg
        tweet_content:
          type: string
          title: Tweet Content
          description: Content of the tweet to post
          example: Hello, Twitter! 🐦
        delegated_account_username:
          anyOf:
            - type: string
            - type: 'null'
          title: Delegated Account Username
          description: delegated account username
          example: elonmusk
        cookie:
          type: string
          title: Cookie
          description: >-
            Twitter authentication cookie or Twitter auth_token,
            [how-to-get-twitter-cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)
          example: ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7
        community_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Community Name
          description: Name of Twitter community to post in or community id
          example: Python Developers or 1234567890123456789
        quote_tweet_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Quote Tweet Url
          description: URL of tweet to quote
          example: https://twitter.com/user/status/1234567890123456789
        proxy:
          anyOf:
            - type: string
            - type: 'null'
          title: Proxy
          description: >-
            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
          example: http://username:password@ip:port
      type: object
      required:
        - tweet_content
        - cookie
      title: QuoteTweetQuery
      description: Parameters for quoting a tweet
    PostTweetResponse:
      properties:
        code:
          type: integer
          title: Code
          description: HTTP status code
          default: 200
        msg:
          type: string
          title: Msg
          description: Response message
          default: success
        data:
          anyOf:
            - $ref: '#/components/schemas/PostTweetData'
            - type: 'null'
          description: Posted tweet information
      type: object
      title: PostTweetResponse
      description: Post tweet API response
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PostTweetData:
      properties:
        tweet_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Tweet Id
          description: Posted tweet ID
          example: '1234567890123456789'
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: User ID who posted
          example: '1234567890'
        code:
          type: integer
          title: Code
          description: HTTP status code
          default: 200
      type: object
      title: PostTweetData
      description: Post tweet response data
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````