Public
Subscribe to Newsletter
Subscribe an email to the AIOKA newsletter — public, no API key required
POST
Overview
Public endpoint used by the newsletter signup form onaioka.io. Stores the
email in the newsletter_subscribers table, sends a welcome email via Resend,
and fires an admin Telegram notification.
Tier: Public ✅ — No API key required
Rate limit: 3 requests per IP per hour
Spam Protection
- Honeypot: a hidden
websitefield must be empty. Any non-empty value returns400. - Rate limit: 3 attempts per IP per hour (Redis-backed sliding window).
- Silent duplicate: already-subscribed emails return
200silently — no error, no resent welcome email. This prevents email enumeration and harvesting attacks.
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
email | string | ✅ | Valid email address, max 254 chars |
name | string | ❌ | Optional name, max 100 chars |
website | string | ❌ | Honeypot — must be empty |
Response Fields
| Field | Type | Description |
|---|---|---|
message | string | Confirmation message |
What Happens Next
- Your email is stored in the
newsletter_subscriberstable. - A welcome email is sent to you via Resend with the subject “Welcome to AIOKA — The Council Is Now Watching For You 👻”.
- The AIOKA owner is notified via Telegram.
- You’ll start receiving verdicts, council rulings, and market intelligence directly from the Judiciary Engine.