Create knowledge base

View as Markdown
Create a new knowledge base. The slug is derived from the name when omitted and is immutable after creation.

Authentication

X-API-Keystring

API key supplied via the X-API-Key header. Takes precedence over bearerApiKey when both are present.

OR
AuthorizationBearer

Same organization API key supplied as a Bearer token in the Authorization header (Authorization: Bearer <key>). Compatible with OpenAI-SDK-standard clients. Accepted by all authenticated endpoints; if both X-API-Key and Authorization: Bearer are present, X-API-Key wins.

Request

This endpoint expects an object.
orgSlugstringRequired
namestringRequired1-120 characters
slugstringOptionalformat: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
descriptionstringOptional
queryPromptstringOptional

Response

OK
any
OR
any