Full lifecycle management APIs for RAG Agent instances.
RAG Agents are the runtime entities behind Knowledge Retrieval (knowledge/search) and Knowledge Q&A (knowledge/chat) services, with retrieval strategies carried by agent_config. The Agent Management APIs support creating, configuring, publishing, querying, and deleting Agents programmatically, without needing to visit the console.
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 API is idempotent: repeated deletions do not return an error.
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
Users with the "Knowledge Base - FullAccess" permission can perform all of the above operations. If a call returns 403, the current user lacks the required permission; contact the workspace administrator to adjust the role. Read operations (list / get) require only an API Key.