AI Agents
Add a source
POST
Adds one source, up to 30 per knowledge set. A website is read before the answer comes back, then again every 7 days while an agent uses it. Text, FAQ, and files are ready right away. Needs the admin role. Needs AI Agent on the workspace's account; without it the endpoint answers 404 feature.unavailable.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
knowledgeBaseId*stringapplication/json- body
website takes title and url. text takes title and body. faq takes title and faq. file takes fileName and data.
type*stringValue in
"website""text""faq""file"title?stringUp to 60 characters on a website.
Length
1 <= length <= 120url?stringFormat
uriLength
length <= 500body?stringLength
1 <= length <= 10000faq?array<>Items
1 <= items <= 50fileName?stringWith the extension: pdf, docx, csv, txt, md.
Length
length <= 200data?stringThe file as base64, up to 1.4 MB before encoding.
The new source.
application/json- response
data?Fields depend on type: url, readAt, and chars on a website, body on text, faq on an FAQ, and the file details on a file.
curl -X POST 'https://api.eksis.io/v1/ai-agents/library/knowledge/string/sources' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{ "type": "website"}'{ "data": { "id": "string", "type": "website", "title": "string", "url": "string", "body": "string", "faq": [ { "question": "string", "answer": "string" } ], "fileName": "string", "fileType": "pdf", "fileSize": 0, "status": "pending", "error": "string", "readAt": "2019-08-24T14:15:22Z", "chars": 0, "createdAt": "2019-08-24T14:15:22Z" }}