Skip to main content
Overview

API Overview

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 ModuleUse Case
Managed Agent APIFull lifecycle management of hosted agents: create agents, configure environments, delegate tasks, manage sessions and event streams
Flow Agent APIInvoke agent applications and workflow applications created on the Bailian platform
Knowledge Studio APIKnowledge base retrieval and Q&A
Memory APICreate, read/write, and configure memory libraries
Framework SDKIntegrate Bailian services via LlamaIndex, Spring AI, and other frameworks

General Information

Authentication

All APIs authenticate via HTTP Header with an API Key:
Authorization: Bearer <your-api-key>
Obtain your API Key from the Bailian Console.

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 use text/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.
Overview
Managed Agent API
Sandbox API
Memory API
Flow Agent API
RAG API
Connector API
Framework Integration
Assistant API (Deprecating)
  • Overview