Sendgrid Inbound Parse with Next.js
1 min readAug 4, 2020
Sendgrid Inbound Parse is a webhook that receives emails and posts them to an endpoint of your choosing.
I had an unusually hard time figuring out how to make this work with Next.js, even though a well known solution exists for express servers, which looks as follows:
const express = require(“express”);
const app = express();
var multer = require(“multer”);
var upload = multer();app.post(“/”, upload.none(), function (req, res) {
console.log(req.body);
});