The textual content of the message to be sent.
The recipient (or recipients) you are sending the message to. If you want to send to multiple numbers, use a comma delimited list. Try to include the international code, for example 44 in the UK.
A string (up to 11 alpha-numeric characters) or an international mobile number (up to 16 digits) of the sender, to be displayed to the recipient, e.g. 447777123123 for a UK number.
Available to txtUs Enterprise customers only. Specifes the email address for incoming responses.
Optional. An integer from 1 to 72, indicating the number of hours during which the message is valid for delivery. Messages which cannot be delivered within the specified time will fail.
Optional. An alpha-numeric string, 1-20 characters long, which will be used to 'tag' your outgoing message and will appear in delivery reports, thus facilitating fltering of reports.
Optional. The date/time to schedule the message for sending. ISO 8601 format. Scheduled messages will not use any credits until sent, however the API response will indicate the number of credits that will be used when the message is sent.
If set to 'true', prior to sending the number(s) will checked against the STOP group.
The username of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.
The password of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.
If you exceed 160 characters you automatically invoke concatenation sending. This will mean that each message consists of a 153 character ‘chunk’, i.e. no longer 160 characters.
The extra characters are used to 'glue' the messages together.
Therefore a message that is 307 characters long will actually require 3 text messages to send (153 + 153 + 1). Although it will appear as one long message to the recipient, it will use 3 credits to send.
What is the meaning of success or failure?
There is a diference between a successfully sent message, and a successful delivery. Successfully sending a message using the API only means that the number and message appear to be in the correct format and that the message was queued for sending – this does not mean that the destination number exists, or that the message was received by the recipient.
A delivery report – which you can retrieve through the deliveryReport resource – confrms to you what has actually happened to the message. This may change over time, e.g. a delivery report may show a 'PENDING' status for a message 10 minutes after the message was sent, but may show a 'DELIVERED' status after an hour.
The status of messages can change for up to 72 hours after the message was sent. Therefore you may prefer to wait for 72 hours after sending an SMS before trying to retrieve its delivery report.
Example successful response body XML:
The unique ID of the message sent. You can use this ID to fnd the status of the sent message in the delivery report. For SCHEDULED messages (i.e. where you have specified a 'schedule' parameter in the POST variables), the ID will be zero.
The unique ID of the scheduled message. You can use this ID later to delete a previously scheduled message. Unless the message has been scheduled for a future date, the ID will be zero.
The number of credits used to send the message. If the message is scheduled for future sending, this value indicates how many credits will be used when it is sent.
Values possible are SENT, QUEUED, or SCHEDULED. Indicates whether the message was put in a queue for processing as soon as resources allow (QUEUED), sent immediately (SENT), or scheduled for future sending at your request (SCHEDULED).
Bad username or password.
You have zero credits.
|3||The originator is invalid or too long.|
The originator is invalid or missing.
The message is invalid or too long.
You have insufcient credits to send this message.
|7||The message is invalid or missing.|
|8||The message contains unsupported characters (these will be listed in the error message).|
The mobile numbers are invalid or too short.
The mobile numbers are invalid or not an integer.
The validity value is out of range.
The custom value is non-alphanumeric or out of range.
|13||The mobile number is in a STOP group.|
|30||Invalid email address format.|
An email address was specified, but the originator specified was not a txtUs number on your account.
|32||If specified, the validity period (in hours) must be between 1 and 72 inclusive.|
|33||If specified, the custom feld must be alpha-numeric and up to 20 characters in length.|
The 'schedule' parameter is not in ISO 8601 date format.
Example error response body XML:
DTD for sms POST: