Send flash SMS
POSThttps://core-prod.malipopay.co.tz/api/v1/sms/flash
Send a flash (class 0) SMS — appears directly on the recipient's screen without being saved. Useful for OTPs and urgent alerts.
Request
- application/json
- Body
- Example (auto)
Bodyrequired
senderstringrequired
Sender ID
Example:
MALIPOPAYphoneNumberstringrequired
Recipient phone number
Example:
255742200105messagestringrequired
Message content
Example:
Hello from MalipoPay!{
"sender": "MALIPOPAY",
"phoneNumber": "255742200105",
"message": "Hello from MalipoPay!"
}
Responses
- 201
- 400
- 401
- 500
Flash 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/flash' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'apiToken: <apiToken>' \
-d '{
"sender": "MALIPOPAY",
"phoneNumber": "255742200105",
"message": "Hello from MalipoPay!"
}'
Response