Send an SMS (spends credits)
d7_send_smsDestructive
WRITE (sends real text messages and spends credits): send ONE text message to 1-10 recipients (never a list or campaign). Each recipient costs the per-country price for every message part (about 160 GSM characters or 70 unicode characters per part; see d7_get_sms_pricing), taken from the D7 credit balance, and a sent SMS cannot be recalled. Free trial accounts may only use D7's demo sender id; other sender ids must be registered with D7. Send only messages the recipients expect, as unsolicited SMS violates D7's terms. Returns a request_id for d7_get_message_status. D7 REST: POST /messages/v1/send.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Your own reference string, stored with the request. | |
| content | Yes | The message text, at most 640 characters. | |
| originator | Yes | Sender id shown on the phone: up to 11 letters/digits (alphanumeric) or a registered number. Must be allowed for the account. | |
| recipients | Yes | 1 to 10 phone numbers, each in international format with the country code, for example +971501234567. | |
| data_coding | No | text = GSM 03.38 characters only, unicode = Arabic/Chinese/emoji etc., auto (default) = D7 decides from the content. |