Skip to main content
POST
/
api
/
knowledge-base
Create Knowledge Base
curl --request POST \
  --url https://api.getello.ai/api/knowledge-base \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "urlName": "Ello.ai",
  "baseUrl": "https://getello.ai",
  "subLinks": "dsfsdfdsf",
  "type": "link"
}
'
{
  "status": 200,
  "message": "Single source knowledge base created successfully",
  "data": {
    "_id": "690108a004ea5e76d18034ab",
    "workspaceId": "685d4b93fb5b2e221dc80ea9",
    "userId": "685d4b93fb5b2e221dc80ea8",
    "name": "srikanth test",
    "description": "Single source knowledge base: srikanth test",
    "type": "link",
    "sources": [
      {
        "_id": "690108a004ea5e76d18034ad",
        "type": "link",
        "fileType": null,
        "name": "srikanth test",
        "content": null,
        "url": [
          "http://yesgnome.com"
        ],
        "filePath": null,
        "status": "completed",
        "error": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "metadata": {
          "fileName": null,
          "fileType": null,
          "fileKey": null,
          "websiteName": "srikanth test",
          "description": ""
        }
      }
    ],
    "status": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
urlName
string
required
Example:

"Ello.ai"

baseUrl
string
required
Example:

"https://getello.ai"

Example:

"dsfsdfdsf"

type
string
Example:

"link"

Response

Single source knowledge base created successfully

status
integer
Example:

200

message
string
Example:

"Single source knowledge base created successfully"

data
object