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

# Get a knowledge source and its config

> Retrieve one source and the configuration it was created with. Any role in the organisation can read it; for its latest run, ask for the source's latest job.

Returns `404` both for an ID that does not exist and for a source that belongs to another organization. A malformed ID also returns `404`. Any role in the organization can read a source.

To see the source's latest ingestion run, call [Get a source's latest job](/api-reference/knowledge/get-source-job).

<ParamField path="source_id" type="string" required>
  Source ID (a UUID).
</ParamField>

## Response

<ResponseField name="id" type="string" required>
  Source ID (a UUID).
</ResponseField>

<ResponseField name="collection_id" type="string" required>
  Collection the source ingests into.
</ResponseField>

<ResponseField name="source_type" type="string" required>
  `website`, `sitemap`, `github` or `upload`.
</ResponseField>

<ResponseField name="name" type="string" required>
  Display name.
</ResponseField>

<ResponseField name="configuration" type="object" required>
  Stored configuration. Every value is a string. See [Create a
  source](/api-reference/knowledge/create-source).
</ResponseField>

<ResponseField name="status" type="string" required>
  `active`, `paused` or `disabled`. Only an `active` source is ingested.
</ResponseField>

<ResponseField name="last_source_version" type="string | null" required>
  Source version read by the last ingestion run that ended `succeeded` or `partial`. `null` if never
  ingested.
</ResponseField>

<ResponseField name="last_ingested_at" type="string | null" required>
  ISO 8601 timestamp in UTC of the last ingestion run that ended `succeeded` or `partial`. `null` if
  never ingested.
</ResponseField>

<ResponseField name="created_at" type="string" required>
  ISO 8601 timestamp, in UTC.
</ResponseField>

<ResponseField name="updated_at" type="string" required>
  ISO 8601 timestamp, in UTC.
</ResponseField>

<RequestExample>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl --request GET "$MITHUNAI_URL/arukz/api/v1/knowledge/sources/5d1e7a90-3c4b-4f2a-8e61-7b9c0d2f4a13" \
    --header "Authorization: Bearer $MITHUNAI_API_KEY"
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import os, requests

  source_id = "5d1e7a90-3c4b-4f2a-8e61-7b9c0d2f4a13"
  response = requests.get(
      f"{os.environ['MITHUNAI_URL']}/arukz/api/v1/knowledge/sources/{source_id}",
      headers={"Authorization": f"Bearer {os.environ['MITHUNAI_API_KEY']}"},
      timeout=60,
  )
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const sourceId = '5d1e7a90-3c4b-4f2a-8e61-7b9c0d2f4a13'
  const response = await fetch(
    `${process.env.MITHUNAI_URL}/arukz/api/v1/knowledge/sources/${sourceId}`,
    { headers: { Authorization: `Bearer ${process.env.MITHUNAI_API_KEY}` } },
  )
  console.log(await response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "id": "5d1e7a90-3c4b-4f2a-8e61-7b9c0d2f4a13",
    "collection_id": "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88",
    "source_type": "website",
    "name": "Product documentation site",
    "configuration": {
      "seed_url": "https://docs.example.com/",
      "path_prefix": "/guides",
      "max_depth": "3",
      "max_pages": "1000",
      "include_paths": "",
      "exclude_paths": "/guides/archive/"
    },
    "status": "active",
    "last_source_version": null,
    "last_ingested_at": null,
    "created_at": "2026-09-24T10:16:30.119842",
    "updated_at": "2026-09-24T10:16:30.119842"
  }
  ```

  ```json 404 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  { "code": "not_found", "message": "The knowledge source was not found." }
  ```
</ResponseExample>
