title: Invalid API Key identifier specified aws api gateway boto3
body: <p>I tried to validate an api_key that i create on the console api gateway with boto3, and this is my code:</p>
  
  <pre><code>def apikey_validate(api_key):
      try:
          client = boto3.client('apigateway')
          response = client.get_api_key(
          apiKey=api_key,
          includeValue = False
          )
          return response
      except ClientError as e:
          return e.response
  </code></pre>
  
  <p>But the response is this:</p>
  
  <pre><code>"Error":{"Message":"Invalid API Key identifier specified","Code":"NotFoundException"},
  "ResponseMetadata":{"RequestId":"d7dbf2c6-7bb6-4747-929a-ec737c8fadc7",
  "HTTPStatusCode":404,
  "HTTPHeaders":{"date":"Tue, 28 Apr 2020 23:40:04 GMT","content-type":"application/json",
  "content-length":"51",
  "connection":"keep-alive",
  "x-amzn-requestid":"d7dbf2c6-7bb6-4747-929a-ec737c8fadc7","x-amzn-errortype":"NotFoundException","x-amz-apigw-id":"LuLBPKDbIAMEdrA="},
  "RetryAttempts":0}}
  
  </code></pre>
  
  <p>And I can't understand what happens if is like the <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway.html#APIGateway.Client.get_api_key" rel="nofollow noreferrer">documentation</a> and the api_key is create resent</p>