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

# Trigger Sync

> Trigger a manual resync for a connector source.

Uses a single session (svc.session) for both the parent job insert and the
atomic source-status flip, so the writes commit together. The UPDATE is
guarded by `status IN ('active','error')` so concurrent trigger_sync calls
can't both flip the same source into SYNCING.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/knowledge-base/knowledge-bases/{kb_id}/sources/{source_id}/sync
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/knowledge-base/knowledge-bases/{kb_id}/sources/{source_id}/sync:
    post:
      tags:
        - knowledge-base-connectors
      summary: Trigger Sync
      description: >-
        Trigger a manual resync for a connector source.


        Uses a single session (svc.session) for both the parent job insert and
        the

        atomic source-status flip, so the writes commit together. The UPDATE is

        guarded by `status IN ('active','error')` so concurrent trigger_sync
        calls

        can't both flip the same source into SYNCING.
      operationId: >-
        trigger_sync_v1_knowledge_base_knowledge_bases__kb_id__sources__source_id__sync_post
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
        - name: source_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncTriggerResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SyncTriggerResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
      type: object
      required:
        - job_id
        - status
        - message
      title: SyncTriggerResponse
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````