apigeeapigee-baas

Invalid API Request for Apigee API


I have an API which requires a API key to get through. I have set the same verification policy to my set of API's. However, some of my API's work and the other do not work giving me the below error. What might be the cause.

{
    fault: {
        faultstring: "Invalid ApiKey for given resource"
        detail: {
            errorcode: "oauth.v2.InvalidApiKeyForGivenResource"
        }
    }
}

Solution

  • One of the possible reasons for the error "Invalid ApiKey for given resource" is that the Product associated with the API proxy may not have the proper "Resource Path.

    The below apigee community link explains this issue in more detail and what should the Resource Path be set as to make different paths in your APIs to work: https://community.apigee.com/questions/965/need-to-know-about-in-resource-path.html