v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
Agents Platform

Create Text Document

Create a knowledge base document containing the provided text.

post/v1/convai/knowledge-base/text

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

textstring required

Text content to be added to the knowledge base.

namestring nullable

A custom, human-readable name for the document.

parent_folder_idstring nullable

If set, the created document or folder will be placed inside the given folder.

Response

Successful Response

idstring required
namestring required