Register Knowledge Unit
Register a new knowledge unit (file or URL) to your bot’s knowledge base for indexing.
Supported Sources:
- URLs (KnowledgeSource = 1): Web pages, documentation, articles
- Files (KnowledgeSource = 0): PDF, DOCX, TXT, and other document formats
Process:
- For files: First upload using the upload URL endpoint
- Create a knowledge unit with file details or URL
- System automatically indexes the content
- Content becomes available for RAG queries
Note: Example requests/responses shown here are illustrative. When using the live “Try it” tool, you may see two responses: an HTTP status preview and the API’s JSON body.
POST
Documentation Index
Fetch the complete documentation index at: https://doc.widebot.sa/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your API key from account settings
Your bot ID from account settings
Path Parameters
Bot ID to add knowledge to
Body
application/json
Title for the knowledge entry
Example:
"API Documentation"
Source type for the knowledge
Available options:
0, 1 Example:
1
Array of URLs (when KnowledgeSource = 1)
Example:
["https://en.wikipedia.org/wiki/API"]Description of the knowledge content
Example:
"API documentation for testing"

