$ curl -X POST \
https://unismsapi.com/api/blast \
-u $UNISMS_SECRET_KEY: \
-H "Content-Type: application/json" \
-d '{
"sender_id": "YourStore",
"recipients": [
"+639171234567",
"+639181234567"
],
"content": "Flash sale until 9PM!",
"metadata": {"campaign": "FLASH-1024"}
}'
# 200 OK
{
"blast_id": "blast_7c1e9a52-…",
"total": 2,
"queued": 2,
"skipped": []
}
# Then a webhook for each message:
{
"event": "message.sent",
"message": {
"recipient": "+639171234567",
"metadata": {"campaign": "FLASH-1024"}
}
}