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

# Create Article

> Create an Article from markdown in one call: draft → title → content → optional cover → optional publish. Publishing requires X Premium.



## OpenAPI

````yaml /api-reference/openapi.json post /article/create
openapi: 3.1.0
info:
  title: OmniX API
  version: 1.0.0
  description: >-
    The fastest X (Twitter) API. Read and write tweets, users, lists, media and
    articles with a single API key. Every request runs as a real X account you
    supply via `auth_token`. Flat $0.001 per successful call.
servers:
  - url: https://api.omnixapi.com/api/v1/twitter
security:
  - bearerAuth: []
tags:
  - name: Tweets
    description: Search, read and write tweets.
  - name: Users
    description: Profiles, timelines, networks and profile actions.
  - name: Lists
    description: X List data.
  - name: Media
    description: Upload images, GIFs and video.
  - name: Articles
    description: Long-form X Articles.
  - name: Direct Messages
    description: >-
      Read and send X (XChat) direct messages. Encrypted operations require your
      `encryption_code` (XChat PIN).
  - name: Webhooks
    description: >-
      Real-time event delivery. Register an https URL and OmniX POSTs typed,
      signed events for DMs, mentions, replies, likes and follows.
  - name: Account
    description: >-
      Your OmniX account details, credit balance, usage and payment history.
      Free — no credits deducted, and no X account token required.
paths:
  /article/create:
    post:
      tags:
        - Articles
      summary: Create Article
      description: >-
        Create an Article from markdown in one call: draft → title → content →
        optional cover → optional publish. Publishing requires X Premium.
      operationId: createArticle
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - auth_token
                - title
                - content
              properties:
                auth_token:
                  $ref: '#/components/schemas/AuthTokenField'
                title:
                  type: string
                  example: My first article
                content:
                  type: string
                  description: Markdown body (headings, bold/italic, lists, links, images).
                  example: |-
                    ## Hello

                    This is **bold** and a list:

                    - one
                    - two
                publish:
                  type: boolean
                  default: false
                  description: >-
                    Publish immediately (Premium-only). Otherwise saved as a
                    draft.
                cover_media_id:
                  type: string
                  description: Pre-uploaded cover media id.
                cover_image_url:
                  type: string
                  description: Cover image URL to upload.
                cover_image_base64:
                  type: string
                  description: Cover image base64 to upload.
                proxy:
                  $ref: '#/components/schemas/ProxyField'
      responses:
        '200':
          description: The created article.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          article_id:
                            type: string
                          status:
                            type: string
                            enum:
                              - draft
                              - published
                          tweet_id:
                            type: string
                            nullable: true
                          draft_url:
                            type: string
                          public_url:
                            type: string
                            nullable: true
                          cover_media_id:
                            type: string
                            nullable: true
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    AuthTokenField:
      type: string
      description: The X account `auth_token` cookie the action runs as.
      example: YOUR_X_AUTH_TOKEN
    ProxyField:
      type: string
      description: >-
        Optional outbound proxy for this call (`http://` or `https://`,
        optionally `user:pass@host:port`). The X request runs through it —
        useful for geo-routing or spreading calls across IPs. SOCKS proxies are
        not supported.
      example: http://user:pass@host:8080
    Envelope:
      type: object
      properties:
        status:
          type: boolean
          example: true
        data:
          type: object
        error:
          type: string
          nullable: true
          example: null
    Error:
      type: object
      properties:
        status:
          type: boolean
          example: false
        data:
          type: object
          nullable: true
          example: null
        error:
          type: string
  responses:
    Forbidden:
      description: The X account isn't allowed to do this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
            data: null
            error: You can only delete your own tweets
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your OmniX API key, e.g. `omnix_live_...`. Billed per call.

````