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
- Create a Twilio account
- Get your Account SID and Auth Token from the Twilio Console
- Buy or use an existing Twilio phone number as the sender
- Add a Twilio connector in the Dunmore console or via the API
Supported Events
| Dunmore Event | SMS 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"]
}
| Field | Required | Description |
|---|---|---|
accountSid | Yes | Twilio Account SID |
authToken | Yes | Twilio Auth Token |
from | Yes | Twilio phone number (E.164 format) |
to | Yes | Recipient 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"]
}'