Dunmore

Email Integration

Receive HTML payment notification emails via Resend.

Get email notifications for payment events, delivered via the Resend transactional email API.

Setup

  1. Create a Resend account and get an API key
  2. Verify your sending domain or use Resend's default sender
  3. Add an Email connector in the Dunmore console or via the API

Supported Events

Dunmore EventEmail SubjectDetails
payment.settled"Payment received: $X.XX USDC"HTML table with amount, network, endpoint, payer wallet, TX hash
payment.failed"Payment failed: $X.XX USDC (stage)"HTML table with amount, stage, error code, error message, endpoint
customer.first_payment"New customer! First payment received"Wallet address and first payment amount
customer.milestone"Customer milestone: $X.XX USDC total spend"Wallet address, milestone name, total spend, payment count

Emails are sent as styled HTML with color-coded headers (green for settled, red for failed, blue for new customers, amber for milestones).

Configuration

{
  "type": "email",
  "config": {
    "apiKey": "re_xxxxxxxxxxxx",
    "from": "notifications@yourdomain.com",
    "to": ["dev@example.com", "finance@example.com"]
  },
  "eventTypes": ["payment.settled", "payment.failed"]
}
FieldRequiredDescription
apiKeyYesResend API key
fromYesSender email address (must be verified in Resend)
toYesArray of recipient email addresses

API Example

curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "email",
    "config": {
      "apiKey": "re_xxxxxxxxxxxx",
      "from": "notifications@yourdomain.com",
      "to": ["dev@example.com"]
    },
    "eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
  }'