Add To Knowledge Base
DeprecatedUpload a file or webpage URL to create a knowledge base document.
After creating the document, update the agent’s knowledge base by calling Update agent.
Headers
xi-api-key
Request
This endpoint expects a multipart form containing an optional file.
name
A custom, human-readable name for the document.
url
URL to a page of documentation that the agent will have access to in order to interact with users.
file
Documentation that the agent will have access to in order to interact with users.
Response
Successful Response
id
name
prompt_injectable