The API reference moved here from eksis.io/developers.
AI Agents

Change a source

PATCH
/v1/ai-agents/library/knowledge/{knowledgeBaseId}/sources/{sourceId}

Every type takes title. A website also takes url (a new address is read right away) and reread to read it again now; text takes body; an FAQ takes faq, replaced whole. A file keeps its content: delete it and add the new file. Needs the admin role. Needs AI Agent on the workspace's account; without it the endpoint answers 404 feature.unavailable.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

knowledgeBaseId*string
sourceId*string

Request Body

application/json
  1. body
title?string
Length1 <= length <= 120
url?string
Formaturi
Lengthlength <= 500
reread?boolean
body?string
Length1 <= length <= 10000
faq?array<>
Items1 <= items <= 50

Response Body

The source after the change.

application/json
  1. 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 PATCH 'https://api.eksis.io/v1/ai-agents/library/knowledge/string/sources/string' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{}'
{  "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"  }}