Send bulk SMS (alias)
POSThttps://core-prod.malipopay.co.tz/api/v1/sms/bulk-sms
Alias endpoint for POST /sms/bulk. Maintained for backward compatibility.
Request
- application/json
- Body
- Example (auto)
Bodyrequired
senderstringrequired
Example:
MALIPOPAYphoneNumberstring[]required
List of recipient phone numbers
Example:
["255742200105","255684118011"]messagestringrequired
Example:
Bulk SMS from MalipoPay!{
"sender": "MALIPOPAY",
"phoneNumber": [
"255742200105",
"255684118011"
],
"message": "Bulk SMS from MalipoPay!"
}
Responses
- 201
- 400
- 401
- 500
Bulk SMS queued successfully
- application/json
- Schema
- Example (auto)
Schema
successboolean
Example:
truecodeinteger
Example:
2000messagestring
Example:
SMS sent successfullydataobject
SMS result data
{
"success": true,
"code": 2000,
"message": "SMS sent successfully",
"data": {}
}
Validation error
- application/json
- Schema
- Example (auto)
Schema
successboolean
Example:
falsecodeinteger
Example:
5001messagestring
Example:
Template operation failed{
"success": false,
"code": 5001,
"message": "Template operation failed"
}
Unauthorized (invalid apiToken)
- application/json
- Schema
- Example (auto)
Schema
successboolean
Example:
falsecodeinteger
Example:
5001messagestring
Example:
Template operation failed{
"success": false,
"code": 5001,
"message": "Template operation failed"
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
successboolean
Example:
falsecodeinteger
Example:
5001messagestring
Example:
Template operation failed{
"success": false,
"code": 5001,
"message": "Template operation failed"
}
Authorization: apiToken
name: apiTokentype: apiKeyin: headerdescription: Project API key. Get yours from the Malipopay dashboard under Settings → API Keys.
- curl
- python
- nodejs
- php
- java
- go
- CURL
curl -L 'https://core-prod.malipopay.co.tz/api/v1/sms/bulk-sms' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'apiToken: <apiToken>' \
-d '{
"sender": "MALIPOPAY",
"phoneNumber": [
"255742200105",
"255684118011"
],
"message": "Bulk SMS from MalipoPay!"
}'
Response