# POST Request to Private Rest Api Gateway

**URL:** <https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358>\
**Category:** Help Hub\
**Tags:** aws\
**Created:** [September 22, 2022, 7:04am UTC](https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358 "2022-09-22T07:04:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avionics-operator-36](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@avionics-operator-36](https://community.postman.com/u/avionics-operator-36)\
**Post date:** [September 22, 2022, 7:04am UTC](https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358/1 "2022-09-22T07:04:28Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

_My question_: I have created a private REST API Gateway in AWS and am trying to do a post request in Postman using the API Endpoint AWS gave me and I keep getting **Error: getaddrinfo ENOTFOUND**  
I have created a VPC endpoint for this private rest api and have a IAM role attached to this rest api(I don’t have a IAM user attached to this role because I don’t know how to do that). What specific authorization do I need in postman? I have tried AWS Signature but that didn’t work.

 ![Screen Shot 2022-09-22 at 3.00.54 AM](https://us1.discourse-cdn.com/getpostman/original/2X/5/58b246c8c679a8832fc63a64e70f6573b5b59d8e.png)

 ![Screen Shot 2022-09-22 at 2.57.38 AM](https://us1.discourse-cdn.com/getpostman/original/3X/2/b/2b0986cff0939733a91574cedcdcef0e4c67b266.png)

---

<div class="post-metadata">

**Author:** ![atchyutpulavarthi](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/atchyutpulavarthi/32/28229_2.png) [@atchyutpulavarthi](https://community.postman.com/u/atchyutpulavarthi)\
**Post date:** [September 22, 2022, 7:54am UTC](https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358/2 "2022-09-22T07:54:50Z")

</div>

Hey @avionics-operator-36, `Error: getaddrinfo ENOTFOUND` Is not an authorization issue, rather it means that the client was unable to find the given address. The reason for this could be that your VPC endpoint isn’t configured properly. Please refer to the following section from the AWS Amazon API Gateway developer guide to reconfigure your VPC endpoint.

> **[Creating a private API in Amazon API Gateway - Amazon API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html#apigateway-private-api-create-interface-vpc-endpoint)**
>
> Provides an overview of API Gateway private APIs.

---

<div class="post-metadata">

**Author:** ![avionics-operator-36](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@avionics-operator-36](https://community.postman.com/u/avionics-operator-36)\
**Post date:** [September 26, 2022, 3:47pm UTC](https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358/3 "2022-09-26T15:47:38Z")

</div>

I’m having some issue in understanding the problem with my VPC endpoint, the security group inbound and outbound allows all traffic and yet I’m still **getting connection timed** out when I test my VPC security group with  
`telnet {public-dns-hostname}.execute-api.{region}.vpce.amazonaws.com 443`

 ![Screen Shot 2022-09-26 at 11.44.42 AM](https://us1.discourse-cdn.com/getpostman/original/3X/5/1/51119e29ef6569be2ea07ada6f1e1f56b873b7fb.png)

---

<div class="post-metadata">

**Author:** ![altimetry-participa2](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@altimetry-participa2](https://community.postman.com/u/altimetry-participa2)\
**Post date:** [January 26, 2024, 5:40am UTC](https://community.postman.com/t/post-request-to-private-rest-api-gateway/39358/4 "2024-01-26T05:40:05Z")

</div>

That’s because you cannot access private api from outside vpc.  
If you are still able to access pl let me know the hack.
