Dunmore

Twilio SMS Integration

Get SMS notifications for payment events via Twilio.

Connect Dunmore to Twilio to receive SMS alerts for critical payment events. Ideal for high-priority notifications that can't be missed.

Setup

  1. Create a Twilio account
  2. Get your Account SID and Auth Token from the Twilio Console
  3. Buy or use an existing Twilio phone number as the sender
  4. Add a Twilio connector in the Dunmore console or via the API

Supported Events

Dunmore EventSMS Message
payment.settled[Dunmore] Payment settled: $X.XX USDC from 0x1234...5678 on /endpoint
payment.failed[Dunmore] Payment FAILED: $X.XX USDC on /endpoint (stage: error_code)
customer.first_payment[Dunmore] New customer! 0x1234...5678 made first payment: $X.XX USDC

Messages are kept concise to fit within SMS limits while including key payment details.

Configuration

{
  "type": "twilio",
  "config": {
    "accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "authToken": "your-auth-token",
    "from": "+15551234567",
    "to": "+15559876543"
  },
  "eventTypes": ["payment.failed", "customer.first_payment"]
}
FieldRequiredDescription
accountSidYesTwilio Account SID
authTokenYesTwilio Auth Token
fromYesTwilio phone number (E.164 format)
toYesRecipient phone number (E.164 format)

API Example

curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "twilio",
    "config": {
      "accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "authToken": "YOUR_AUTH_TOKEN",
      "from": "+15551234567",
      "to": "+15559876543"
    },
    "eventTypes": ["payment.failed", "customer.first_payment"]
  }'