title: How to pass a parameter from POST to AWS Lambda from Amazon API Gateway
body: <p>I'm trying to have my Api-Gateway map application/x-www-form-urlencoded to json using this solution:
  <a href="https://stackoverflow.com/questions/32057053/how-to-pass-a-params-from-post-to-aws-lambda-from-amazon-api-gateway">How to pass a params from POST to AWS Lambda from Amazon API Gateway</a></p>
  
  <p>But so far my lambda get successfully triggered only my request.body is always null. If anyone know how to handle that with .net-core c# I'd really appreciate insight.</p>
  
  <p>Here's what my serverless lambda function looks like so far I receive the timestamp but nothing regarding the request.body</p>
  
  <pre><code>public async Task&lt;APIGatewayProxyResponse&gt; Post(APIGatewayProxyRequest request, ILambdaContext context)
      {
          var webHook = new WebHookClient("https://{urlHiddenForObviousReasons}");
          var body = new BodyModel
          {
              Content = $"Trigger @ {DateTime.UtcNow}, {request.Body}"
          };
          await webHook.PostMessage(body);
          var response = new APIGatewayProxyResponse
          {
              StatusCode = (int)HttpStatusCode.OK,
              Body = "Alert received.",
              Headers = new Dictionary&lt;string, string&gt; { { "Content-Type", "text/plain" } }
          };
  
          return response;
      }
  </code></pre>
  
  <p>please note that if I use Proxy Integration instead the form values get passed, I want to use mapping so I can have two client using the same api with different post method and have the lambda only parse json. Example of setting that end up passing the form values in this way: key=1&amp;steamid=1&amp;notetitle=ARK-ALARM%3A+06%2F17+%40+16%3A24+on+Paleolithic+Ark+-+The+Island%2C+ALARM+'Base'+IN+'The+Hidden+Lake'+WAS+TRIPPED!&amp;message=...</p>
  
  <p><a href="https://i.stack.imgur.com/ZiXBL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZiXBL.png" alt="enter image description here"></a></p>