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

# Import From Crawl

> Import selected URLs from crawl discoveries as products.

**Authentication Required**: Requires `product:write` permission.

Creates an enrichment job and queues selected URLs for import.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/import-from-crawl
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/products/import-from-crawl:
    post:
      tags:
        - Products
      summary: Import From Crawl
      description: |-
        Import selected URLs from crawl discoveries as products.

        **Authentication Required**: Requires `product:write` permission.

        Creates an enrichment job and queues selected URLs for import.
      operationId: import_from_crawl
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportFromCrawlRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportFromCrawlResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ImportFromCrawlRequest:
      description: Request model for importing selected URLs as products.
      properties:
        discovery_job_id:
          description: The discovery job ID
          title: Discovery Job Id
          type: string
        enrich_product:
          default: true
          description: Run AI enrichment after import
          title: Enrich Product
          type: boolean
        scrape_brand_site:
          default: true
          description: Scrape brand site during enrichment
          title: Scrape Brand Site
          type: boolean
        search_lakehouse:
          default: true
          description: Search lakehouse for existing data
          title: Search Lakehouse
          type: boolean
        selected_urls:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: List of URLs to import (if None, uses all selected)
          title: Selected Urls
      required:
        - discovery_job_id
      title: ImportFromCrawlRequest
      type: object
    ImportFromCrawlResponse:
      description: Response model for import from crawl.
      properties:
        discovery_job_id:
          description: Original discovery job ID
          title: Discovery Job Id
          type: string
        import_job_id:
          description: New import/enrichment job ID
          title: Import Job Id
          type: string
        message:
          description: Status message
          title: Message
          type: string
        urls_to_import:
          description: Number of URLs queued for import
          title: Urls To Import
          type: integer
      required:
        - import_job_id
        - discovery_job_id
        - urls_to_import
        - message
      title: ImportFromCrawlResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````