Error 403 while following Quickstart: Create an Azure Cognitive Search index using REST APIs

Kenneth Cheung 0 Reputation points
2023-10-13T23:10:37.33+00:00

Hi,

I'm getting error 403 Forbidden in Postman while following Quickstart: Create an Azure Cognitive Search index using REST APIs (see screenshot below). Any advice?

Thanks,
Kennethpostman

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,339 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,602 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-10-16T01:11:13.7033333+00:00

    @Kenneth Cheung The 403 Forbidden error indicates that the server understood the request, but is refusing to authorize it. This error can occur for a variety of reasons, such as invalid credentials or insufficient permissions.

    To troubleshoot this issue, please make sure that you have provided the correct API key in the request headers. You can obtain the API key from the Azure portal by navigating to your search service and selecting "Keys" under "Settings". Also, ensure that the API key is valid and has not expired.

    If the API key is correct and valid, please check if you have the necessary permissions to perform the operation. You can refer to the "Permissions required for REST APIs" section in the following document for more information: https://docs.microsoft.com/en-us/azure/search/search-security-api-keys#permissions-required-for-rest-apis

    If you are still facing issues, please let me know and provide me with more details about your API request.

    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.