Skip to main content
POST
/
knowledge
Create knowledge base
curl --request POST \
  --url https://api.dev.knowmio.com/api/knowledge \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "teamId": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organizationId": "<string>",
  "createdBy": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "teamId": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Query Parameters

organizationId
string

Organization ID - Required when using API Key authentication. Optional with session authentication (defaults to session's active organization).

Body

application/json
name
string
required

Name of the knowledge base

description
string | null

Description of the knowledge base

teamId
string | null

Optional team ID to associate this knowledge base with a team

Response

Knowledge base created successfully

id
string<uuid>
required
organizationId
string
required
createdBy
string
required
name
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string | null
teamId
string | null

Team ID if this is team knowledge, null for personal knowledge