POST
/
v1
/
apps
/
{app_id}
/
events
/
bulk_send
curl 'https://api.ravenapp.dev/v1/apps/{{APP_ID}}/events/bulk_send' \
-H 'Authorization: AuthKey {{API_KEY}}' \
-H 'Content-Type: application/json' \
-d '{
    "event": "sample_event_1",
    "batch": [
        {
            "user": {
                "mobile": "+919876543210",
                "email": "x@ravenapp.dev",
                "whatsapp_mobile": "+919876543210", // if empty, `mobile` is considered for whatsapp
            },
            "data": {
                "name": "John Doe",
	              "date": "01 December 2020"
            }
        },
        {
            "user": {
                "mobile": "+919876543210",
                "email": "x@ravenapp.dev",
                "whatsapp_mobile": "+919876543210", // if empty, `mobile` is considered for whatsapp
            },
            "data": {
                "name": "John Doe",
	              "date": "01 December 2020"
            }
        }
    ]
}'

Parameters

app_id
string
required

The id of the app

Body

event
string
required

The name of the event

batch
object[]
required

Batch of messages to be triggered

curl 'https://api.ravenapp.dev/v1/apps/{{APP_ID}}/events/bulk_send' \
-H 'Authorization: AuthKey {{API_KEY}}' \
-H 'Content-Type: application/json' \
-d '{
    "event": "sample_event_1",
    "batch": [
        {
            "user": {
                "mobile": "+919876543210",
                "email": "x@ravenapp.dev",
                "whatsapp_mobile": "+919876543210", // if empty, `mobile` is considered for whatsapp
            },
            "data": {
                "name": "John Doe",
	              "date": "01 December 2020"
            }
        },
        {
            "user": {
                "mobile": "+919876543210",
                "email": "x@ravenapp.dev",
                "whatsapp_mobile": "+919876543210", // if empty, `mobile` is considered for whatsapp
            },
            "data": {
                "name": "John Doe",
	              "date": "01 December 2020"
            }
        }
    ]
}'