# The way to reference apig event url from resources

**URL:** <https://forum.serverless.com/t/the-way-to-reference-apig-event-url-from-resources/4468>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [May 10, 2018, 12:11am UTC](https://forum.serverless.com/t/the-way-to-reference-apig-event-url-from-resources/4468 "2018-05-10T00:11:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bill](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bill/32/1072_2.png) [@bill](https://forum.serverless.com/u/bill)\
**Post date:** [May 10, 2018, 1:14am UTC](https://forum.serverless.com/t/the-way-to-reference-apig-event-url-from-resources/4468/2 "2018-05-10T01:14:29Z")

</div>

You can reference it directly `{ "Ref" : "ApiGatewayRestApi" }`.

See this question I asked before. [[Fixed] How do i get/reference api gateway restapi id in serverless.yml?](http://forum.serverless.com/t/fixed-how-do-i-get-reference-api-gateway-restapi-id-in-serverless-yml/3397)

This is the way to get api gateway id. You need use it and add more path (region, etc) to form the full api gateway url

---

_[View the full topic](https://forum.serverless.com/t/the-way-to-reference-apig-event-url-from-resources/4468)._
