I tried to call the Text Moderation API from Postman.
Text Moderation API :- [https://centralindia.api.cognitive.microsoft.com/contentmoderator/moderate/v1.0/ProcessText/Screen?classify=True
Header : It required to pass - Ocp-Apim-Subscription-Key
To get Ocp-Apim-Subscription-Key, I followed the steps mentioned in the below link
[https://learn.microsoft.com/en-us/answers/questions/62385/please-help-me-to-find-the-process-to-get-ocp-apim
Once i get this key, called the Text Moderation API, But i got the error response given below. Kindly help us to resolve this issue.
{
"error": {
"code": "401",
"message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."
}
}