> ## 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 From Run

> Create a new catalog from an enrichment run's results.

The new catalog's schema carries field types AND descriptions from the run's
enrichment template, and is populated with the run's enriched records. Works for
upload-based (catalog-less) runs that otherwise have no catalog to export to.



## OpenAPI

````yaml /api-reference/openapi.json post /public/enrich/{job_id}/to-catalog
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/enrich/{job_id}/to-catalog:
    post:
      tags:
        - Enrich
      summary: Create Catalog From Run
      description: >-
        Create a new catalog from an enrichment run's results.


        The new catalog's schema carries field types AND descriptions from the
        run's

        enrichment template, and is populated with the run's enriched records.
        Works for

        upload-based (catalog-less) runs that otherwise have no catalog to
        export to.
      operationId: create_catalog_from_run_api_public_enrich__job_id__to_catalog_post
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
        - 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/CreateCatalogFromRunRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateCatalogFromRunRequest:
      properties:
        name:
          type: string
          title: Name
      type: object
      required:
        - name
      title: CreateCatalogFromRunRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Rastro API key or user token

````