Broadcast Message

POST
URL/whatsapp/broadcast-api/send?token=TOKEN&url=APPS_URL&to=0811xxxxx900&context=Sending+Hello&message=Hello+from+BotNotify&priority=5
PARAMS
token
TOKEN
url
APPS_URL
to
0811xxxxx900 (Target Number)
context
Sending+Hello (Broadcast Context or Description)
message
Hello+from+BotNotify (Broadcast Message)
priority
5 (1- 9, less number get more priority)
RESPONSE
Success
{
    "success": true,
    "message": "Success to request broadcast",
    "data": [
        {
            "id": 1001,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx900",
            "receiver_name": null,
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        }
    ]
}
POST
URL/whatsapp/broadcast-api/send?token=TOKEN&url=APPS_URL
PARAMS
token
TOKEN
url
APPS_URL
BODY formdata
to
0811xxxxx900 (Target Number)
context
Sending Hello (Broadcast Context or Description)
message
Hello from BotNotify (Broadcast Message)
priority
5 (1- 9, less number get more priority)
RESPONSE
Success
{
    "success": true,
    "message": "Success to request broadcast",
    "data": [
        {
            "id": 1001,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx900",
            "receiver_name": null,
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        }
    ]
}
POST
URL/whatsapp/broadcast-api/send?token=TOKEN&url=APPS_URL
PARAMS
token
TOKEN
url
APPS_URL
BODY formdata
to[1]
0811xxxxx900 (Target Number)
to[2]
0811xxxxx901 (Target Number)
to[3]
0811xxxxx902 (Target Number)
context
Sending Hello (Broadcast Context or Description)
message
Hello from BotNotify (Broadcast Message)
priority
5 (1- 9, less number get more priority)
RESPONSE
Success
{
    "success": true,
    "message": "Success to request broadcast",
    "data": [
        {
            "id": 1001,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx900",
            "receiver_name": null,
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        },
        {
            "id": 1002,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx901",
            "receiver_name": null,
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        },
        {
            "id": 1003,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx902",
            "receiver_name": null,
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        }
    ]
}
POST
URL/whatsapp/broadcast-api/send?token=TOKEN&url=APPS_URL
PARAMS
token
TOKEN
url
APPS_URL
BODY formdata
to[number]
0811xxxxx900 (Target Number)
to[name]
John Doe (Target Name)
context
Sending Hello (Broadcast Context or Description)
message
Hello from BotNotify (Broadcast Message)
priority
5 (1- 9, less number get more priority)
RESPONSE
Success
{
    "success": true,
    "message": "Success to request broadcast",
    "data": [
        {
            "id": 1001,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx900",
            "receiver_name": "Joh Doe",
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        }
    ]
}
POST
URL/whatsapp/broadcast-api/send?token=TOKEN&url=APPS_URL
PARAMS
token
TOKEN
url
APPS_URL
BODY formdata
to[1][number]
0811xxxxx900 (Target Number)
to[1][name]
John Doe (Target Name)
to[2][number]
0811xxxxx900 (Target Number)
to[2][name]
Jesicca Doe (Target Name)
context
Sending Hello (Broadcast Context or Description)
message
Hello from BotNotify (Broadcast Message)
priority
5 (1- 9, less number get more priority)
RESPONSE
Success
{
    "success": true,
    "message": "Success to request broadcast",
    "data": [
        {
            "id": 1001,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx900",
            "receiver_name": "Joh Doe",
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        },
        {
            "id": 1002,
            "sender_number": "0820xxxxx001",
            "receiver_number": "0811xxxxx901",
            "receiver_name": "Jessica Doe",
            "message": {
                "context": "Sending Hello",
                "type": "text",
                "content": "Hello from BotNotify",
                "media": {
                    "file_url": null,
                    "file_name": null,
                    "file_size": null
                }
            },
            "requested_at": "2023-01-01 08:00:00"
        }
    ]
}
Failed (Target number empty)
{
    "success": false,
    "message": "Receiver message cannot be empty"
}
Failed (Target number not valid)
{
    "success": false,
    "message": "Please provide valid whatsapp numbers"
}
Failed (Message empty)
{
    "success": false,
    "message": "Text message cannot be empty"
}
Failed (Any errors)
{
    "success": false,
    "message": "Failed to request broadcast"
}