Create a knowledge base
POST /v1/knowledge-bases
Create a new knowledge base. A knowledge base is a logical collection of documents scoped to a use case, customer, or domain. All searches are scoped to a single knowledge base.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Knowledge base name
Example
Product DocumentationOptional description
Example
All product docs and guidesArbitrary JSON metadata
object
Example
{ "team": "engineering"}Responses
Section titled “ Responses ”Knowledge base created
object
object
Knowledge base ID (prefixed with kb_)
Example
kb_a1b2c3d4e5Owning account ID
Example
acc_x9y8z7w6v5Knowledge base name
Example
Product DocumentationOptional description
Example
All product docs and guidesArbitrary JSON metadata
object
Example
{ "team": "engineering", "version": 3}Number of documents in this knowledge base
Example
42Example
2026-02-10T12:00:00.000ZExample
2026-02-10T14:30:00.000ZRequest validation failed
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid request body", "details": { "issues": [ { "path": [ "name" ], "message": "Required" } ] } }}Authentication failed or missing
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "AUTHENTICATION_ERROR", "message": "Invalid or missing API key" }}Rate limit exceeded
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Rate limit exceeded" }}