Skip to main content
POST
/
v2
/
{appId}
/
send
Send Alert
curl --request POST \
  --url https://alerts-api.dial.to/v2/{appId}/send \
  --header 'Content-Type: application/json' \
  --header 'x-dialect-api-key: <api-key>' \
  --data '{
  "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

Path Parameters

appId
string<uuid>
required
Example:

Body

application/json
channels
enum<string>[]
required
Minimum length: 1
message
object
required
recipient
object
required
  • Option 1
  • Option 2
  • Option 3
Example:
topicId
string<uuid> | null
data
object
Example:
push
object

Response