Passa al contenuto principale

SmsCreateRequest

Sends an SMS. Recipients: provide exactly one of phone_numbers or phonebooks, not both. Sender: required when quality is PREMIUM (from 2 to 11 characters), ignored when quality is STANDARD.

phone_numbersstring[]

SMS recipients (mutually exclusive). Provide exactly one of: "phone_numbers" or "phonebooks". Collection of one or more phone numbers in international format using the "00" prefix (digits only, no spaces/separators). Example: 00393331122444.

Possible values: >= 1

phonebooksinteger[]

SMS recipients (mutually exclusive). Provide exactly one of: "phone_numbers" or "phonebooks". Collection of one or more phonebook IDs.

Possible values: >= 1

messagestringrequired

Text of the SMS you want to send. It can contain emojis, but keep in mind that emojis take up more characters. GSM-7: max 160 chars (153 per part if concatenated). Unicode (UCS-2): max 70 chars (67 per part if concatenated).

qualitystringrequired

SMS delivery quality. PREMIUM requires sender.

Possible values: [STANDARD, PREMIUM]

senderstring

Sender name, from 2 to 11 characters. Required when quality is PREMIUM, ignored when quality is STANDARD.

send_datedate-time

Date and time from which to send the SMS. If not specified, the SMS is sent immediately (ISO 8601 UTC: YYYY-MM-DDTHH:MM:SSZ)

SmsCreateRequest
{
"phone_numbers": [
"00393331122444"
],
"phonebooks": [
0
],
"message": "string",
"quality": "STANDARD",
"sender": "string",
"send_date": "2024-07-29T15:51:28.071Z"
}