List collections
GET
/api/collections
const url = 'https://firma.company-gpt.com/companygpt/rag/api/api/collections?filter=mine';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/collections?filter=mine' \ --header 'Authorization: Bearer <token>'List collections accessible to the caller. Not paginated — returns every matching collection.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“filter
string
Scope of collections to return (default: all)
Responses
Abschnitt betitelt „Responses“List of collections
Media typeapplication/json
Response for GET /api/collections. Note there is no pagination — the endpoint returns every collection the “filter” query selects in a single array.
object
collections
required
Array<object>
Enriched collection representation returned ONLY by GET /api/collections (the list endpoint) — adds RBAC/display metadata not present on CollectionInfo.
object
id
required
string format: uuid
name
required
string
displayName
required
string
description
required
string
ownerId
required
string format: uuid
owner
object
id
required
string format: uuid
email
required
string
name
string
visibility
required
string
searchLanguage
required
string
collectionType
required
string
datasetMode
string
liveSchema
object
structuredExtractionEnabled
required
boolean
extractionInstructions
string
extractionMaxPages
integer
imageDescriptionsEnabled
required
boolean
imageDescriptionMode
string
tableSizeBytes
required
Total on-disk size of the vector table including indexes
integer format: int64
myRole
required
string
shareCount
required
integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "collections": [ { "visibility": "private", "collectionType": "rag", "datasetMode": "imported", "imageDescriptionMode": "all", "myRole": "owner" } ]}Invalid filter value
Unauthorized