How to Call A Deployed API Endpoint in Amazon API Gateway

TL:DR

https://{restapi_id}.execute-api.{region}.amazonaws.com/{stage_name}/

The restapi_id is the API ID found in API Gateway on the AWS Management Console, pictured below. Remember that each deployment you have will have an API ID set up for it. So your test API ID won’t be the same as your prod API.

Image of AWS API Gateway with a red arrow pointed at the ID section. This is where the API ID is found.

I put in the closest region for me (us-east-1), but that can be any region.

Then you put in the stage the API is deployed to. So prod, dev, test, or whatever environments you have set up.

And that’s it. There’s a more extensive conversation about permissions, deployments, etc. I might have that conversation on this blog. Stay tuned.

-George

Tagged in: #note #aws

Leave a reaction if you liked this post! 🧡
Loading comments...

Latest Posts

Search and see all posts