Contacts
| Company | Type | Group | Contact | Phone | Status | Source |
|---|
Templates
Send
Send log
| When | Company | Template | Status | Error |
|---|
Email Health
Projects (last 30 days)
| Project | Type | Sent | Delivered | Bounce % | Complaint % | Status |
|---|
Latest events
| When | Type | Detail |
|---|
Projects
Select a project on the left, or create a new one.
Settings
Email sending
Choose how outgoing emails are actually delivered. Until a provider is fully configured, sends stay in TEST MODE (logged, never delivered).
Paste this into SendGrid → Settings → Mail Settings → Event Webhook. Enable Bounce, Dropped, Unsubscribe, Group Unsubscribe and Spam Report events. Contacts matching those events are automatically marked unsubscribed/bounced and skipped on future sends.
Checking…
No bounce/complaint webhook exists for plain SMTP — a bounce there only ever shows up as a reply email to the sending mailbox. Mark those contacts manually in the Contacts table.
Domains (Cloudflare)
Connect a Cloudflare zone so a project's "Set up domain automatically" button can insert its DKIM/MAIL FROM DNS records for you, instead of pasting them in by hand. A zone covers its root domain and every subdomain of it.
| Root domain | Zone ID |
|---|
Branding
Used in templates via {{brand_name}}, {{brand_logo_block}}, {{brand_website}} and {{brand_footer}}.
API tokens
Give Muse AI (or any other integration) its own token instead of sharing your password. Tokens don't expire on their own — revoke one here any time and whatever used it stops working immediately.
Copy this now — it won't be shown again:
| Name | Token | Created | Last used |
|---|
Every route below is served from this same server. Routes under /api/* (except /api/auth/login and /api/health) require an Authorization: Bearer <token> header or the token login cookie — either a session token from logging in, or a named API token from the API Tokens tab (preferred for Muse AI and other integrations, since it doesn't require sharing your password and can be revoked independently).
Auth
Log in. Returns a Bearer token and also sets a session cookie, so this works for both the dashboard and Muse AI.
Clears the session cookie.
API Tokens
Managing tokens always requires a real password login — an API token can never create or revoke other tokens, including itself.
List tokens — name, masked preview, created/last-used dates. Never the real value.
Create a token. The full value is only ever returned here, once.
Revoke a token immediately.
Contacts
Create or update a contact — the endpoint Muse AI calls each time it discovers one. Upserts by email so re-discovering the same person doesn't duplicate them.
Same as above for a batch of leads at once. This is also what the dashboard's "Import CSV" button uses — the CSV is parsed in the browser (any type/company/category column maps to companyType, group/list maps to groupName, anything else unrecognized is folded into notes) and sent here.
List/search contacts. All query params are optional; group is an exact match on groupName, used by the Send tab's group picker to fetch a group's full membership. Pagination only kicks in when page is given (default pageSize 50, max 200) — the response is still a plain array either way, with the total matching count in an X-Total-Count response header. Omit page entirely to get everything at once, as before.
Distinct group names currently in use — feeds the group filter on Contacts and the group picker on Send.
Fetch one contact.
Update any field, including status (new / contacted / replied / unsubscribed / bounced) — this is how a contact gets manually suppressed.
Assigns (or moves) a batch of contacts into a group at once — what the Contacts tab's "Add selected to group" button uses.
Deletes the contact and its send history.
Templates
List templates.
Fetch one template.
Create a template. Omit projectId for a general contact-based template; set it to scope the template to a project for use with POST /api/v1/send, which also unlocks textBody (plain-text alternative) and a per-template replyTo override.
List just one project's templates (omit the query param for every template, as before).
Update a template (any subset of name/subject/htmlBody/textBody/replyTo).
Delete a template.
Send
Send a template to one or more contacts. Contacts that are unsubscribed or bounced are skipped automatically (and logged as "skipped", not silently dropped).
Render a template for one contact without sending — used by the dashboard's preview panes.
Last 200 send attempts (sent / failed / skipped), newest first.
Settings
Current email provider config — stored secrets (SES keys, SendGrid key, SMTP password) are encrypted at rest and come back as ...Set: true/false or a short preview, never the real value.
Update provider + credentials, including the account-wide replyTo default. Leaving a secret field blank keeps whatever is already stored.
Send (or log, in test mode) a test email.
Brand name, logo URL, website, footer text.
Update branding fields.
Multipart upload, field name logo. Stores the file under /uploads and saves it as the brand logo.
Whether SES_WEBHOOK_TOKEN is set and, if so, the token value — used to build the webhook URL shown on the Configuration tab.
Saves the given topic ARN and subscribes this server's SES webhook to it (SNS Subscribe, protocol HTTPS) — the endpoint and webhook token are built server-side and never sent to the browser or returned in the response. The existing /api/ses-events handler auto-confirms the subscription once SNS posts its confirmation message.
Live-checks AWS (ListSubscriptionsByTopic) for a subscription matching our webhook and returns its status. Never returns the endpoint URL or token.
Unsubscribes the last confirmed subscription (SNS Unsubscribe).
Points the given SES identity's Bounce, Complaint and Delivery notifications at the saved SNS topic (SetIdentityNotificationTopic) with original headers included (SetIdentityHeadersInNotificationsEnabled), so the webhook can match events back to a project. Returns the identity's current notification attributes (GetIdentityNotificationAttributes). Requires a topic ARN to already be saved via /sns/connect.
List connected Cloudflare zones (API token collapsed to a boolean) — used by a project's "Set up domain automatically" to find which zone, if any, covers its sending domain.
Connects a Cloudflare zone. Verifies the token actually has access to that zone ID (and that it's really for rootDomain) before saving. A project's sending domain matches a zone when it equals the root domain or is a subdomain of it.
Disconnects a zone. Projects on that domain fall back to manual DNS record pasting.
Email Health & billing alerts
Sent/delivered/bounced/complaint counts and rates for the last 7 and 30 days, plus the latest 20 bounce/complaint/delivery events. Warns when bounce rate > 4% or complaint rate > 0.08%.
Same shape, scoped to one project — sent then comes from that project's POST /api/v1/send history instead of the legacy Send tab.
30-day sent/delivered/bounce-rate/complaint-rate for every project at once — feeds the Email Health project comparison table.
Undismissed AWS Budgets alerts received on the SES SNS topic.
Dismisses one billing alert banner.
Projects
A project is a "site" that sends through the shared AWS SES account with its own domain/from-identity/configuration set — or, optionally, through its own separate AWS account (awsRegion/awsAccessKeyId/awsSecretAccessKey), for operators running several unrelated sites off this one dashboard. Leave those three blank to keep using the shared account. These endpoints use the normal admin login — project API keys (below) are a separate, send-only credential.
List all projects.
fromEmail's domain must match sendingDomain exactly, or this is rejected.
Update any project field. Omit awsAccessKeyId/awsSecretAccessKey to leave a stored AWS override untouched; send them as "" to clear the override back to the shared account.
One-click pause/resume — paused projects reject every POST /api/v1/send with 403.
Deletes the project, its API keys, suppression list and send log. Templates are kept but unassigned rather than deleted.
Save DNS records as free-text notes (not generated by this app — paste in whatever AWS gave you after creating the SES identity).
Creates the SES identity (Easy DKIM) and a custom MAIL FROM domain for this project's sending domain. If a Cloudflare zone covering that domain is connected (Settings > Domains), the DKIM/MAIL FROM DNS records are inserted automatically; otherwise the values are returned and saved onto the project for manual pasting.
Read-only call to SES GetEmailIdentity for the project's domain — reports verification/DKIM/MAIL FROM status, changes nothing in AWS.
List this project's API keys (masked previews only).
Create a project API key — requires the real password login, same rule as the admin-level API tokens. The full value (zx_live_...) is only ever returned here, once.
Revoke a key immediately.
This project's bounce/complaint/unsubscribe list.
Transactional sending (v1)
Separate from everything above: authenticated with a project API key (zx_live_...), not an admin login or token.
Sends through the project the key belongs to — from is always that project's own identity, never caller-supplied. Provide either template_id (must belong to this project) or a raw subject + html (+ optional text). variables are substituted as {{key}} into subject/html/text, alongside an always-available {{unsubscribe_url}}.
Blocked (422) if the address is on the global hard-bounce list, this project's complaint/bounce list, or — for marketing projects only — this project's unsubscribe list (transactional projects ignore that last one). Rate-limited per key (default 10/sec, 429 past it). Every attempt is logged regardless of outcome.
Webhooks & unsubscribe (public — no login)
SendGrid's Event Webhook target — the secret shown on the Configuration tab replaces a login here. Marks matching contacts bounced/unsubscribed.
AWS SNS's HTTP(S) subscription target for the SES bounce/complaint/delivery topic (token read from the SES_WEBHOOK_TOKEN env var, shown on the Configuration tab). Verifies the SNS signature, auto-confirms new subscriptions, and is idempotent per SNS MessageId. Non-SES JSON on the same topic (e.g. AWS Budgets alerts) is stored rather than dropped. Events are attributed to a project via the SES configuration set name or the outreach_project_id message tag this app attaches to every POST /api/v1/send; unattributed events (the legacy Send tab) only update CRM contacts as before.
Confirmation page — never unsubscribes on its own (protects against email scanners that auto-click links).
Actually unsubscribes, triggered by the confirm button.
Same GET-confirms/POST-acts pattern, for project (transactional/marketing) sends. The token is a stateless HMAC of projectId+email — no per-recipient row to store — and is embedded automatically as {{unsubscribe_url}} in every POST /api/v1/send.
Adds the address to that project's suppression list with reason "unsubscribe".
{ ok, emailTestMode, emailProvider } — no auth.
What this system is, how its pieces fit together, and the order to set them up in. For the exact request/response shape of every endpoint, see the API Routes tab instead.
What this is
An email-sending system with two separate front ends onto the same AWS SES account:
- Contacts / Outreach (Contacts, Templates, Send, Logs tabs) — a small CRM: Muse AI (or you) adds company contacts, picks a template, and sends one-off or campaign-style outreach emails. This is the original "Outreach" project.
- Projects / transactional sending (
POST /api/v1/send) — a general-purpose transactional email API for other sites/products, each with its own sending domain, suppression list, and API key. Normally they share the one AWS SES account configured in Settings, though a project can optionally use its own separate AWS account instead.
Both paths funnel through the same provider layer, the same bounce/complaint webhook, and the same Email Health reporting.
First-time setup, in order
- Email sending (Settings → Configuration) — choose a provider and enter credentials. AWS SES is recommended if you also want bounce/complaint tracking and multiple Projects; SendGrid and SMTP work for simple single-domain sending. Until this is filled in, every send stays in TEST MODE (logged, nothing delivered).
- Branding (same page) — brand name, logo, website, footer text, used by the
{{brand_*}}template variables. - If using AWS SES: verify your sending domain as an identity in the AWS console first (SES won't send from an unverified identity no matter what this app does).
- Connect AWS SNS (same page, below the webhook URL) — wires up bounce/complaint/delivery tracking automatically: save your SNS topic ARN, click Connect to SNS, then Link SES notifications for your identity. See the "AWS SES webhook" section below for what IAM permissions this needs.
- API Tokens (Settings → API Tokens) — create one for Muse AI (or any other integration) instead of sharing the admin password. Shown once at creation; revoke any time.
- Templates — write at least one, using
{{variables}}for per-contact personalization. - Contacts — add them by hand or have Muse AI push them via the API, then send from the Send tab.
- Optional — add a new site, if another site/product needs transactional email: Projects tab → + New project → fill in the short wizard. See "Adding a new site" below for the full walkthrough.
Contacts, templates & sending
A contact belongs to a company, has a free-text company type (e.g. "Restaurant", "Spice wholesaler" — useful for filtering/segmenting a lead list), a free-text group (one per contact, for sending to a named batch later), and a status (new / contacted / replied / unsubscribed / bounced / complained). Add contacts by hand, have Muse AI push them via the API, or use Import CSV on the Contacts page to bulk-load a lead list — it reads the header row and maps type/company/category onto company type and group/list onto group automatically (or set one group for every row in the file via the field next to the Import CSV button), folding anything else into notes. On the Contacts page, check some rows and use "Add selected to group" to assign or move them into a group at any time. A template is HTML (+ optional plain text) with {{variables}} — contact fields, plus brand variables and an automatic {{unsubscribe_url}}. On the Send tab, picking a group from the dropdown selects its entire membership at once (skipping any that are unsubscribed/bounced/complained) instead of checking contacts one by one. Sending renders the template per contact and records the outcome in Logs (Sent tab shows the last 200 attempts). A contact that's unsubscribed, bounced, or complained is skipped automatically — see the next section.
Unsubscribe & suppression
Every outgoing email includes a working unsubscribe link. do_not_email is the one flag sending actually checks (the human-readable status is just a label); it's set automatically on:
- Unsubscribe — confirmed via a two-step GET-then-POST page, so an email scanner auto-clicking the link can't unsubscribe someone by accident.
- Permanent bounce — immediately.
- Transient (soft) bounce — only after 3 of them; one flaky delivery shouldn't suppress a contact, a pattern should.
- Complaint — immediately.
Projects have their own version of this (below), scoped per project plus a global cross-project hard-bounce list.
AWS SES bounce/complaint webhook
SNS posts Bounce/Complaint/Delivery notifications to POST /api/ses-events?token=..., which verifies the SNS signature, is idempotent (each message processed once), and updates contacts/projects accordingly. It also catches AWS Budgets billing alerts sent on the same topic and shows them as a dismissible banner. Results feed the Email Health tab: 7/30-day sent/delivered/bounced/complaint counts and rates, with warnings past SES's own reputation thresholds (bounce > 4%, complaint > 0.08%).
Wiring SNS to that endpoint can be done two ways:
- Automatically — the "Connect AWS SNS" block in Settings → Configuration. Needs the IAM user/role behind your stored AWS credentials to additionally have
sns:Subscribe,sns:ListSubscriptionsByTopic,sns:Unsubscribeon the topic, andses:SetIdentityNotificationTopic,ses:SetIdentityHeadersInNotificationsEnabled,ses:GetIdentityNotificationAttributeson the identity (see the README for a ready-to-paste policy). - Manually — copy the webhook URL shown on that same page into an HTTPS subscription on your SNS topic yourself, and add an SES event destination to Bounce/Complaint/Delivery pointing at it.
Projects & transactional sending
A project is a "site" that sends through AWS SES under its own domain, from-identity, and optional configuration set — so several products can share one dashboard while keeping sending reputation, suppression, and stats separate. By default a project sends through the one shared AWS account configured in Settings → Email sending; it can instead carry its own AWS region/access key/secret (Advanced settings on the project form, or the project's own Settings panel) to use a completely separate AWS account — useful when different sites need isolated sending reputation or belong to different AWS billing accounts. Each project has a type:
- marketing — respects its own unsubscribe list.
- transactional — ignores its own unsubscribe list (receipts/resets shouldn't be opt-outable) but still respects bounces and complaints, and the global hard-bounce list.
Each project gets its own API key (zx_live_..., shown once, hashed at rest) for POST /api/v1/send — a key can only send from its own project's domain. Email Health has a per-project filter and comparison table, with a one-click pause per project.
Adding a new site (step by step)
Projects → + New project opens a short wizard instead of a long form. In order:
- Site name — whatever you want to call it in this dashboard (e.g. "Ceyloncy").
- Website URL (optional) — typing this auto-fills the sending domain as
notify.<your domain>once you tab/click away. A subdomain is used on purpose, so transactional mail stays separate from the site's regular inbox mail (and from any existing SPF/DKIM/DMARC it already has). - Sending domain — edit this if you'd rather use a different subdomain than the auto-suggested one.
- What's this for? — Transactional (signup/reset/receipt emails) or Marketing (newsletters, respects unsubscribes).
- If no Cloudflare zone is connected yet for that domain's root (e.g. "ceyloncy.com" for "notify.ceyloncy.com"), the wizard shows an extra box asking for that zone's Zone ID and an API token — paste them in to let DNS be configured automatically, or leave blank to get the DNS values to paste in by hand afterward instead. (A Cloudflare API token needs, at minimum, Zone → DNS → Edit permission scoped to that zone.)
- Click Create site. It then automatically, in order: creates the project, creates the AWS SES identity + a custom MAIL FROM domain for it, inserts the DKIM (3 CNAMEs) and MAIL FROM (MX + TXT) records into Cloudflare if a zone was connected, polls AWS for verification for about 20 seconds, and mints a "Default" API key.
- The result screen shows whether verification already succeeded (DNS on Cloudflare usually propagates in well under a minute) or is still pending (normal — DNS elsewhere can take longer; re-check anytime from the project's DNS records box), plus the API key and a ready-to-run
curlexample forPOST /api/v1/send. Copy the key now — like every API key in this system, it's shown once and only a hash is stored.
Advanced settings on the wizard (collapsed by default) covers everything most sites don't need to touch: a custom From name/email, Reply-To, SES configuration set/tenant name, and the per-project AWS account override described above.
If "Set up domain automatically" reports an IAM permissions error (shown verbatim, since Cloudflare and AWS errors are surfaced as-is rather than swallowed) — the AWS IAM user behind whichever AWS credentials are in effect (shared, or that project's own override) needs ses:CreateEmailIdentity and ses:PutEmailIdentityMailFromAttributes to set it up, and ses:GetEmailIdentity for "Check verification" to read status back — scoped to arn:aws:ses:<region>:<account-id>:identity/* is simplest, since every new site needs the same three actions. This is separate from the narrower ses:SendEmail permission (normally scoped to one project's from-address) and from the SNS-related permissions above.
Domains (Cloudflare)
Settings → Configuration → Domains (Cloudflare) lists every Cloudflare zone this app can manage DNS for, and is where "Set up domain automatically" looks up which zone (if any) covers a project's sending domain — a zone connected for "ceyloncy.com" covers "ceyloncy.com" itself and every subdomain of it (e.g. "notify.ceyloncy.com"). Connecting one from this page (rather than mid-wizard) is useful to set it up once for a domain ahead of adding several projects on it. The token is verified against the zone (and that the zone's actual name matches the root domain typed in) before saving, and is encrypted at rest the same way AWS/SendGrid/SMTP credentials are — this page only ever shows the zone ID back, never the token. Disconnecting a zone here doesn't touch any DNS records already created; it only stops future automatic inserts for that domain.
Security
- AWS SES/SendGrid/SMTP credentials are encrypted at rest (AES-256-GCM) and never returned by any API response — the Settings page only ever gets back
...Set: true/falseor a short preview. - API tokens and project API keys are hashed, not encrypted — there's no way to recover the raw value even from the database, only to verify a presented one matches.
- The SES "tenant name" field on a project is just a custom tag for your own organization, not a native AWS multi-tenant feature.
Muse AI (or any integration)
An integration logs in the same way a person does — POST /api/auth/login with the admin username/password, or (preferred, since it can be revoked independently) a named API token from Settings → API Tokens, sent as Authorization: Bearer <token>. From there it can push contacts, trigger sends, and read logs through the same routes the dashboard uses — see the API Routes tab for the full list, or POST /api/v1/send above for transactional sends into a specific Project.