Search code examples
azure-logic-appsazure-cognitive-services

How do I get a endpoints and key for Microsoft Cognitive Services APIs?


I have created Cognitivenik Cognitive Services. And trying to access this api via postman request. I am getting 404 resource not found response . What the wrong with URL?

enter image description here


enter image description here


Solution

  • Once you know the service you need, you need to find the API url for it. In this example I will use the TextAnalytics Service for sentiment analysis.

    The url to call this endpoint for you would be

    https://cognitivenik.congnitiveservices.azure.com/text/analytics/v2.1/sentiment
    

    Your headers look good so just updating the API Url, it should work for you.