Search code examples
azure-cognitive-servicesmicrosoft-translatorazure-marketplacebing-translator-api

The API type of the received token in not Text. Please use a subscription to Translator Text API


I'm getting an Argument Exception message using the Microsoft Translator Text API.

I am using the Access Keys generated from Azure Portal for my Translator Speech API resource.

I am also able to retrieve the access token successfully as shown in the image below.

Issue Token OK

However, when I request for translation at https://api.microsofttranslator.com/V2/Http.svc/Translate I'm receiving the message

The API type of the received token in not Text. Please use a subscription to Translator Text API

as shown in the image below.

Argument Exception

I have already tried the C# Bot Translator sample from https://github.com/MicrosoftTranslator/BotTranslator, with the same results (same error).

What could be the problem? Is there something I am missing?


Solution

  • My mistake, I've been using a "Translator Speech API" subscription key instead of the "Traslator Text API" key that is required.