Updated on 2023-12-20 GMT+08:00

Calling an API

Use an API test tool to configure the API calling information.

  1. Obtain the API request information.

    For illustration purposes, an API and its documentation are obtained through offline channels. You can also obtain the authentication mode, request method, request path, and other information about the API.

  2. Add the header parameter X-Apig-AppCode and set the parameter value to the generated AppCode.
  3. Add the header parameter x-stage and set the parameter value to the running environment. Skip this step if the API has been published in the RELEASE environment.
  4. Click Send to send a request.

    If the API is called successfully, the message 200 OK is displayed.