SMS in Yandex Cloud Notification Service
With Cloud Notification Service, you can send text messages (SMS)+79991112233
. SMS messages are signed with sender text names. The maximum length of one SMS is 160 Latin characters or 70 Cyrillic characters. Longer texts are sent using multiple SMS messages.
Note
The service is subject to limitations. For more information, see Yandex Cloud Notification Service quotas and limits.
You can create multiple SMS notification channels with different senders. One of the channels is set as the default one. This channel will be used to send SMS messages if no channel is specified in the API request or AWS CLI command.
Senders
SMS notification channels can use the following types of senders:
Shared sender
An SMS notification channel with a shared sender is a good option for testing the service's features and has the following advantages:
- You do not have to register the sender's name with the telecom operator.
- No monthly subscription fee is charged.
There are restrictions in place for this type of sender:
- All SMS messages are signed with a shared service name.
- Promotional SMS messages are not allowed.
- A cloud can contain only one SMS notification channel with a shared sender.
- A channel can only operate in a sandbox with a limited number of test phone numbers.
Individual sender
An SMS notification channel with an individual sender is suitable for the product environment and has the following advantages:
- All SMS messages are signed with the sender's unique text name.
- After leaving the sandbox you can send SMS to any Russian phone numbers in E.164
format.
There are restrictions and rules in place for this type of sender:
- The sender's text name will be registered with the service provider.
- You will be charged a monthly subscription fee for using the sender's text name.
- In the cloud, one sender's text name can correspond to one SMS notification channel.
Sender's text name is registered via support.
Note
Registering a sender's text name may take from 2 to 4 weeks.
The SMS notification channel with an individual sender is originally created in the sandbox.
Sandbox
A sandbox is a test environment, in which you can send SMS messages only to test phone numbers.
Each test phone number is registered in a channel using a confirmation code from an SMS. By adding a number, you agree to receive messages to it.
You can delete a test phone number 24 hours after adding it. To add this number again, you will need to reconfirm it.
For channels with an individual sender, you can contact support to exit the sandbox mode.
You can also request an increase in the service quotas together with your request to exit the sandbox mode.