Send Single SMS Message
This document will describe how to send a singular SMS message using our API.
POST /send/single
POST /send/singlecurl -X POST \
"http://api.mobivatebulksms.com/send/single" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [API Key]' \
-d '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal" }'import requests
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer [API Key]',
}
json_data = {
'originator': 'Test',
'recipient': '44700011122',
'body': 'This is a test message',
'routeId': 'mglobal',
}
response = requests.post('http://api.mobivatebulksms.com/send/single', headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal" }'
#response = requests.post('http://api.mobivatebulksms.com/send/single', headers=headers, data=data)Send a single SMS message with reference
curl -X POST \
"https://api.mobivatebulksms.com/send/single" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [API Key]' \
-d '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal", "reference": "my-reference-1234" }'import requests
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer [API Key]',
}
json_data = {
'originator': 'Test',
'recipient': '44700011122',
'body': 'This is a test message',
'routeId': 'mglobal',
'reference': 'my-reference-1234',
}
response = requests.post('https://api.mobivatebulksms.com/send/single', headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal", "reference": "my-reference-1234" }'
#response = requests.post('https://api.mobivatebulksms.com/send/single', headers=headers, data=data)curl -X POST \
"https://api.mobivatebulksms.com/send/single" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [API Key]' \
-d '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal", "reference": "myref", "campaignId": "abc-123" }'import requests
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer [API Key]',
}
json_data = {
'originator': 'Test',
'recipient': '44700011122',
'body': 'This is a test message',
'routeId': 'mglobal',
'reference': 'myref',
'campaignId': 'abc-123',
}
response = requests.post('https://api.mobivatebulksms.com/send/single', headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{ "originator": "Test", "recipient": "44700011122", "body": "This is a test message", "routeId": "mglobal", "reference": "myref", "campaignId": "abc-123" }'
#response = requests.post('https://api.mobivatebulksms.com/send/single', headers=headers, data=data)Name
Value
Name
Type
Required?
Description
Last updated