Skip to main content
GET
/
knowledge
/
collections
JavaScript
import Reminix from '@reminix/sdk';

const client = new Reminix({
  apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const knowledgeCollection of client.knowledge.collections.list()) {
  console.log(knowledgeCollection.id);
}
{
  "data": [
    {
      "id": "<string>",
      "projectId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "embeddingModel": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "documentCount": 123,
      "readyDocumentCount": 123
    }
  ],
  "nextCursor": "<string>",
  "hasMore": true
}

Authorizations

Authorization
string
header
required

API Key or Personal Access Token (PAT). When using PAT, include X-Project header.

Query Parameters

limit
number
default:20
Required range: 1 <= x <= 100
cursor
string

Response

List of collections

data
object[]
required
nextCursor
string | null
required
hasMore
boolean
required