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

Response

OK

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