I know how to access GET string variables in a Node js Lambda that is integrated with API Gateway with:
event["queryStringParameters"]["variable_name"]
What is the equivalent for accessing POST variables?
Use the following
if (event.body !== null && event.body !== undefined) {
let body = JSON.parse(event.body) //use in case of JSON body
//your code
}
body which contains a JSON string representation of the POST body. You can parse the JSON into an object and access your POST variables as keys in the body object.