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

# Post Tweet (Auto Cookie)

> Post a tweet using a random cookie from the pool, [cookie management](https://twitterxapi.com/cookies/management) 
$0.0025 per call.



## OpenAPI

````yaml /api-reference/openapi.json post /twitter/post-tweet-without-cookie
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/post-tweet-without-cookie:
    post:
      tags:
        - Tweet Actions Endpoints
      summary: Post Tweet (Auto Cookie)
      description: >-
        Post a tweet using a random cookie from the pool, [cookie
        management](https://twitterxapi.com/cookies/management) 

        $0.0025 per call.
      operationId: post_tweets_without_cookie_twitter_post_tweet_without_cookie_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostTweetWithoutCookieQuery'
        required: true
      responses:
        '200':
          description: Tweet ID and user ID of posted 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:
    PostTweetWithoutCookieQuery:
      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! 🐦
        schedule:
          anyOf:
            - type: string
            - type: 'null'
          title: Schedule
          description: Schedule time for the tweet in ISO format
          example: '2024-01-01T12:00:00Z'
        reply_tweet_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Reply Tweet Id
          description: ID of tweet to reply to
          example: '1234567890123456789'
        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
      type: object
      required:
        - tweet_content
      title: PostTweetWithoutCookieQuery
      description: >-
        Parameters for posting a tweet without providing cookie (uses random
        cookie from pool)
    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

````