---
title: "List Sources"
method: GET
path: "/knowledge-base/sources"
tags: ["sources"]
---

# List Sources

`GET /knowledge-base/sources`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/knowledge-base/sources`
- Auth: HTTP bearer

List all sources with cursor-based pagination.

## Query parameters

- `created_after` string, date-time, nullable: Filter sources created after this datetime
- `created_before` string, date-time, nullable: Filter sources created before this datetime
- `updated_after` string, date-time, nullable: Filter sources updated after this datetime
- `updated_before` string, date-time, nullable: Filter sources updated before this datetime
- `name` string, nullable: Filter sources by name
- `pattern` string, nullable: Pattern to match source names (PostgREST match)
- `limit` integer, nullable: Limit the number of sources returned
- `cursor` string, nullable: Cursor for pagination

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- PaginatedSourceResponse
  - `data` SourceSchema[], required
    - `id` string, uuid, required
    - `organization_id` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `created_by` string, nullable
    - `modified_by` string, nullable
    - `type` 'FILE' | 'URL', required
    - `name` string, required
    - `domain` string, nullable
    - `file_upload_status` 'PENDING' | 'IN_PROGRESS' | 'COMPLETE' | 'FAILED', required
    - `chunking_strategy` ChunkingStrategy, required
      - `method` 'fixed' | 'structure_based', required
      - `chunk_size` integer, nullable
    - `file_processor` 'pymupdf'
    - `file_size` integer, nullable
    - `description` string, nullable
  - `pagination` RoutesKnowledgeBaseModelsCommonPaginationMeta, required
    - `limit` integer, required
    - `next_cursor` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
