Knowledge Bases

Create a knowledge base

Create a hosted knowledge base. Names are unique per organization (case-insensitive). Requires the kb:manage scope.

post/v1/knowledgebases

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/v1/knowledgebases
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

namestring required
embed_modelstring

Embedding model id. Defaults to the platform standard; change only with guidance.

Response

Knowledge base created

idstring
orgIdstring
namestring
embedModelstring
docCountinteger
bytesinteger
status'active' | 'deleted'
createdAtinteger

Unix ms.

Changes

No recorded changes to this operation across all 2 revisions of this API.