All Products
Search
Document Center

Mobile Platform as a Service:API test

Last Updated:Feb 03, 2026

API testing verifies the functionality of an API. To perform a test, you can configure the required settings on the API Test page.

Important

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

  1. On the Manage APIs tab, choose More > API Test in the Actions column for the API. The API Test page opens.

    image

  2. 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.htm

      Important

      The 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.

  3. 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.