cURL
curl --request POST \ --url https://web-api.clerk.chat/public/knowledge-base/batch \ --header 'Content-Type: application/json' \ --header 'apiKey: <api-key>' \ --data ' { "sources": [ { "title": "RCS Overview", "content": "RCS is a revolutionary customer support tool..." } ], "upsert": false } '
{ "data": [ { "id": 123, "title": "<string>", "status": "processing" } ], "total": 1 }
Upload multiple raw text sources to the knowledge base
Documentation IndexFetch the complete documentation index at: https://docs.clerk.chat/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.clerk.chat/llms.txt
Use this file to discover all available pages before exploring further.
The list of sources to upload
Show child attributes
If true, updates existing sources with matching titles. If false, creates new sources (default: false)
false
Batch upload initiated successfully
The total number of sources uploaded
1