PlatformXeDocs
Get API Key

Delivery Tracking

Track email delivery status via events and webhooks.

This page describes the email delivery events and how to subscribe to them, to track delivery status, monitor bounce rates, and trigger follow-up actions.

Not emitted by PlatformXe yet. EMAIL_SENT, EMAIL_DELIVERED, EMAIL_BOUNCED and EMAIL_FAILED are not in PlatformXe's event catalog today, and nothing sends them. Creating a subscription for them succeeds (201), but it receives no deliveries, so the delivery rate below cannot be computed from events yet. Whether PlatformXe emits them is an open decision; this page will say when they are live. The event catalog lists the events that are delivered today.

Delivery events

EventDescription
EMAIL_SENTEmail accepted by the provider for delivery
EMAIL_DELIVEREDEmail confirmed delivered to the recipient inbox
EMAIL_BOUNCEDEmail bounced (hard or soft bounce)
EMAIL_FAILEDEmail moved to dead-letter queue after exhausting all retries

Subscribing to events

Create an event subscription in the portal or via the API to receive delivery events as webhook payloads.

curl -X POST https://api.platformxe.com/api/v1/event-subscriptions \
  -H "Content-Type: application/json" \
  -H "x-api-key: pxk_live_your_api_key_here" \
  -d '{
    "name": "Email delivery status",
    "eventTypes": ["EMAIL_SENT", "EMAIL_DELIVERED", "EMAIL_BOUNCED", "EMAIL_FAILED"],
    "webhookUrl": "https://yourapp.com/webhooks/email-status"
  }'

The key needs events:manage. name (3 characters or more), eventTypes and webhookUrl are required; you do not send a secret. PlatformXe generates the signing secret and returns it once, in the 201 answer ({ subscription, secret }): store it to verify deliveries. See Manage Subscriptions for every field and error.

Webhook payload format

When a delivery event fires, PlatformXe sends a POST request to your webhook URL. The body is eventType, eventId (the same as the X-Event-Id header), timestamp (the send time in unix seconds) and data (the event's payload):

{
  "eventType": "EMAIL_DELIVERED",
  "eventId": "evt_abc123",
  "timestamp": 1775399400,
  "data": {
    "messageId": "msg_abc123def456",
    "to": "jane@example.com",
    "subject": "Order #12345 Confirmed",
    "status": "delivered",
    "deliveredAt": "2026-04-05T14:30:00.000Z"
  }
}

For bounce events, additional fields are included:

{
  "eventType": "EMAIL_BOUNCED",
  "eventId": "evt_def456",
  "timestamp": 1775399460,
  "data": {
    "messageId": "msg_abc123def456",
    "to": "invalid@example.com",
    "subject": "Order #12345 Confirmed",
    "status": "bounced",
    "bounceType": "hard",
    "bounceReason": "Mailbox does not exist"
  }
}

Verifying webhook signatures

Each delivery carries X-Caldera-Signature (sha256= and the hex HMAC-SHA256 of {timestamp}.{raw body}, keyed with the subscription's secret) and X-Caldera-Timestamp. Verify it to ensure the request came from PlatformXe:

import crypto from 'crypto';

function verifyWebhook(rawBody: string, signature: string, timestamp: string, secret: string): boolean {
  const ts = Number(timestamp);
  if (!Number.isInteger(ts) || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
  const a = Buffer.from(signature);
  const b = Buffer.from(expected);
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

See Webhook Delivery for every header, the retry policy and deduplication on X-Event-Id.

Always verify webhook signatures in production. Without verification, an attacker could send fake delivery events to your endpoint.

Delivery rate calculation

Once these events are emitted (see the note at the top of this page), use the event data to calculate your delivery rate:

delivery_rate = EMAIL_DELIVERED / (EMAIL_DELIVERED + EMAIL_BOUNCED + EMAIL_FAILED) * 100

A healthy delivery rate is above 95%. If your rate drops below this, review your recipient lists for invalid addresses and check for content that may trigger spam filters.