Zum Inhalt springen

List data sources

GET
/api/sources
curl --request GET \
--url 'https://firma.company-gpt.com/companygpt/rag/api/api/sources?type=webcrawl' \
--header 'Authorization: Bearer <token>'

List data sources accessible to the caller, optionally filtered by type. Not paginated.

type
string
Allowed values: webcrawl sharepoint nextcloud git

Filter by source type

List of sources

Media typeapplication/json
Array

Element of the array returned by GET /api/sources — a SourceConfig plus runtime fields (handlers.SourceConfigResponse embeds *database.SourceConfig)

object
id
required
string format: uuid
name
required
string
sourceType
required
string
Allowed values: webcrawl sharepoint nextcloud git
config
required

Source-specific configuration

object
key
additional properties
any
enabled
required
boolean
syncSchedule
string
nullable
Allowed values: hourly daily weekly
collectionId
string format: uuid
nullable
createdBy
string format: uuid
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
lastSyncAt
string format: date-time
nullable
syncInProgress
required
boolean
createdByEmail
string
Example
[
{
"sourceType": "webcrawl",
"syncSchedule": "hourly"
}
]

Unauthorized