To send an ActionTrail API request, you must send an HTTPS GET request to the ActionTrail endpoint. You must add the request parameters that correspond to the API operation being called. After you call the API, the system returns a response. The request and response are both encoded in UTF-8.

Request syntax

ActionTrail API operations use the RPC protocol. You can call ActionTrail API operations by sending HTTPS GET requests.

Use the following request syntax when you send an API request:
https://Endpoint/?Action=xx&Parameters
The following table describes the parameters in the request syntax.
Parameter Description
Endpoint The endpoint of the ActionTrail API. Set the value to actiontrail.cn-hangzhou.aliyuncs.com.
Action The name of the operation being performed. For example, to query event details, you must set this parameter to LookupEvents.
Version The version of the API that you want to use. Set the value to 2020-07-06.
Parameters The request parameters for the operation. Separate multiple parameters with ampersands (&).

Request parameters include both common request parameters and operation-specific parameters. Common request parameters include the API version number and authentication information. For more information, see Common parameters.

Sample request

The following example demonstrates how to call the LookupEvents operation to query event details:
Note The sample requests in the ActionTrail API reference are formatted for better readability.
https://actiontrail.aliyuncs.com/?Action=LookupEvents
&Format=JSON
&Version=2020-07-06
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=6a6e0ca6-4557-11e5-86a2-b8e8563d****
&SignatureVersion=1.0
&AccessKeyId=LTAI4GK3D6YtNkNZfjDV****
&Timestamp=2020-05-01T12:00:00Z
...