POST
/
v2
/
{appId}
/
send-batch
Send Batch Alerts
curl --request POST \
  --url https://alerts-api.dial.to/v2/{appId}/send-batch \
  --header 'Content-Type: application/json' \
  --header 'x-dialect-api-key: <api-key>' \
  --data '{
  "alerts": [
    {
      "channels": [
        "PUSH"
      ],
      "message": {
        "title": "Alert Title",
        "body": "Alert body",
        "image": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png",
        "actions": [
          {
            "type": "link",
            "label": "Open Link",
            "url": "https://dialect.to"
          }
        ]
      },
      "topicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "data": {
        "type": "transaction",
        "transactionId": "123",
        "amount": "100"
      },
      "push": {},
      "recipient": {
        "type": "subscriber",
        "walletAddress": "6CxnSjtasq5Tzwb4b93AhLofXtiDvMpQ2vTkWdSZqTH7"
      }
    }
  ]
}'
{}

Authorizations

x-dialect-api-key
string
header
required

API key to authorize app-level requests

Path Parameters

appId
string
required

Application ID

Example:

"255d6163-7e25-43e9-a188-c2f8d0980a4a"

Body

application/json

Response

202
application/json

Batch messages sent successfully

The response is of type object.