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

# Create article

> This API allows to create a new article.

<Warning>
  **Deprecated:** This is a **v1** endpoint. It will continue to work, but we recommend migrating to
  the [v2 equivalent](/api-reference) for improved REST compliance (correct HTTP status codes,
  consistent response envelopes, and hyphenated URLs).
</Warning>

<Info>Replace `{your-subdomain}` with your workspace's subdomain. <br /> Learn how to find your subdomain in [Workspace subdomain](/getting-started/workspace-subdomain).</Info>


## OpenAPI

````yaml bundled-v1/articles.yaml POST /articles
openapi: 3.0.3
info:
  title: NeetoKB Articles API
  version: 1.0.0
servers:
  - description: NeetoKB API
    url: https://{your-subdomain}.neetokb.com/api/external/v1
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/getting-started/workspace-subdomain).
security: []
paths:
  /articles:
    post:
      summary: Create article
      description: This API allows to create a new article.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create_article_request'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  slug:
                    type: string
                  permalink:
                    type: string
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/getting-started/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
  schemas:
    create_article_request:
      type: object
      properties:
        article:
          type: object
          properties:
            title:
              type: string
              description: Title of the article.
              example: Getting Started
            slug:
              type: string
              description: URL-friendly version of the article's title.
              example: getting-started
            html_content:
              type: string
              description: Content of the article in HTML format.
              example: <h1>Welcome</h1><p>Example content</p>
            state:
              type: string
              enum:
                - draft
                - published
              description: Status of the article.
              example: draft
            page_title:
              type: string
              description: >-
                Title of the page (used for
                [SEO](https://searchengineland.com/guide/what-is-seo)).
              example: Getting Started
            meta_description:
              type: string
              description: >-
                Description of the article's content (used for
                [SEO](https://searchengineland.com/guide/what-is-seo)).
              example: A comprehensive guide to help you get started with our platform
            category:
              type: array
              items:
                type: string
              description: >-
                Provide the article's category path as an array of category
                names (not IDs or slugs). List the categories from the most
                specific to the top-level category. The article will be placed
                in the first category, and each subsequent category is treated
                as its parent.
              example:
                - Installation
                - Getting Started

````