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

# Create Catalog Public

> Create a new catalog (API key or user token).



## OpenAPI

````yaml /api-reference/openapi.json post /public/catalogs
openapi: 3.1.0
info:
  title: Rastro Public API
  description: >-
    Public API for enrichment, catalog management, workflows, activities,
    snapshots, taxonomy, and MCP integrations.
  version: 0.1.0
servers:
  - url: https://catalogapi.rastro.ai/api
security:
  - bearerAuth: []
paths:
  /public/catalogs:
    post:
      tags:
        - Catalogs
      summary: Create Catalog Public
      description: Create a new catalog (API key or user token).
      operationId: create_catalog_public_api_public_catalogs_post
      parameters:
        - name: X-Organization-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicCreateCatalogRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicCatalogResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicCreateCatalogRequest:
      properties:
        name:
          type: string
          maxLength: 100
          minLength: 1
          title: Name
          description: Catalog name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Optional catalog description
        unique_id_field:
          type: string
          title: Unique Id Field
          description: >-
            Legacy compatibility field required by the public create request.
            Include the intended business key, such as sku, in schema and item
            data; this request field is not a separate runtime selector.
        product_id_field:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Id Field
          description: Field name to use as product identifier
        auto_evolve_schema:
          type: boolean
          title: Auto Evolve Schema
          description: Allow automatic schema evolution
          default: true
        strict_mode:
          type: boolean
          title: Strict Mode
          description: Reject unknown fields
          default: false
        product_enabled:
          type: boolean
          title: Product Enabled
          description: Whether this catalog supports product variants
          default: false
        schema_definition:
          additionalProperties: true
          type: object
          title: Schema Definition
          description: >-
            Initial JSON Schema for the catalog (from preview), including
            properties and required
        validation_rules:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Validation Rules
          description: Catalog-level validation rules to copy or override
        catalog_md:
          anyOf:
            - type: string
            - type: 'null'
          title: Catalog Md
          description: Markdown catalog context to copy or override
        master_catalog_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Master Catalog Id
          description: Explicit master catalog to inherit defaults from
        use_master_catalog_defaults:
          type: boolean
          title: Use Master Catalog Defaults
          description: Whether to inherit defaults from the org's default master catalog
          default: true
      type: object
      required:
        - name
        - unique_id_field
        - schema_definition
      title: PublicCreateCatalogRequest
      description: Request to create a new catalog
    PublicCatalogResponse:
      properties:
        id:
          type: string
          title: Id
        organization_id:
          type: string
          title: Organization Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        current_schema_version:
          type: string
          title: Current Schema Version
        unique_id_field:
          type: string
          title: Unique Id Field
        product_id_field:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Id Field
        auto_evolve_schema:
          type: boolean
          title: Auto Evolve Schema
        strict_mode:
          type: boolean
          title: Strict Mode
        product_enabled:
          type: boolean
          title: Product Enabled
        item_count:
          type: integer
          title: Item Count
        created_by_user_id:
          type: string
          title: Created By User Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        schema:
          anyOf:
            - $ref: '#/components/schemas/CatalogSchemaResponse'
            - type: 'null'
      type: object
      required:
        - id
        - organization_id
        - name
        - current_schema_version
        - unique_id_field
        - auto_evolve_schema
        - strict_mode
        - product_enabled
        - item_count
        - created_by_user_id
        - created_at
      title: PublicCatalogResponse
      description: Response model for catalog information
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CatalogSchemaResponse:
      properties:
        id:
          type: string
          title: Id
        catalog_id:
          type: string
          title: Catalog Id
        version:
          type: string
          title: Version
        schema_definition:
          additionalProperties: true
          type: object
          title: Schema Definition
        backward_compatible:
          type: boolean
          title: Backward Compatible
        migration_rules:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Migration Rules
        created_by:
          type: string
          title: Created By
        change_reason:
          type: string
          title: Change Reason
        created_at:
          type: string
          format: date-time
          title: Created At
        last_edited_by_workflow:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Edited By Workflow
        last_edited_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Edited At
        fields_workflow_info:
          items:
            $ref: '#/components/schemas/FieldWorkflowInfo'
          type: array
          title: Fields Workflow Info
          default: []
        total_fields:
          type: integer
          title: Total Fields
          default: 0
        input_fields_count:
          type: integer
          title: Input Fields Count
          default: 0
        generated_fields_count:
          type: integer
          title: Generated Fields Count
          default: 0
      type: object
      required:
        - id
        - catalog_id
        - version
        - schema_definition
        - backward_compatible
        - created_by
        - change_reason
        - created_at
      title: CatalogSchemaResponse
      description: Response model for catalog schema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    FieldWorkflowInfo:
      properties:
        field_name:
          type: string
          title: Field Name
        field_type:
          type: string
          title: Field Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        required:
          type: boolean
          title: Required
          default: false
        field_category:
          type: string
          title: Field Category
          default: input
        scope:
          type: string
          title: Scope
          default: variant
        unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit
        sample_values:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Sample Values
        added_by_workflow:
          anyOf:
            - type: string
            - type: 'null'
          title: Added By Workflow
        added_by_node:
          anyOf:
            - type: string
            - type: 'null'
          title: Added By Node
        added_in_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Added In Version
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        last_edited_by_workflow:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Edited By Workflow
        last_edited_by_node:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Edited By Node
        last_edited_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Edited At
        last_edited_in_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Edited In Version
        validation_rules:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Validation Rules
      type: object
      required:
        - field_name
        - field_type
      title: FieldWorkflowInfo
      description: Workflow tracking information for a specific field
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Rastro API key or user token

````