Knowledge base
Create a knowledge base entry
Creates a new knowledge base entry for a replica based on text, file, URL, or Youtube Videos. For YouTube playlists, the system will automatically create separate entries for each video in the playlist.
post/v1/replicas/{replicaUUID}/knowledge-base
Request
- Base URL: https://api.sensay.io
- URL: https://api.sensay.io/v1/replicas/{replicaUUID}/knowledge-base
- Auth: one of:
- API key in header X-ORGANIZATION-SECRET
- API key in header X-ORGANIZATION-SECRET and API key in header X-USER-ID and API key in header X-USER-ID-TYPE
Path parameters
replicaUUIDstring uuid required
The replica unique identifier (UUID)
Example:03db5651-cb61-4bdf-9ef0-89561f7c9c53
Headers
X-API-Versionstring
Example:2025-03-25
Content-Encoding'gzip'
Content encoding for request body compression. Optional - when used, client is responsible for gzipping and sending binary data.
Request body
Example request
{
"title": "Company information",
"url": "https://example.com",
"text": "Our company was founded in 2020. We specialize in AI-powered customer service solutions.",
"filename": "example.txt"
}Response
The created knowledge base entry
Example response
{
"success": true,
"results": []
}Changes
No recorded changes to this operation across all 1 revision of this API.