> ## 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.

# Retweet a Tweet

> Retweets a specific tweet on behalf of the user associated with the provided cookie,$0.0025 per call.



## OpenAPI

````yaml /api-reference/openapi.json post /twitter/tweets/{tweet_id}/retweet
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/{tweet_id}/retweet:
    post:
      tags:
        - Tweet Actions Endpoints
      summary: Retweet a Tweet
      description: >-
        Retweets a specific tweet on behalf of the user associated with the
        provided cookie,$0.0025 per call.
      operationId: retweet_tweet_endpoint_twitter_tweets__tweet_id__retweet_post
      parameters:
        - name: tweet_id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the tweet to retweet.
            title: Tweet Id
          description: The ID of the tweet to retweet.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetweetActionBody'
      responses:
        '200':
          description: A confirmation of the action's success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TweetActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RetweetActionBody:
      properties:
        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
        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:
        - cookie
      title: RetweetActionBody
      description: Body for the retweet action, containing only the cookie.
    TweetActionResponse:
      properties:
        code:
          type: integer
          title: Code
          description: HTTP status code
          default: 200
        msg:
          type: string
          title: Msg
          description: Response message
          default: success
        data:
          type: boolean
          title: Data
          description: Success status
          default: true
      type: object
      title: TweetActionResponse
      description: Tweet action response
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````