Knowledge Base Nodes API
This document provides detailed information about the REST API's available for the Alli Knowledgebase Node Manipulation.
Constants
Constants Tables
Status
on
The knowledge base node is active.
off
The knowledge base node is inactive.
NodeType
file
Represents a knowledge base file.
folder
Represents a folder within the knowledge base.
ProcessState
initializing
The node is being initialized.
parsing
The node is currently being parsed.
parsing_fail
Parsing failed for the node.
completed
The node has completed processing.
retrying
The system is retrying the process.
post_parsing
Post-parsing is in progress.
post_parsing_fail
Post-parsing failed for the node.
post_completed
Post-parsing has been completed successfully.
post_retrying
The system is retrying post-parsing.
SearchOperator
and
Results must match all specified criteria.
or
Results can match any of the specified criteria.
KnowledgeBaseNodeOrder
name_asc
Sorts by name in ascending order.
name_desc
Sorts by name in descending order.
updated_at_asc
Sorts by last updated time in ascending order.
updated_at_desc
Sorts by last updated time in descending order.
created_at_asc
Sorts by creation time in ascending order.
created_at_desc
Sorts by creation time in descending order.
Search Knowledge Base Nodes
POST
/webapi/v2/knowledge_base_nodes/search
Get knowledge base node list by filter.
Headers
API-KEY*
string
Your API key can be found in your dashboard Settings menu, under the General tab.
Request Body
filter_
Object
Contains criteria for filtering results.
└─ parentFolderIds
Array of string
Filter knowledge base nodes whose parent folder ID is in the list. Use [null]
to get top-level knowledge base nodes.
└─ searchTerm
string
Search keyword. Searches folders and knowledge bases. Uses ElasticSearch for knowledge base searches if the project's document search mode is EXACT_AND_ELASTICSEARCH
.
└─ hashtags
Array of string
Filter knowledge base nodes that have the specified hashtags.
└─ hashtagsSearchOperator
Array of string
Determines whether the hashtags
filter applies AND
or OR
conditions.
└─ excludingHashtags
Array of string
Filter knowledge base nodes that do not have the specified hashtags.
└─ excludingHashtagsSearchOperator
string
Determines whether the excludingHashtags
filter applies AND
or OR
conditions.
└─ processState
Array of ProcessStateEnum
Filter by process state.
└─ status
Array of KnowledgeBaseNodeOnOffState
Filter by status in the docs tab ("on"
or "off"
).
└─ nodeType
Array of KnowledgeBaseNodeType
Filter by node type ("file"
or "folder"
).
└─ knowledgeBaseIds
Array of string
Filter by knowledge base IDs.
Additional Parameters
order
KnowledgeBaseNodeOrder
Specifies the order of results. Default is UPDATED_AT_DESC
.
limit
integer
Limits the result count. Default is 10
.
after
string
Cursor for pagination. If not provided, the server returns results starting from the first value of the filtered set, limited to the limit
count.
You will get the result in the following JSON format:
id
: Knowledge base node ID.name
: Knowledge base node name.createdAt
,updatedAt
: Timestamps indicating when the knowledge base node was created and last updated.nodeType
: Knowledge base node type (e.g.,"folder"
or"file"
).hashtags
: Array of hashtags associated with the knowledge base node.status
: Status of the knowledge base node (e.g.,"on"
or"off"
).size
: Size of the knowledge base file in bytes (only fornodeType: file
).processState
: Process status of the knowledge base node (e.g.,"completed"
).cursor
: Use this value in theafter
field of the request body to fetch the next set of results starting from the last index of the current result.
Request Example
Response Example
Using Cursor-Based Paging
Request Example
Request Response
If you put NjcxZmVjMmUzZjBkYzQ2NTljOGRlODcw:MTczMDE0NTMyNjQ5OQ==
in "after", you'll get items after the cursor.
Request Example
Request Reponse
id
: Knowledge base node ID.name
: Knowledge base node name.createdAt
,updatedAt
: Timestamps indicating when the knowledge base node was created and last updated.nodeType
: Knowledge base node type (e.g.,"folder"
or"file"
).hashtags
: Array of hashtags associated with the knowledge base node.status
: Status of the knowledge base node (e.g.,"on"
or"off"
).size
: Size of the knowledge base file in bytes (only fornodeType: file
).processState
: Process status of the knowledge base node (e.g.,"completed"
).cursor
: Use this value in theafter
field of the request body to fetch the next set of results starting from the last index of the current result.
Get Knowledge Base Nodes by Node-ID
Move Knowledge Base Nodes to Target Folder
Delete Knowledge Base Nodes
Create Folder
Update Folder
Get Agents
Last updated
Was this helpful?