/secure/send — this page is about the ones that matter in practice.
The common fields
Quote the destination
The four fields that change an outcome
from — the sender ID
from — the sender ID
Omitting it uses your login name, which on an enforcing account is usually not approved. So
“it worked without
from in testing” and “it fails in production” are the same fact seen twice.See Sender IDs.coding — what it costs
coding — what it costs
0 gives you 160 characters. 8 gives you 70. One curly apostrophe in your text forces UCS-2
anyway, so setting coding does not protect you from the cost — normalising your punctuation does.See Encoding and segments.product — what it is priced against
product — what it is priced against
Not free text. It prices the message against a different product, drawn from an allow list your
provider maintains per login — and most logins are allowed none. Naming one you are not allowed
is
403.The same allow list governs /secure/rate, so a quote and a send cannot disagree about what you may
name.validity_period — an integer, in minutes
validity_period — an integer, in minutes
Minutes the carrier should keep trying. A whole number, not a duration string — an older
specification types it as a string, and the gateway refuses that.
Asking for a receipt
Two fields, and both are needed — setting one without the other does nothing:dlr_level chooses which receipts you get: 1 progress only, 2 the outcome (default), 3 both.
Sending binary
hex_content takes the body as hex octets, decoded with the charset for your coding. An odd number
of characters is a 400.
Send content or hex_content — never both.
Related
Every field
Defaults, refusals, and the advanced parameters.
Batches
Many messages in one call, and scheduling.