Full lifecycle management APIs for Knowledge Agent instances
Knowledge Agents are the runtime entities behind Knowledge Search (
First use Management APIs to create and deploy an Agent, obtain
All endpoints use POST + JSON body, path prefix
Agents have two scenes (
The
Write operations (create / update / deploy / delete / copy) require the corresponding Knowledge Base permissions, determined by the user's role in Workspace Member Management:
Users with the "Knowledge Base - FullAccess" permission can perform all of the above. If a call returns 403, the current user lacks the required permission — contact the workspace admin to adjust the role. Read operations (list / get) require only an API Key.
knowledge/search) and Knowledge Q&A (knowledge/chat). The Agent Management APIs support creating, configure, publish, query, and delete Agents programmatically — without needing to visit the console.
Relationship to runtime APIs
First use Management APIs to create and deploy an Agent, obtain agent_id, then use runtime APIs to perform search or Q&A.
Lifecycle
agent_config can only be modified on the beta draft version. Published versions only support modifying the agent_version_desc field; to update the configuration, first update the draft via the update endpoint, then publish a new version via the deploy endpoint. Deletion is a soft delete and the interface is idempotent: repeated deletion calls will not error.API list
All endpoints use POST + JSON body, path prefix /api/v1/indices/rag/app/.
| Operation | Endpoint | Description |
|---|---|---|
| Create Agent | POST /app/create | Create a new Agent; initial status draft |
| Update Agent | POST /app/update | Update name, description, or draft config |
| Deploy Agent | POST /app/deploy | Publish beta draft as a new version |
| Delete Agent | POST /app/delete | Soft delete; repeated deletions don't error |
| List Agents | POST /app/list | Paginated list of Agents in the current tenant |
| Get Agent | POST /app/get | Full Agent details; supports specifying a version |
| Copy Agent | POST /app/copy | Copy an existing Agent into a new draft |
Scenes
Agents have two scenes (agent_scene):
| Scene | Value | Purpose | Runtime API |
|---|---|---|---|
| Knowledge Q&A | chat | Configure Q&A model, citations, refusal, etc. | knowledge/chat |
| Knowledge Search | search | Configure multi-index routing, fusion, retrieval params | knowledge/search |
agent_config structure differs between scenes — see each endpoint's documentation.
Externally
chat is used (internally mapped to general); search is consistent inside and out.Permissions
Write operations (create / update / deploy / delete / copy) require the corresponding Knowledge Base permissions, determined by the user's role in Workspace Member Management:
| Operation | Required permission |
|---|---|
| create | Knowledge Base - Create |
| update | Knowledge Base - Modify |
| deploy | Knowledge Base - Modify |
| delete | Knowledge Base - Delete |
| copy | Knowledge Base - Create |