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

# Sync a website source

> Start a crawl of a website source now, outside its regular schedule.

The request returns `202` as soon as the crawl is queued, before it
finishes. Poll `GET .../sources/{sourceId}` to track progress.

Only website sources can be synced; syncing a file source returns
`400`. A `409` means a crawl of this source is already running. A `503`
means the crawl could not be queued; retry the same request.



## OpenAPI

````yaml POST /v1/agents/{agentId}/knowledge-base/sources/{sourceId}/sync
openapi: 3.1.0
info:
  title: PolyAI Agents API
  version: 1.0.11
  description: Manage PolyAI agents, telephony, deployments, and real-time configs.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.eu.poly.ai
    description: EU region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.studio.poly.ai
    description: Studio region
security:
  - polyApiKey: []
paths:
  /v1/agents/{agentId}/knowledge-base/sources/{sourceId}/sync:
    parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
      - name: sourceId
        in: path
        required: true
        schema:
          type: string
    post:
      tags:
        - Source Hub
      summary: Sync a website source
      description: |-
        Start a crawl of a website source now, outside its regular schedule.

        The request returns `202` as soon as the crawl is queued, before it
        finishes. Poll `GET .../sources/{sourceId}` to track progress.

        Only website sources can be synced; syncing a file source returns
        `400`. A `409` means a crawl of this source is already running. A `503`
        means the crawl could not be queued; retry the same request.
      responses:
        '202':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncSourceResponse'
        '400':
          description: Validation error
        '401':
          description: Unauthorized – missing or invalid API key
        '403':
          description: Forbidden – insufficient permissions
        '404':
          description: Resource not found
components:
  schemas:
    SyncSourceResponse:
      description: A website source for which a crawl was queued.
      type: object
      properties:
        id:
          description: Unique identifier of the source
          type: string
      required:
        - id
  securitySchemes:
    polyApiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````