Sending Bulk SMS with NodeJs using Nexmo API

Oluwaleke Fakorede hashCode
Hacktive Devs
Published in
1 min readFeb 21, 2019

Have you tried building a NodeJs application that has the functionality to send bulk SMS messages? I’m sure you searched for services that offered the lowest rates and also free credits for testing. Look no further, Nexmo is here to meet your needs.

Nexmo offer services like:
1. SMS
2. Voice calls
3. Phone number verification

Let’s dive right in!!

Go to https://dashboard.nexmo.com/sign-up to create an account or log in if you already have an account.

Testing
After signup and phone number verification, you’d receive € 2.00 free credits for testing their services.
Defaultly, your sign-up phone number is automatically a test number, to add new test number:

Add a new test number

Enough with the setup, now let’s write some code!!

// install nexmo nodejs client using
npm install nexmo

Here’s a well-documented example code I wrote for this tutorial.

Go through the code and the comment to understand what each part if the code does.
You can get your apiKey and apiSecret on the dashboard page.

I hope the next time you want to send an SMS from your server, you’d consider Nexmo API. Thank you!!

Thank you, happy coding!

--

--

Oluwaleke Fakorede hashCode
Hacktive Devs

I love sharing my knowledge in the best way. Software || Data Engineer, mathematician.