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

# Get catalog details

> Returns the status of a catalog's first import and its current product count.

 To track an import already in progress, poll [Check import status](/api/product-directory/catalog/check-import-status) instead — the `status` field returned here doesn't change on later uploads.



## OpenAPI

````yaml /api/product-directory/openapi.json get /v1/catalogs/{catalog_id}
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/{catalog_id}:
    get:
      tags:
        - Catalog
      summary: Get catalog details
      description: >-
        Returns the status of a catalog's first import and its current product
        count.

         To track an import already in progress, poll [Check import status](/api/product-directory/catalog/check-import-status) instead — the `status` field returned here doesn't change on later uploads.
      operationId: get-catalog-details
      parameters:
        - name: catalog_id
          in: path
          required: true
          description: The catalog ID.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The catalog's details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogDetails'
              example:
                status: ready
                product_count: 12
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: authentication
                  message: No Authorization header.
        '404':
          description: The catalog doesn't exist for this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: not_found
                  message: >-
                    catalog with ID 3fa85f64-5717-4562-b3fc-2c963f66afa6 not
                    found
        '422':
          description: '`catalog_id` isn''t a valid UUID.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: validation
                  message: catalog_id is not a valid UUID.
components:
  schemas:
    CatalogDetails:
      type: object
      required:
        - status
        - product_count
      properties:
        status:
          type: string
          enum:
            - created
            - indexing
            - ready
          description: >-
            The current catalog status.


            - `created` — the catalog exists, but no file has been uploaded to
            it.

            - `indexing` — an import is pending or being processed.

            - `ready` — the first import finished, successfully or not; the
            status stays `ready` regardless of later uploads.
        product_count:
          type: integer
          description: The number of products indexed in the catalog.
    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.
  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="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
      type: http
      scheme: basic

````