The message object
Attributes
id string
Message identifier - this can be used to retrieve a single message and its delivery status (Retrieve message). It can also be used to re-send a message in the event where the first attempt failed (Single Send- Retry)
recipient numeric (Mandatory field)
For messages sent through the sms
channel, the recipient will be the mobile phone number of the recipient, prefixed by the country code but without the leading +
. For example, when sending to a Singaporean phone number, the value of recipient will be 6599999999
eg. 6591234567
is a recipient string for a Singapore (65) phone number (91234567)
language string (Mandatory field)
This is the language of the message template used to send this message. One of english
, chinese
, malay
, or tamil
.
values object (Mandatory field)
The values that were inserted into the message template and form the complete message. The keys within values
will vary depending on the campaign’s template parameters.
In the example above, the message template that was used contained two parameters: recipient_name
and topic
.
Avoid using recipient
and language
as keywords as they are mandatory fields in the request payload.
fullMessage string
Contains the full message including the SMS Header and Footer.
campaignId string
Campaign identifier - this will inform you which campaign the message is tagged to.
unsupported characters
The GSM-7 character set is supported by Postman.
Otherwise, agencies should strictly abide by the unsupported character guidelines. This is the list of characters that are not supported by Postman and need to be excluded in the values
.
This is what happens if you include unsupported characters in your messages:
unsupported characters significantly increase the character count and therefore, the number of message segments per SMS.
besides cost, long messages with multiple segments will jam the send queue, affecting even the campaigns of other agencies besides your own.
Reliability of sending messages cannot be guaranteed beyond 7 message segments per SMS, a limitation imposed by telcos. Hence, we advise you to keep your messages below 7 segments.
See the full list of unsupported characters here.
Check if your messages have any unsupported characters here.
Trailing white spaces
The content within your values object should not start nor end with a space, as this will trigger 400 Bad Request.
latestStatus string
Possible message statuses and what they mean
Status in delivery report/API retrieve message status | Corresponding status on UI dashboard | What it means |
---|---|---|
|
| Postman is aware of your request and has created the necessary records. However, it has not yet made the request to the relevant messaging service provider to have the message sent. |
|
| Your message is now in our queue and in the process of getting sent to the relevant messaging service provider. |
|
| Your message has been taken out of the queue and in the process of getting sent to the relevant messaging service provider. |
|
| Postman has made the request to the relevant messaging service provider to have the message sent. However, it has not yet received a notification from the provider on the request status. |
|
| The relevant messaging service provider has sent an update to Postman saying that the message has been sent to the recipient's Telco. Note: In this state, your message has reached the telco, but may or may not have been delivered to the recipient's phone. This could be because the recipient's phone is off or in airplane mode.
Beyond 48 hours, if the message status remains |
|
| The relevant messaging service provider has sent an update to Postman saying that the message has been delivered by the Telco to the recipient. Note: This is a terminal status meaning that the message has been delivered by the telco to the recipient. |
|
| This is a terminal status meaning that the message failed to send either due to an error in Postman or from the messaging service. More details in the error message available in delivery report download. |
attempts array of objects
Shows an object containing the status
and createdAt
for each attempt. If the status
is failure
, there will be an additional error
object which includes:
type
- The error typedelivery_error
- Error with the delivery of the messageserver_error
code
- The error coderecipient_invalid
recipient_unavailable
content_invalid
routing_error
delivery_unknown_error
server_unknown_error
The full description of each error code can be found in the Message delivery errors page
Last updated