Hi, you need to provide your subscription key
which is located in Azure Portal > Translator Resource > Resource Management > Keys and Endpoint.
Cognitive Transliterate API
Pushpinder Bharaj
1
Reputation point
Unable to hit Cognitive transliterate API using subscription ID. Below is the URL & Request body.
Header:
- Content-Type: application/json
- Content-Length
- Ocp-Apim-Subscription-Key: Subscription ID(Trying free)
Request Param:
- api-version: 3.0
- language: en
- fromScript: en
- toScript: hi
Request Body:
[
{"Text":"I am an Engineer."},
{"Text":"Trying the microsoft translator."}
]
Everytime I get 400 error saying: "The request is not authorized because credentials are missing or invalid."
I have subscribed to the Cognitive Translator service on trail basis. I have just received the Subscription ID, what I am using in the "Ocp-Apim-Subscription-Key". is this correct?
1 answer
Sort by: Most helpful
-
GiftA-MSFT 11,166 Reputation points
2021-02-18T23:18:09.567+00:00