title: Passing event from API gateway to Lambda
body: <p>I have a lambda function that can received JSON in many different forms. The idea is to receive that through API Gateway. When i test the function given any form of JSON, it works fine. However, when i try to test it through API Gateway, it fails because the event is empty.</p>
  
  <p>I tried to add an empty model mapping:</p>
  
  <pre><code>{}
  </code></pre>
  
  <p>But i still get the same result. How can I make the API pass any type of JSON in the body to the function?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I want to use Lambda Proxy integration and i have testing with postman and the API gateway test feature in the AWS console. I'm just doing a POST with the required JSON in the body and the content type headers.</p>
  
  <p><a href="https://i.stack.imgur.com/LA55Q.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LA55Q.png" alt="enter image description here"></a></p>