Skip to main content

Create a Knowledge Base

Create a Knowledge Base with POST /v1/knowledge-bases. The full request/response shape is in the interactive OpenAPI.

curl -sS https://api.alt.advania.ai/v1/knowledge-bases \
-H "Authorization: Bearer $ALT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "engineering-docs" }'

The response returns the KB id. Use it in subsequent calls to add documents, search, or run retrieve-and-generate against this KB.