Skip to main content

Overview

Prerequisites, endpoint assembly, and authentication for the Security API, plus available interfaces for protection and policies and alerts, and error codes.

Before calling, configure Authentication. For error handling, see Errors.
The Security API provides query and alert export capabilities for Agent security protection data. The path prefix is /api/v1/agentstudio/security.

Prerequisites

  1. Activate Alibaba Cloud Bailian and create an API Key.
  2. Get the workspace ID: view it in the drop-down menu at the top right of the Bailian console, in the form {workspace_id}.

Endpoint

The API base URL is assembled from the workspace and region:
https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/security
  • workspace_id: workspace ID
  • region: region ID, currently only cn-beijing

Available APIs

Protection

CapabilityMethodPath
Get protection overviewGET/overview
Get Agent assetsGET/asset_summary

Policies and alerts

CapabilityMethodPath
List security policiesGET/policies
List alertsGET/agent_logs
Get alert detailsGET/agent_logs/{alert_id}
Export alertsPOST/export_agent_logs
Get export statusGET/export_status
Managed Agent API
Flow Agent API
Sandbox API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration