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

# Create a catalog

> Creates an empty product catalog for the organization.

Use this method only when you need the `catalog_id` before you upload products. If you don't need `catalog_id`, [Upload a product catalog](/docs/api/product-directory/catalog/upload-a-product-catalog) creates a catalog on the first upload.

Only one product catalog is supported per organization.

**Required scopes:** `accounts--my:ro`


## OpenAPI

````yaml /api/product-directory/openapi.json post /v1/catalogs
openapi: 3.0.0
info:
  title: Product Directory API
  description: >-
    A service for uploading and managing a product catalog for use by an AI
    Agent.
  version: 1.0.0
servers:
  - url: https://api.text.com/product-directory
    description: Main production server URL
security:
  - PersonalAccessToken: []
paths:
  /v1/catalogs:
    post:
      tags:
        - Catalog
      summary: Create a catalog
      description: >-
        Creates an empty product catalog for the organization.


        Use this method only when you need the `catalog_id` before you upload
        products. If you don't need `catalog_id`, [Upload a product
        catalog](/docs/api/product-directory/catalog/upload-a-product-catalog)
        creates a catalog on the first upload.


        Only one product catalog is supported per organization.
      operationId: create-a-catalog
      responses:
        '201':
          description: The catalog was created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCatalogResponse'
              example:
                catalog_id: 8ca32d91-5a0d-402e-8ec4-2dc49a6237a7
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: authentication
                  message: No Authorization header.
        '409':
          description: The organization already has a catalog.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: already_exists
                  message: catalog already exists
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    CreateCatalogResponse:
      type: object
      required:
        - catalog_id
      properties:
        catalog_id:
          type: string
          format: uuid
          description: >-
            The ID of the new catalog. Use this value as `catalog_id` in other
            endpoints.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              description: The error category.
            message:
              type: string
              description: A message describing the error.
            data:
              type: object
              description: Additional error details, if available.
              properties:
                reason:
                  type: string
                  description: The cause of the error.
  responses:
    TooManyRequests:
      description: >-
        Too many requests were sent in a short time. Wait for the number of
        seconds in the `Retry-After` header, then send the request again.
      headers:
        Retry-After:
          description: The number of seconds to wait before you send the request again.
          schema:
            type: integer
          example: 12
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: too_many_requests
              message: Too many requests
  securitySchemes:
    PersonalAccessToken:
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/docs/authentication/personal-access-tokens">personal access
        tokens guide</a>.
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.