Skip to content

Instantly share code, notes, and snippets.

@bramses
Created August 9, 2021 23:05
Embed
What would you like to do?
Receiving a Message on NodeJS with Twilio
router.post('/sms', async (req, res) => {
const twiml = new MessagingResponse();
await workflow(`${req.body.Body}`)
res.writeHead(200, {'Content-Type': 'text/xml'});
res.end('Message Received');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment