Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

opt_in_phone_number

opt_in_phone_number(**kwargs)

Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.

You can opt in a phone number only once every 30 days.

See also: AWS API Documentation

Request Syntax

response = client.opt_in_phone_number(
    phoneNumber='string'
)
Parameters
phoneNumber (string) --

[REQUIRED]

The phone number to opt in. Use E.164 format.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

    The response for the OptInPhoneNumber action.

Exceptions

  • SNS.Client.exceptions.ThrottledException
  • SNS.Client.exceptions.InternalErrorException
  • SNS.Client.exceptions.AuthorizationErrorException
  • SNS.Client.exceptions.InvalidParameterException