v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14109583546.7 KB

Request an origination phone number for use in your account. For more information on phone number request see <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-request.html">Request a phone number</a> in the <i>End User Messaging SMS User Guide</i>.

post/#X-Amz-Target=PinpointSMSVoiceV2.RequestPhoneNumber

Headers

X-Amz-Target'PinpointSMSVoiceV2.RequestPhoneNumber' required

Request body

IsoCountryCodestring required

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

MessageType'TRANSACTIONAL' | 'PROMOTIONAL' required

The type of message. Valid values are <code>TRANSACTIONAL</code> for messages that are critical or time-sensitive and <code>PROMOTIONAL</code> for messages that aren't critical or time-sensitive.

NumberCapabilitiesNumberCapability[] required

Indicates if the phone number will be used for text messages, voice messages, or both.

NumberType'LONG_CODE' | 'TOLL_FREE' | 'TEN_DLC' | 'SIMULATOR' required
<p>The type of phone number to request.</p> <p>When you request a <code>SIMULATOR</code> phone number, you must set <b>MessageType</b> as <code>TRANSACTIONAL</code>. </p>
OptOutListNamestring
<p>The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.</p> <important> <p>If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).</p> </important>
PoolIdstring
<p>The pool to associated with the phone number. You can use the PoolId or PoolArn. </p> <important> <p>If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).</p> </important>
RegistrationIdstring

Use this field to attach your phone number for an external registration process.

InternationalSendingEnabledboolean

By default this is set to false. When set to true the international sending of phone number is Enabled.

DeletionProtectionEnabledboolean

By default this is set to false. When set to true the phone number can't be deleted.

ClientTokenstring

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

Response

Success

PhoneNumberArnstring

The Amazon Resource Name (ARN) of the requested phone number.

PhoneNumberIdstring

The unique identifier of the new phone number.

PhoneNumberstring

The new phone number that was requested.

Status'PENDING' | 'ACTIVE' | 'ASSOCIATING' | 'DISASSOCIATING' | 'DELETED'

The current status of the request.

IsoCountryCodestring

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

MessageType'TRANSACTIONAL' | 'PROMOTIONAL'

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

NumberCapabilitiesNumberCapability[]

Indicates if the phone number will be used for text messages, voice messages or both.

NumberType'LONG_CODE' | 'TOLL_FREE' | 'TEN_DLC' | 'SIMULATOR'

The type of number that was released.

MonthlyLeasingPricestring

The monthly price, in US dollars, to lease the phone number.

TwoWayEnabledboolean

By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

TwoWayChannelArnstring

The ARN used to identify the two way channel.

TwoWayChannelRolestring

An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

SelfManagedOptOutsEnabledboolean

By default this is set to false. When set to false and an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, End User Messaging SMS automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

OptOutListNamestring

The name of the OptOutList that is associated with the requested phone number.

InternationalSendingEnabledboolean

By default this is set to false. When set to true the international sending of phone number is Enabled.

DeletionProtectionEnabledboolean

By default this is set to false. When set to true the phone number can't be deleted.

PoolIdstring

The unique identifier of the pool associated with the phone number

RegistrationIdstring

The unique identifier for the registration.

CreatedTimestampstring date-time

The time when the phone number was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.