Nirmos
Knowledge

Create Knowledge Base

Create Knowledge Base — Nirmos Control Plane REST API.

POST
/v1/knowledge-bases

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/knowledge-bases" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "embeddingModel": "string",    "embeddingDimensions": 1  }'
{  "data": {    "id": "string",    "name": "string",    "slug": "string",    "description": "string",    "embeddingModel": "string",    "embeddingDimensions": 0,    "distanceMetric": "string",    "vectorStoreConnectionId": "string",    "chunkingStrategy": "string",    "chunkSize": 0,    "chunkOverlap": 0,    "retrievalConfiguration": "string",    "status": "string",    "documentCount": 0,    "chunkCount": 0,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}