Welcome to Nexmo Developer

We are improving our Documentation, API references, learning resources & tooling to help you more effectively use our services. We want to help you find everything you need to integrate Nexmo APIs into your code.

As we start this transition, we’d love to hear from you with thoughts & suggestions. If you’ve got something, positive or negative, to tell us, please tell us using the feedback tool at the bottom of each guide or file an issue on GitHub. - Nexmo

Sending a message

You can send broadcast a message out to an SNS topic. Simply replace the following variables in the example below:

Key Description
TO_NUMBER The number you would like to subscribe
FROM_NUMBER The number you are sending the message from.
API_KEY You can find this in your account overview 
API_SECRET You can find this in your account overview 
SNS_ARN The ARN for the the SNS that you are broadcasting to. It's policy must allow the Nexmo user ID 564623767830 to subscribe & publish.
curl -X "POST" "https://sns.nexmo.com/sns/json?api_key=API_KEY&api_secret=API_SECRET" \
  -d "cmd=publish" \
  -d "topic=SNS_ARN" \
  -d "from=FROM_NUMBER"
  -d "message=A text message sent using the Nexmo SMS API" \