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

Subscribe a user

You can subscribe a user to a topic using Amazon SNS. Simply sign up for an account  and replace the following variables in the example below:

Key Description
TO_NUMBER The number you would like to subscribe
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 subscribing the user 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=subscribe" \
  -d "to=TO_NUMBER" \
  -d "topic=SNS_ARN"