Skip to main content
POST
/
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
});

const knowledgeCollection = await client.knowledge.collections.create({ name: 'x' });

console.log(knowledgeCollection.id);
{
  "id": "<string>",
  "projectId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "embeddingModel": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "documentCount": 123,
  "readyDocumentCount": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Collection name

Required string length: 1 - 100
description
string

Collection description

Maximum string length: 500

Response

Collection created

id
string
required

Unique collection ID

projectId
string
required

Project ID

name
string
required

Collection name

description
string | null
required

Collection description

embeddingModel
string
required

Embedding model used

createdAt
string
required

When the collection was created

updatedAt
string
required

When the collection was last updated

documentCount
number

Total number of documents

readyDocumentCount
number

Number of processed documents