Query a single alert detail. Input is the alert_id returned by the alert list.
Prerequisites
Configure the endpoint and authentication first. See API overview and authentication.
Endpoint
GET /agent_logs/{alert_id}
Query a single alert detail. Input is the alert_id returned by the alert list.
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
alert_id | Yes | string | Alert ID, from the alert list |
Request example
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/security, and BAILIAN_API_KEY is your Alibaba Cloud Bailian API Key.
Response body
| Field | Type | Description |
|---|---|---|
alert_id | string | Alert record ID, primary key for detail queries |
risk_name | string | Hit category |
risk_desc | string | Hit reason (brief) |
risk_detail | string | Original prompt or risk details, Markdown-formatted event summary and attack pattern analysis |
risk_handle | string | Interception response or handling suggestion |
risk_level | string | Risk level: high / medium / low |
asset_type | string | Risk node type, MCP is normalized to tool |
asset_name | string | Asset name |
app_id | string | Application ID |
app_name | string | Agent name |
status | string | Handling status |
source | string | Source |
check_time | string | Check time, millisecond timestamp string |
handle_time | string | Handling time, millisecond timestamp string |
event_id | string | Event identifier, i.e., the Trace ID |
file_name | string | Skill file name, only returned for skill static scan alerts |