Extending AcelleMail Source Code
Understand AcelleMail's Laravel architecture and add custom features without breaking core functionality.
AcelleMail fires webhooks to your URL when key events occur. Configure endpoints at Settings → Webhooks → Add.
| Event | When it fires |
|---|---|
subscriber.created |
New subscriber added to a list |
subscriber.unsubscribed |
Subscriber opts out |
subscriber.bounced |
Hard or soft bounce recorded |
subscriber.complained |
Spam complaint received |
campaign.sent |
Campaign delivery completed |
campaign.opened |
First open tracked |
campaign.clicked |
Link click recorded |
All events share a common envelope:
{
"event": "subscriber.created",
"fired_at": "2026-03-15T10:23:00Z",
"data": {
"subscriber": {
"uid": "sub_abc123",
"email": "user@example.com",
"first_name": "Jane",
"status": "subscribed",
"list_uid": "list_xyz"
}
}
}
AcelleMail signs each webhook with HMAC-SHA256. Verify in PHP:
$secret = 'your_webhook_secret';
$signature = $_SERVER['HTTP_X_ACELLE_SIGNATURE'] ?? '';
$payload = file_get_contents('php://input');
$expected = hash_hmac('sha256', $payload, $secret);
if (!hash_equals($expected, $signature)) {
http_response_code(401);
exit('Invalid signature');
}
If your endpoint returns a non-2xx status, AcelleMail retries up to 5 times with exponential backoff (1 min, 5 min, 30 min, 2 hrs, 8 hrs). After 5 failures the webhook is marked inactive.
Understand AcelleMail's Laravel architecture and add custom features without breaking core functionality.
Authenticate and make your first API calls to manage subscribers, campaigns, and automations programmatically.
Authenticate with Bearer tokens and explore the core AcelleMail REST API endpoints with curl examples.
Authenticate with Bearer tokens and explore the core AcelleMail REST API endpoints with curl examples.
Understand AcelleMail's Laravel architecture and add custom features without breaking core functionality.
Authenticate and make your first API calls to manage subscribers, campaigns, and automations programmatically.
AcelleMail is the self-hosted email marketing platform you control end-to-end.
View Pricing