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

# Create a new API from a URL

> Submit a website URL to generate an API. If a matching API already exists, returns it instantly. Otherwise, queues a job to build one. Optionally describe the data you need in the `task` field.



## OpenAPI

````yaml /openapi.json post /dispatch
openapi: 3.1.0
info:
  title: Parse API
  description: Programmatic API for creating, managing, and executing web scraping APIs.
  version: 2.0.0
servers:
  - url: https://api.parse.bot
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Execute
    description: Call the endpoints of an API you've built — the most common operation
  - name: Marketplace
    description: >-
      Browse and search the public marketplace of pre-built APIs (no auth
      required)
  - name: Dispatch
    description: Create and manage scraping APIs
  - name: Export
    description: Export API specs in standard formats
  - name: Updates
    description: Check and merge upstream improvements to your APIs
paths:
  /dispatch:
    post:
      tags:
        - Dispatch
      summary: Create a new API from a URL
      description: >-
        Submit a website URL to generate an API. If a matching API already
        exists, returns it instantly. Otherwise, queues a job to build one.
        Optionally describe the data you need in the `task` field.
      operationId: create_dispatch_task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DispatchRequest'
      responses:
        '200':
          description: Task created or matched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DispatchResponse'
components:
  schemas:
    DispatchRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          description: Website URL to generate an API from
        task:
          type: string
          nullable: true
          description: >-
            Natural language description of the data you need (e.g. 'get product
            prices and reviews')
        contributes_to_marketplace:
          type: boolean
          default: true
          description: >-
            Whether this API contributes to the shared marketplace canonical for
            its domain. TRUE (default) = your revisions feed back into the
            canonical, you can merge upstream improvements, and the build is
            free. FALSE = the API is fully desynced from the canonical and the
            build is charged. This is a permanent, per-API choice and cannot be
            toggled later. (The old `force_new` field has been removed — sending
            it now returns a 400.)
    DispatchResponse:
      type: object
      required:
        - task_id
        - matched
      properties:
        task_id:
          type: string
          description: Unique task identifier — use this to poll for status
        matched:
          type: boolean
          description: True if an existing API was found for this URL
        test_inputs:
          type: array
          nullable: true
          description: Suggested test parameters for each endpoint (when matched)
        may_require_auth:
          type: boolean
          default: false
          description: True if the task likely requires authentication credentials
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for programmatic access. Create one in the Parse dashboard at
        https://parse.bot (Settings → API Keys). Keys start with 'pmx_'.

````