AMS Docs
Docs / Communications

Communications Module

Keep your association connected with real-time chat, email campaigns, SMS, newsletters, announcements, and push notifications โ€” all in one module.

Overview

The Communications module is AMS's unified messaging hub. It brings together six distinct communication channels so you can reach members wherever they are โ€” from real-time chat to scheduled email blasts to SMS alerts.

๐Ÿ’ฌ
Chat
WhatsApp-style real-time messaging
๐Ÿ“ง
Email Campaigns
Scheduled bulk email with analytics
๐Ÿ“ฐ
Newsletters
Branded newsletter builder
๐Ÿ“ฑ
SMS
Text campaigns via Twilio
๐Ÿ“ข
Announcements
Admin broadcast to all members
๐Ÿ””
Push Notifications
Mobile app push alerts

Chat (WhatsApp-style)

The Chat module provides a WhatsApp-style messaging experience within the member portal. It uses WebSockets (Laravel Echo + Soketi/Pusher) for real-time delivery with a maximum latency of ~50ms on the platform.

Email Campaigns

Create, schedule, and track email campaigns from Communications โ†’ Email Campaigns โ†’ New Campaign.

Newsletters

The Newsletter feature is distinct from campaigns โ€” it manages an ongoing publication with subscriber management, issue archiving, and a branded template.

โ„น๏ธ Newsletter vs CampaignUse Newsletters for recurring publications with external subscribers. Use Email Campaigns for one-off targeted messages to your member database.

SMS Campaigns

Send SMS messages to members via Twilio integration. Configure your Twilio account in Settings โ†’ Integrations โ†’ Twilio.

โš ๏ธ SMS CostsSMS is billed through your Twilio account directly. AMS does not add a markup. Ensure your Twilio balance is sufficient before sending large campaigns.

Announcements

Announcements are admin broadcasts that appear as a banner inside the member portal and optionally trigger an email notification. They are ideal for urgent news, maintenance windows, or policy changes.

Push Notifications

Mobile push notifications are sent to members who have installed the AMS mobile app (React Native) and granted notification permission.

โš ๏ธ Mobile App StatusThe native mobile app is in development (Q3 2026). Push notifications currently work on the PWA via browser push API on supported browsers.

Email Configuration (SMTP)

Configure your outgoing email in Settings โ†’ Email โ†’ SMTP Configuration:

env โ€” SMTP Configuration
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailgun.org          # or smtp.sendgrid.net, email-smtp.us-east-1.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=your-smtp-username
MAIL_PASSWORD=your-smtp-password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@pasha.org
MAIL_FROM_NAME="PASHA Membership"

API Endpoints

MethodEndpointDescription
POST/api/v1/admin/announcementsCreate and publish an announcement
GET/api/v1/admin/announcementsList all announcements
POST/api/v1/admin/campaignsCreate an email campaign
POST/api/v1/admin/campaigns/{id}/sendSend or schedule a campaign
GET/api/v1/admin/campaigns/{id}/statsCampaign analytics (opens, clicks)
POST/api/v1/admin/sms/sendSend an SMS to members
GET/api/v1/chat/channelsList accessible chat channels
POST/api/v1/chat/channels/{id}/messagesSend a chat message

Example: Send Announcement via API

bash โ€” POST /api/v1/admin/announcements
curl -X POST https://pasha.ams.hkus1.s4s.host/api/v1/admin/announcements \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Annual General Meeting โ€” Date Confirmed",
    "body": "The PASHA AGM is confirmed for April 15, 2026 at PC Hotel Karachi. Registration opens Monday.",
    "type": "info",
    "send_email": true,
    "dismissable": true,
    "expires_at": "2026-04-15T23:59:59Z"
  }'
json โ€” Response
{
  "id": "ann_01HXZ",
  "title": "Annual General Meeting โ€” Date Confirmed",
  "status": "published",
  "email_sent": true,
  "recipients": 142,
  "published_at": "2026-03-14T10:00:00Z"
}