🖥️Sending Messages via Postman API
How do I send out messages if I want to call Postman's API Endpoints
Please ensure that you have read the Campaign Settings page before reading this page.
Before calling Postman's API endpoints, please ensure
You are connected to the whitelisted IP address for this campaign.
You have entered the correct API key.
Multiple message parameters (variables)
In this example, we will be using the following message content with multiple message parameters (variables).
Request Body example
CSV example for batch send
API users who do not want to manage your message templates within Postman
If you are an API user that
manages message templates within your own system
uses Postman solely for sending out the full text of your message
you may create a single variable, {{body}}
, and insert the message into the {{body}}
variable.
Request Body example - single variable {{body}}
CSV example for batch send - single variable {{body}}
Line breaks in {{body}} messages
When formatting line breaks in your request body, please note the differences between
Single message
Request Body example - {{body}}
and line breaks
For single message requests, you will be required to add the \n
in your request body.
Batch messages
Postman only accepts .csv files for batch message. Take note of the differences when creating messages in excel and in a text editor.
For batch messages, do not to use \n
to create line breaks, as the characters will be read as plain text and get sent out to MOPs
Text Editor
CSV example for batch send - {{body}}
and line breaks
Your message in the {{body}}
variable will need to be encased in ""
if you are creating messages from a text editor.
Excel
Excel automatically adds ""
to your file after you have saved it as a .csv file.
As such, do not encase the message in the {{body}}
variable in ""
.
Postman Test Site limitations
DO NOT conduct load testing on our test site.
Postman test site has a .csv file limit of 20 rows to ensure no load testing is done on this site. More information here on load testing.
Postman's test site is meant for agency users to test out the platform. As such, you should test out the site like how you would send out messages to MOPs in a real scenario, where each number will only receive a single message.
Multiple messages to the same user
If you send test messages with exact same content to the same person multiple times in 1 sitting in the same campaign:
eg. "Hi your appointment is on 1 Jan 2024" was sent to Tom 10 times within 1 batch send.
The telcos' automatic spam filter may be triggered . This means the message may not be delivered to Tom's phone at all, even though it will pass Postman’s send filters and status is reflected as delivered
. See screenshot below on how the batch .csv is formatted in this failed example.
Last updated