Microsoft translator Response message: Translation services: getting request not authorized because credentials are missing or invalid

Dhaval Satyam 41 Reputation points
2020-11-02T04:48:34.29+00:00

Getting following error:

{"error":{"code":401000,"message":"The request is not authorized because credentials are missing or invalid."}}

type- POST
url-https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&to=zh-Hans

"Ocp-Apim-Subscription-Key" : "75e7355c0c7d472baa5ec1a5cbfec505"

"Content-type" : "application/json"

Body-
[{
"Text": "Welcome to Microsoft Translator. Guess how many languages I speak!"
}]

I am using the valid key still gettng this error message.

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
408 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,171 Reputation points
    2020-11-03T00:50:18.433+00:00

    Hi, thanks for reaching out. You are receiving that error most likely because you entered an invalid key or region. A similar question was asked on this thread, please review the responses. Hope this helps.

    3 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.