# Pass query params as event

**URL:** <https://forum.serverless.com/t/pass-query-params-as-event/325>\
**Category:** Serverless Architectures\
**Tags:** aws\
**Created:** [September 18, 2016, 5:28pm UTC](https://forum.serverless.com/t/pass-query-params-as-event/325 "2016-09-18T17:28:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tur-ing](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@tur-ing](https://forum.serverless.com/u/tur-ing)\
**Post date:** [September 18, 2016, 5:28pm UTC](https://forum.serverless.com/t/pass-query-params-as-event/325/1 "2016-09-18T17:28:39Z")

</div>

Hello guys,

I am stucking with POST requests currently because I do not know how to work with GET query params and pass them to my sls function.

For instance, I want to use /customers/searchByCustomerId?customerId={customerId}

Does somebode have a hint for me or example how to do that?

Thank you an best,

Marcel

---

<div class="post-metadata">

**Author:** ![rowanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/rowanu/32/75_2.png) [@rowanu](https://forum.serverless.com/u/rowanu)\
**Post date:** [September 19, 2016, 12:02am UTC](https://forum.serverless.com/t/pass-query-params-as-event/325/2 "2016-09-19T00:02:39Z")

</div>

Query parameters are available [in the default request template](https://github.com/serverless/serverless/blob/master/docs/02-providers/aws/events/01-apigateway.md#default-request-templates) if you’re using a recent version of Serverless.

You should just be able to get them from `event.query.customerId` in your example.
