That would indicate that for some reason event.headers is undefined. First thing I would suggest checking is in your AWS API Gateway, go to the POST endpoint that you created, and in the “Integration Request” section ensure that Usee Lambda Proxy integration is enabled.