API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (AISC/2026-01-01) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.
Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.
Custom signature scenarios
If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.
Account and security preparation
Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.
API catalog
|
API |
Title |
Description |
| CreateSkillFileCheck | Create a skill detection task | Initiates batch detection for user-defined skills. |
| ListSubTasks | Retrieve subtask information | Retrieves subtask information. |
| CreateAttackTarget | Create an AI red teaming scan target | Creates an AI Red Teaming scan target (agent or model) and saves its connection configuration for subsequent connectivity tests and scan tasks. |
| CreateTargetScanTask | Create a target scan task for AI red teaming | Initiates a security scan task against a scan target that has passed connectivity verification. After the task is created, it is asynchronously prepared and executed. |
| DeleteAttackTarget | Delete a scan target in AI red teaming | Deletes a specified scan target by TargetId in AI Red Teaming. The target is physically deleted and cannot be recovered. This operation does not stop scan tasks that are in progress. |
| DeleteScannerTask | Delete an AI red teaming scan task | Physically deletes a specified scan task by ScannerTaskId in AI Red Teaming. |
| GenerateRelayPollerScript | Generate an internal network agent installation script for AI red teaming | Generates a one-time installation script for a scan target of the enterprise_relay type in AI Red Teaming. Only Linux platforms are supported. The script contains a one-time access code. |
| GetAttackTarget | Query scan target details for AI red teaming | Queries the details of a scan target by TargetId for AI Red Teaming, including connection configuration and scan task configuration. |
| GetScannerTaskHitDataUrl | Get scan task hit data download URL for AI red teaming | Retrieves a temporary download URL for the attack hit data (hits.csv) of a specified scan task in AI Red Teaming. The URL is valid for 2 hours. An empty string is returned if the data has not been generated. |
| GetScannerTaskResultHtmlUrl | Get download URL for AI red teaming scan task result report | Retrieves a temporary download URL for the HTML result report of an AI Red Teaming scan task. The URL is valid for 2 hours. An empty string is returned if the report has not been generated. |
| ListAIAgentEvent | Retrieve agent risk events | Queries the event list. |
| ListAttackTargets | Query AI red teaming scan target list | Queries the list of scan targets for AI Red Teaming. This operation supports multi-dimensional filtering and sorting. |
| ListScanTasksByTarget | List target scan tasks for AI red teaming | Queries the scan tasks of a specified scan target for AI Red Teaming with paging, and supports filtering by detection intensity, task status, and scan mode. |
| StopScannerTask | Stop a scan task | Stops (cancels) an in-progress scan task for AI Red Teaming. Calling this operation on a task that is already in a desired state is idempotent and performs no action. |
| TestConnectivity | Test AI red teaming connectivity | Tests the network connectivity and authentication validity of an AI Red Teaming target. |