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

# Re-sync a knowledge base from its source

> Syncs a connector's knowledge base (intercom, zendesk, notion, google_drive, sharepoint, website, devrev) now, as Refresh on its page in the app does, instead of waiting for the daily sync: the source is read again and only what changed is indexed again. It runs in the background: the answer, a 202, says it is queued, and the documents show as they are indexed. A knowledge base with no connector (api, upload, team_answers) is a 409, and a 503 says the sync could not be queued: retry. A digital worker's own key can't start one.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/knowledge_bases/{knowledge_base_id}/sync
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/knowledge_bases/{knowledge_base_id}/sync:
    post:
      tags:
        - knowledge_bases
      summary: Re-sync a knowledge base from its source
      description: >-
        Syncs a connector's knowledge base (intercom, zendesk, notion,
        google_drive, sharepoint, website, devrev) now, as Refresh on its page
        in the app does, instead of waiting for the daily sync: the source is
        read again and only what changed is indexed again. It runs in the
        background: the answer, a 202, says it is queued, and the documents show
        as they are indexed. A knowledge base with no connector (api, upload,
        team_answers) is a 409, and a 503 says the sync could not be queued:
        retry. A digital worker's own key can't start one.
      operationId: knowledge_bases_sync
      parameters:
        - description: The knowledge base's id, from GET /v1/knowledge_bases
          in: path
          name: knowledge_base_id
          required: true
          schema:
            type: string
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncStarted'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SyncStarted:
      properties:
        id:
          description: The knowledge base's id
          title: Id
          type: string
        source:
          description: >-
            The connector it syncs from: devrev, google_drive, intercom, notion,
            sharepoint, website, zendesk
          title: Source
          type: string
        status:
          const: queued
          default: queued
          description: >-
            The sync is queued; it runs in the background. Its documents show as
            they are indexed
          title: Status
          type: string
      required:
        - id
        - source
      title: SyncStarted
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.