API reference
Agent Knowledge Base
4 endpoints. Add your API key in the authentication panel to send test requests from this page.
Get agent knowledge base
GET
/api/external/v1/agents/{agentId}/knowledge-baseRetrieves the current knowledge base state, including all configured items, for a specific AI agent.
Parameters
agentIdstring (uuid)pathRequired
Responses
200Agent knowledge base state401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Create knowledge base item
POST
/api/external/v1/agents/{agentId}/knowledge-base/itemsCreates a new knowledge base item and associates it with the specified AI agent. Items can be web scrapes, text snippets, or other sources.
Parameters
agentIdstring (uuid)pathRequired
Request body application/json
titlestringdescriptionstringscopestringtypestringsourceConfigobjectattachToFlowboolean
Responses
201Knowledge base item created successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Update knowledge base item
PUT
/api/external/v1/agents/{agentId}/knowledge-base/items/{itemId}Updates an existing knowledge base item associated with the specified AI agent.
Parameters
agentIdstring (uuid)pathRequireditemIdstring (uuid)pathRequired
Request body application/json
titlestringdescriptionstringscopestringtypestringsourceConfigobjectattachToFlowboolean
Responses
200Knowledge base item updated successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Delete knowledge base item
DELETE
/api/external/v1/agents/{agentId}/knowledge-base/items/{itemId}Permanently deletes a knowledge base item from the specified AI agent's knowledge base.
Parameters
agentIdstring (uuid)pathRequireditemIdstring (uuid)pathRequired
Responses
204Knowledge base item deleted successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found