AWS Api Gateway + Lambda + custom domain (Route53) Missing Authentication Token issue


I am aware that many similar questions have been posted and answered here but none of them is quite the same with what I am experiencing.

I have a Lambda function that handles incoming requests (GET and POST). I also set up an api gateway as public facing endpoint. Additionally, I set up custom domain following Set up Custom Domain Name for API Host Name

The testing call works in both of lambda and api gateway console. Everything also works using the invoke URL but not with the custom domain I’ve set up.

Here are some more details:

Invoke URL (Works) :

Custom domain endpint (Doesn’t work):

Base Path Mapping:

All Method Auth:


I’d really appreciate if anyone knows what’s going out here.


I had met the same question several years ago and solved it by removing the ‘stage’ name from the URL.

  1. the URL of gateway API seems like the following:

  1. if you have routed a custom domain to gateway API {apiName}:{stage}, it seems like the following:

  1. Finally, the correct way to call it is to remove the stage name:

Leave a Reply