I have added api_key to my rest api in aws api gateway for authenticating a GET request method.
My request is:
curl -X GET -H "x-amz-key: XXXXXXXXXXXXXXXXXXXXXXQklq4C7vbEGprA" "https://XXXXXXXXXXX.execute-api.ap-northeast-1.amazonaws.com/test/10/12/+"
I keep getting the following error:
{"message": "Forbidden"}
I am doing everything as the AWS docs mention. Can anybody point me to the right direction here, how to add api_key in request?
The same request works fine if api_key authentication is removed.