Skip to main content
GET
/
v1
/
projects
/
{projectId}
/
knowledgebases
List Knowledgebases
curl --request GET \
  --url https://api.pathors.com/v1/projects/{projectId}/knowledgebases \
  --header 'Authorization: <authorization>'
{
  "id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "embeddingModelName": "<string>",
  "chunkSize": 123,
  "chunkOverlap": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.pathors.com/llms.txt

Use this file to discover all available pages before exploring further.

Request

GET https://api.pathors.com/v1/projects/{projectId}/knowledgebases

Path Parameters

projectId
string
required
The project ID

Headers

Authorization
string
required
Bearer token using your developer key

Response

Returns an array of knowledgebase objects. Each project is currently limited to one knowledgebase.
id
string
Unique identifier for the knowledgebase
name
string
Name of the knowledgebase
type
string
Knowledgebase backend (currently only pgvector)
embeddingModelName
string
Embedding model. One of text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large.
chunkSize
number
Maximum chunk size in characters
chunkOverlap
number
Overlap between adjacent chunks in characters

Example

curl https://api.pathors.com/v1/projects/{projectId}/knowledgebases \
  -H "Authorization: Bearer dk_your_key"
[
  {
    "id": "kb_abc123",
    "name": "My Knowledge Base",
    "type": "pgvector",
    "embeddingModelName": "text-embedding-3-small",
    "chunkSize": 500,
    "chunkOverlap": 50
  }
]