pinpoint cli pinpoint-sms-voice-v2 request-phone-number have a bug

0

Hello the documentation is inaccurate for pinpoint-sms-voice-v2 request-phone-number method. the "aws <service> isn't listed in the documentation. https://docs.aws.amazon.com/pinpoint/latest/developerguide/sms-voice-v2-phone-numbers.html

Also, after trying many things, the aws cli is unable to complete: $ aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities SMS VOICE --number-type LONG_CODE

An error occurred (ResourceNotFoundException) when calling the RequestPhoneNumber operation: Resource Not Found - ResourceType="phone-number"

It seams like the service simple doesn't function correctl.

asked 2 years ago401 views
1 Answer
1

For US, number-type LONG_CODE only supports --number-capabilities VOICE. If you want a US phone number that supports both SMS and VOICE, then you can use number-type TOLL_FREE (or TEN_DLC but registration is required before requesting a TEN_DLC phone number).

Example:

aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities VOICE --number-type LONG_CODE

aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities SMS VOICE --number-type TOLL_FREE

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions