Knowledge Base (Old)

Get All Text Nodes of an AI Assistant's Files

GET /api/chatbot-text-nodes/

Parameters

Parameter Name
Required
Type
Description

chatbotFile

string

Chatbot File ID

cursor

string

The pagination cursor value.

pageSize

integer

Number of results to return per page.

Code Examples

# Call API Example (Shell)
curl -X GET "https://api.maiagent.ai/api/chatbot-text-nodes/?chatbotFile=example&cursor=example&pageSize=1" \
  -H "Authorization: Api-Key YOUR_API_KEY"

# Please replace YOUR_API_KEY and verify the request data before execution.

Response Body

Status Code: 200

Response Schema Example

{
  "next"?: string (uri) // Optional
  "previous"?: string (uri) // Optional
  "results": [
    {
      "id": string (uuid)
      "charactersCount": integer
      "hitsCount": integer
      "text": string
      "updatedAt": string (timestamp)
      "filename": string
      "chatbotFile": string (uuid)
      "pageNumber": integer
    }
  ]
}

Example Response Value


Retrieve a specific text node of an AI assistant's file

GET /api/chatbot-text-nodes/{id}/

Parameters

Parameter Name
Required
Type
Description

id

string

A UUID string identifying this ChatbotTextNode.

Code Examples

Response Body

Status Code: 200

Response Schema Example

Response Example Value


Search Test

POST /api/chatbots/{id}/search/

Parameters

Parameter Name
Required
Type
Description

id

string

A UUID string identifying this Chatbot.

largeLanguageModel

string

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

query

string

replyMode

string

Code Examples

Response Body

Status Code: 200

Response Schema Example

Response Example Value


List Parsers Supported by File Type

GET /api/parsers/supported-file-types/

Code Example

Response Body

Status Code: 200

Response Schema Example

Response Example Value


Last updated

Was this helpful?