List data sources
GET
/api/sources
const url = 'https://firma.company-gpt.com/companygpt/rag/api/api/sources?type=webcrawl';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“type
string
Filter by source type
Responses
Abschnitt betitelt „Responses“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
config
required
Source-specific configuration
object
key
additional properties
any
enabled
required
boolean
syncSchedule
string
collectionId
string format: uuid
createdBy
string format: uuid
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
lastSyncAt
string format: date-time
syncInProgress
required
boolean
createdByEmail
string
Example
[ { "sourceType": "webcrawl", "syncSchedule": "hourly" }]Unauthorized