# What's the equivalent of \`req.rawBody\` in serverless?

**URL:** <https://forum.serverless.com/t/whats-the-equivalent-of-req-rawbody-in-serverless/10700>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [March 4, 2020, 1:19am UTC](https://forum.serverless.com/t/whats-the-equivalent-of-req-rawbody-in-serverless/10700 "2020-03-04T01:19:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zolbayars](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/zolbayars/32/4031_2.png) [@zolbayars](https://forum.serverless.com/u/zolbayars)\
**Post date:** [March 4, 2020, 1:19am UTC](https://forum.serverless.com/t/whats-the-equivalent-of-req-rawbody-in-serverless/10700/1 "2020-03-04T01:19:12Z")

</div>

I’d like to get the raw body of a post request. I’ve seen a bunch of solutions involving some configurations on AWS API Gateway. But is there a way to get it by configuring something on `serverless.yml` or on the event handler?

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [March 4, 2020, 7:38am UTC](https://forum.serverless.com/t/whats-the-equivalent-of-req-rawbody-in-serverless/10700/2 "2020-03-04T07:38:04Z")

</div>

Its pretty simple. `event.body` contains the raw body. Nothing complicated.
