When setting up an AWS SNS topic and subscription you can set the content-type of the notification requests (which includes the confirmation request) in the Delivery policies (HTTP/S) settings. Set it to application/json and your middleware will run and your req.body will have the JSON object you are expecting.