API testing verifies the functionality of an API. To perform a test, you can configure the required settings on the API Test page.
The `com.antcloud.session.validate` operationType is a dedicated interface for the MSS component. If you configure this operationType and enable gateway encryption, testing the API causes a 6004 fault.
Procedure
On the Manage APIs tab, choose More > API Test in the Actions column for the API. The API Test page opens.

On the API Test page, configure the following parameters:
Request path: The gateway address for the application's environment. For example, the public cloud address for the mPaaS mobile gateway is:
https://cn-hangzhou-mgs-gw.cloud.alipay.com/mgw.htmImportantThe address must include
/mgw.htm. Otherwise, the request fails.Request parameter: By default, the system generates sample data that matches the request parameter format. You can adjust the data as needed.
Header: You can add request headers as needed.
Click the Test button. The request results appear on the right:
Response body: The response data returned by the service.
Response header: Includes gateway conventions and the headers returned by the service.
Result-Status: For more information, see Gateway result codes.
Mgw-TraceId: The TraceId for the request. You can use this ID for link tracing.