curl --request POST \
--url https://apibroadcast.beem.africa/v1/broadcast/template/api-send \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"from_addr": "2557******45",
"destination_addr": [
{
"phoneNumber": "2547******06",
"params": [
"John"
]
}
],
"channel": "whatsapp",
"content": {
"mediaUrl": "https://example.com/image.jpg"
},
"messageTemplateData": {
"id": 1024
}
}
'{
"data": {
"statusCode": 123,
"successful": true,
"message": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validation": {},
"credits": {}
}
}MOJA Broadcast API
Send template message
Send an approved WhatsApp template to one or more recipients.
POST
/
v1
/
broadcast
/
template
/
api-send
curl --request POST \
--url https://apibroadcast.beem.africa/v1/broadcast/template/api-send \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"from_addr": "2557******45",
"destination_addr": [
{
"phoneNumber": "2547******06",
"params": [
"John"
]
}
],
"channel": "whatsapp",
"content": {
"mediaUrl": "https://example.com/image.jpg"
},
"messageTemplateData": {
"id": 1024
}
}
'{
"data": {
"statusCode": 123,
"successful": true,
"message": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validation": {},
"credits": {}
}
}Authorizations
basicAuthaccessToken
Beem API credentials: API key as username, API secret as password.
Body
application/json
WhatsApp-enabled sender on your Beem account.
One or more recipients to send the template message to.
Minimum array length:
1Show child attributes
Show child attributes
Messaging channel. Use whatsapp for WhatsApp templates.
Example:
"whatsapp"
Identifies the WhatsApp template to send.
Show child attributes
Show child attributes
Media attachment for templates that require an image or document.
Show child attributes
Show child attributes
Response
Successful response
Show child attributes
Show child attributes
