Adding and verifying phone numbers in the Amazon SNS SMS sandbox - Amazon Simple Notification Service

Adding and verifying phone numbers in the Amazon SNS SMS sandbox

To begin sending SMS messages while your AWS account is in the SMS sandbox, you first need to do the following:

  1. Create an origination ID. As with accounts that aren't in the SMS sandbox, an origination ID is required before you can send SMS messages to recipients in some countries or regions. For more information, see Choosing a phone number or sender ID in the AWS End User Messaging SMS User Guide.

  2. Add the destination phone numbers to the Amazon SNS sandbox.

  3. Verify the phone numbers.

To add and verify destination phone numbers
  1. Sign in to the Amazon SNS console.

  2. In the console menu, choose a region that supports SMS messaging.

  3. In the navigation pane, choose Text messaging (SMS).

  4. On the Mobile text messaging (SMS) page, under Sandbox destination phone numbers, choose Add phone number.

  5. Under Destination details, enter the country code and phone number, specify what language to use for the verification message, and then choose Add phone number.

    Amazon SNS sends a one-time password (OTP) to the destination phone number. If the destination phone number doesn't receive the OTP within 15 minutes, choose Resend verification code. You can send the OTP to the same destination phone number up to five times every 24 hours.

  6. In the Verification code box, enter the OTP sent to the destination phone number, and then choose Verify phone number.

    The destination phone number and its verification status appear in the Sandbox destination phone numbers section. If the verification status is Pending, verification was unsuccessful. This can happen, for example, if you didn't enter the country code with the phone number. You can delete pending or verified destination phone numbers only after 24 hours or more have passed since verification or the last verification attempt.

  7. Repeat these steps in each Region where you want to use this destination phone number.

Troubleshooting non-receipt of an OTP text

Troubleshoot common problems that may prevent a phone number from receiving OTP texts.

  • Amazon SNS SMS spending limit: If your AWS account has exceeded the spending limit for sending SMS messages, further messages, including OTP texts, might not be delivered until the limit is increased or the billing issue is resolved.

  • Phone number not opted in for SMS notifications: In some countries or regions, recipients must opt in to receive SMS messages from short codes, which are commonly used for OTP texts. If the recipient's phone number is not opted in, they will not receive the OTP text.

  • Carrier restrictions or filtering: Some mobile carriers may have restrictions or filtering mechanisms in place that prevent delivery of certain types of SMS messages, including OTP texts. This could be due to security policies or anti-spam measures implemented by the carrier.

  • Invalid or incorrect phone number: If the phone number provided by the recipient is incorrect or invalid, the OTP text will not be delivered.

  • Network issues: Temporary network issues or outages could prevent the delivery of SMS messages, including OTP texts, to the recipient's phone.

  • Delayed delivery: In some cases, SMS messages may experience delays in delivery due to network congestion or other factors. The OTP text may eventually be delivered, but it could be delayed beyond the expected timeframe.

  • Account suspension or termination: If there are issues with your AWS account, such as non-payment or violation of AWS terms of service, Amazon SNS messaging capabilities, including OTP texts, may be suspended or terminated.