Free auditStart free
GuideError · CDN and hosting errors

API Gateway 403 Forbidden

Work out which API Gateway response type is behind your 403: missing token, invalid API key, resource policy, WAF, authorizer or a disabled default endpoint.

3 min
read
8
sources
Nov 1, 2026
updated
Scaplet Editorial Team
author
In one line

API Gateway returns 403 for many different reasons, each with its own gateway response type: MISSING_AUTHENTICATION_TOKEN, INVALID_API_KEY, ACCESS_DENIED, WAF_FILTERED, EXPIRED_TOKEN and more. Read the message and response type first, then check the resource policy, API key, authorizer or the disabled default endpoint that matches it.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Find the cause in two minutes

Send a key and see the response
curl -i -H "x-api-key: YOUR_KEY" \
  "https://abc123.execute-api.us-west-2.amazonaws.com/prod/getUsers"
  1. 01

    Read the body

    The default error body names the problem. Call the route with curl -i https://api-id.execute-api.region.amazonaws.com/stage/path and read the message.

  2. 02

    Check the URL first

    The base URL is https://api-id.execute-api.region.amazonaws.com/stage/. A wrong stage, path or method is documented as a MISSING_AUTHENTICATION_TOKEN case, so it is the cheapest fix.

  3. 03

    Check the default endpoint

    If someone disabled the default execute-api endpoint, clients "will receive a 403 Forbidden status code" when calling it, and the change applies to all stages after a deployment. Use your custom domain name instead.

  4. 04

    Turn on logs

    Enable execution and access logging for the stage and read the gateway response type for the failing request.

04Explained

SEO and crawler notes

Googlebot never signs requests or sends keys. Google says it ignores content from 4xx URLs and that "Don't use 401 and 403 status codes for limiting the crawl rate." Keep public pages off a protected API, and for blocked bots use 429 or robots rules instead.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • amazon.com
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-11-01
  2. 02Gateway response types for API Gatewaydocs.aws.amazon.com · checked 2026-11-01
  3. 03Disable the default endpoint for REST APIsdocs.aws.amazon.com · checked 2026-11-01
  4. 04Choose an API key source in API Gatewaydocs.aws.amazon.com · checked 2026-11-01
  5. 05How API Gateway resource policies affect authorization workflowdocs.aws.amazon.com · checked 2026-11-01
  6. 06Use API Gateway Lambda authorizersdocs.aws.amazon.com · checked 2026-11-01
  7. 07Invoke REST APIs in API Gatewaydocs.aws.amazon.com · checked 2026-11-01
  8. 08How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Why does API Gateway say Missing Authentication Token?

AWS documents MISSING_AUTHENTICATION_TOKEN as a missing token error, including when a client calls an unsupported API method or resource. A wrong path, stage or method is the first thing to rule out.

02Why do I get 403 on the default execute-api URL but not my custom domain?

The default endpoint may be disabled. AWS says clients can still connect to it but receive a 403 Forbidden status code. Redeploy after changing the setting.

03Does an API key problem return 403?

Yes. When an API key does not match the usage plan, API Gateway throws an InvalidKeyParameter exception and the caller receives a 403 Forbidden response.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane