You can call the Content Moderation API as a RAM user. Before calling the Content Moderation API, make sure that you have created a RAM user and granted relevant permissions to the RAM user.

Procedure

  1. Log on to the RAM console, create a RAM user, and then generate the AccessKey ID and AccessKey secret. Properly keep the generated AccessKey ID and AccessKey secret for calling the SDKs later.

    For more information about how to create a RAM user, see Create a RAM user.

    Create a RAM user
  2. Grant relevant permissions to the RAM user. Only an authorized RAM user can call the Content Moderation API. Grant the following system policy permission to the RAM user you created: AliyunYundunGreenWebFullAccess.

    For more information about how to grant permissions to a RAM user, see Grant permissions to a RAM user.

    Add permissions