Email Marketing v3

Next.js Frontend + Laravel API

This workspace is configured for the new multi-tenant API with strict account isolation and multi-domain campaign delivery.

API Base

/api/v3

Auth Route

POST /auth/login

Primary Docs

/var/www/email-app/docs/api-v3.md

Flutter Migration Order

  1. Login with `/api/v3/auth/login` and store bearer token.
  2. Move list/subscriber calls to `/api/v3/lists` and `/api/v3/subscribers`.
  3. Move campaign lifecycle to `/api/v3/campaigns` routes.

Queue + Sending

Campaign send requests queue records in `campaign_messages`. Use the Laravel queue processor command for background execution:

php artisan campaigns:process-queue --campaign-id=42 --limit=5000

Web Access

Use the login page below. After authentication, the web app uses `/api/v3` for dashboard, domains, lists, subscribers, and campaigns.