Knowledge Base
Create Knowledge Base
Create a knowledge base for agent context.
POST
Create Knowledge Base
Changes state - verify before retry
A knowledge base is a named collection of your own content that an agent can draw on to answer questions accurately. Create one knowledge base per topic or product area, then attach it to the agents that should use it.
When to use this
Use this endpoint to spin up a knowledge base before uploading documents to it - for example, one knowledge base per product line, or one per customer in a multi-tenant setup. The name must be unique within your workspace: a duplicate returns409 Conflict. It may be up to 150 characters and must not be blank; a blank name or a longer one returns 400 Bad Request.
Minimal request
Verify and continue
Store the returnedkb_ ID, list knowledge bases to confirm the record, add content with Upload Knowledge Base Document (or in the dashboard), then attach the ID to an agent version with knowledge_base_ids. If creation times out, list by name before retrying so you do not create a duplicate.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Knowledge base name, at most 150 characters and not blank.
Maximum string length:
150Pattern:
\SExample:
"Product Documentation"