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

# Get source

> Retrieve a single knowledge-base source by ID

Returns one knowledge-base source (file, URL, or domain document).

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Project API key for this organization and project. Format: `bot_live_…`
</ParamField>

## Path parameters

<ParamField path="organization_id" type="string" required>
  Organization ID. Must match the API key.
</ParamField>

<ParamField path="project_id" type="string" required>
  Project ID. Must match the API key.
</ParamField>

<ParamField path="source_id" type="string" required>
  Source / document ID.
</ParamField>

## Response

Returns the source object (`name`, `source_type`, `sync_status`, file metadata, crawl metadata, timestamps).

## Errors

<ResponseField name="401" type="Unauthorized">
  Missing, invalid, or revoked API key.
</ResponseField>

<ResponseField name="403" type="Forbidden">
  API key is not authorized for this organization or project.
</ResponseField>

<ResponseField name="404" type="Not Found">
  Source not found.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/SOURCE_ID" \
    -H "X-API-Key: bot_live_YOUR_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    `https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/${sourceId}`,
    { headers: { "X-API-Key": process.env.BOTCADENCE_API_KEY } }
  );
  ```

  ```python Python theme={null}
  import os
  import requests

  response = requests.get(
      f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/{source_id}",
      headers={"X-API-Key": os.environ["BOTCADENCE_API_KEY"]},
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "success",
    "message": "Document retrieved successfully",
    "data": {
      "_id": "665f50000000000000000001",
      "name": "faq.pdf",
      "source_type": "files",
      "sync_status": "success",
      "file_size": 204800,
      "file_type": "application/pdf",
      "s3_key": "indexing/projects/PROJECT_ID/faq.pdf",
      "project_id": "PROJECT_ID",
      "organization_id": "ORG_ID",
      "created_at": "2026-07-21T10:00:00Z",
      "updated_at": "2026-07-21T10:05:00Z"
    },
    "status_code": 200
  }
  ```
</ResponseExample>
