Alibaba Cloud Bailian Agent Studio provides multiple API suites covering managed agent runtime, application invocation, knowledge retrieval, and memory management. This page summarizes the available APIs and their use cases.
API Modules
Alibaba Cloud Bailian Agent Studio APIs are organized by product capability:
| API Module | Use Case |
|---|---|
| Managed Agent API | Full lifecycle management of hosted agents: create agents, configure environments, delegate tasks, manage sessions and event streams |
| Flow Agent API | Invoke agent applications and workflow applications created on the Bailian platform |
| Knowledge Studio API | Knowledge base retrieval and Q&A |
| Memory API | Create, read/write, and configure memory libraries |
| Framework SDK | Integrate Bailian services via LlamaIndex, Spring AI, and other frameworks |
General Information
Authentication
All APIs authenticate via HTTP Header with an API Key:
Regions & Endpoints
- Managed Agent API:
https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio - Flow Agent API (DashScope):
https://dashscope.aliyuncs.com/api/v1/apps/{app_id}/completion - Knowledge Studio API:
https://dashscope.aliyuncs.com/api/v1/apps/{app_id}/completion
Request & Response Format
- Request body:
application/json - Response body:
application/json(streaming responses usetext/event-stream) - Encoding: UTF-8
Error Handling
APIs return standard HTTP status codes. The response body includes code and message fields describing the specific error. See each API module's documentation for detailed error codes.