I would like to secure AWS API Gateway endpoint with an API Key. However the API key must be sent as part of the query parameter. There is no way to instruct the service that uses this endpoint to send the key (x-api-key) in the header.
So I would like this request: https://api_id.execute-api.us-east-1.amazonaws.com/dev/?x-api-key=KEY
to automatically consider x-api-key as the API key when a request is made. Is there a straight way to achieve this in AWS API Gateway?