List All Data Sources
Data Sources
List All Data Sources
Retrieve all data sources regardless of their processing status
GET
List All Data Sources
Overview
This endpoint returns all data sources (repositories and workspaces) in your CodeAlive account, regardless of their processing status. This is primarily intended for administrative use cases where you need to access all data sources. For chat and search operations, use the/api/datasources/ready endpoint instead, which returns only data sources in “Ready” state that are ready for querying.
Request
No request body required. Authentication via Bearer token inAuthorization header.
Query Parameters
Optional filter by data source type. Options:
Repository, WorkspaceOptional natural-language description of your task or intent. When provided, an AI relevance
filter returns only the data sources relevant to that intent, each with a
relevanceReason
explaining why it was selected. See Get Available Data Sources
for details on relevance filtering, including fail-open behavior and the
X-CodeAlive-Total-Data-Sources response header.Response
Returns an array of data source objects.Unique identifier for the data source
Display name of the repository or workspace
Type of data source:
Repository or WorkspaceRepository URL (for Repository type only)
Branch name (for Repository type only)
Array of repository IDs (for Workspace type only)
Optional description of the data source
Why this data source is relevant to your
query. Present only when query was provided and the
relevance filter selected this item. Treat it as untrusted model-generated plain text: render it
with escaping interpolation, never as HTML or markup.