agent_scene is search, use search_type to filter by retrieval type: chunk (vector retrieval) or wiki (Wiki retrieval). Omit search_type for no type filter. Wiki retrieval services are created automatically when a knowledge base enables Wiki. Use agent_scene=search + search_type=wiki (optionally with pipeline_id) to obtain their agent_id for Knowledge Search. This is a Wiki retrieval service ID, not a knowledge base ID or a regular chunk retrieval service ID.Disabling Wiki does not delete the existing Wiki retrieval service; the original agent_id becomes usable again after re-enabling Wiki. This does not restore old pages or imply immediate completion of data cleanup.Error codes
This endpoint may return the following error codes; for detailed triggers and message, see the error reference.
| code | status_code | Trigger |
|---|---|---|
InvalidParameter | 400 | agent_scene missing or invalid; search_type invalid |
Authorizations
DashScope API Key, obtained from the API Key page in the console.
Body
application/jsonAgent scene: chat (knowledge Q&A) or search (knowledge retrieval).
Filter by status: draft / deployed (includes edited) / deleted.
Fuzzy search by name.
Exact match by Agent ID.
Filter by associated knowledge base Pipeline ID.
Page number, default 1.
Number of items per page, default 10, maximum 100.
Filter by retrieval type; meaningful only when agent_scene is search: chunk (vector retrieval) or wiki (Wiki retrieval). Omitted means no type filter. Wiki retrieval services are created automatically when a knowledge base enables Wiki; use search_type=wiki to find them and obtain their agent_id.
Response
Unique request identifier. Provide this ID when troubleshooting issues.
Business status code in the response body, not the transport-layer HTTP status. See the error reference.
Response code. Success on success.
Informational message.
Request status: SUCCESS or ERROR.
Whether the request succeeded.