1. Send Event API
  2. Send Event Bulk
POST

/v1/apps/{app_id}/events/bulk_send

Authorization*

Parameters

app_idRequired
string

The id of the app

Body

eventRequired
string

The name of the event

batchRequired
object[]

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"
            }
        }
    ]
}'