Skip to main content
GET
/
api
/
datasources
/
all
Gets all data sources (repositories and workspaces) regardless of their state. This endpoint is primarily intended for administrative use cases where all data sources need to be accessed regardless of their processing status. (Auth policies: ApiKeyOrJwt)
curl --request GET \
  --url https://app.codealive.ai/api/datasources/all \
  --header 'Authorization: Bearer <token>'
[
  {
    "name": "MyApiProject",
    "readiness": "NotReady",
    "id": "60d21b4667d0d63ce0f9a1d1",
    "type": "Repository"
  },
  {
    "name": "Development Workspace",
    "readiness": "NotReady",
    "id": "60d21b4667d0d63ce0f9a1d2",
    "type": "Workspace"
  }
]

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token. Example: "Authorization: Bearer {apiKey}"

Headers

CodeAlive-Version
string

Query Parameters

type
enum<string>

Optional filter by data source type

Available options:
Repository,
Workspace
query
string

Optional user-intent query. When supplied, an agentic relevance filter narrows the list to the relevant subset, each annotated with a relevanceReason. Empty/absent leaves the listing unchanged (no LLM call). Ignored for public-chat API keys (world-visible credentials never trigger LLM calls). Filter failures degrade to the full list (never 5xx).

Response

OK

id
string | null
required
name
string | null
required
type
enum<string>
Available options:
Repository,
Workspace
fullName
string | null
url
string | null
repositoryIds
string[] | null
branch
string | null
description
string | null
readiness
any
relevanceReason
string | null