To call the Content Moderation API as a RAM user, create a RAM user and grant it the required permissions.
Prerequisites
Before you begin, ensure that you have:
An Alibaba Cloud account
Access to the RAM console
Grant permissions to a RAM user
Log on to the RAM console using your Alibaba Cloud account.
Create a RAM user. For details, see Create a RAM user.
Grant the
AliyunYundunGreenWebFullAccesssystem policy to the RAM user. This policy grants full access to Content Moderation. For details, see Grant permissions to a RAM user.
The RAM user can now call the Content Moderation API.