Send Event API
Send Event Bulk
POST

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

Authorization*
curl --request POST \
  --url https://api.ravenapp.dev/v1/apps/{app_id}/events/bulk_send \
  --header 'Authorization: <authorization>' \
  --data '{
  "event": "<event>",
  "batch": "<batch>"
}'

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