Create knowledge base document from text

Create a knowledge base document containing the provided text.

Headers

xi-api-keystringRequired

Request

This endpoint expects an object.
textstringRequired

Text content to be added to the knowledge base.

namestringOptional

A custom, human-readable name for the document.

Response

Successful Response

idstring
namestring
prompt_injectableboolean

Errors