🥋 Dojo Jutsu Docs docs.dojojutsu.com
← dojojutsu.com Launch Portal →

# SMS & Push Notification Privacy, TCPA & 10DLC Opt-In Policy

By default, Dojo Jutsu delivers urgent class cancellations, child check-in confirmations, and membership reminders via zero-cost Push Notifications and Email—while providing an optional, strictly double-opt-in Bring-Your-Own-Twilio (BYO-Twilio) SMS gateway for academies that choose to send text messages.


# 1. Executive Summary & Zero-Liability Default

SMS text messaging in the United States is governed by the Telephone Consumer Protection Act (TCPA), FCC rules, and CTIA / A2P 10DLC carrier registration. Statutory damages under TCPA range from $500 to $1,500 per unsolicited text message.

To protect both Dojo Jutsu and individual martial arts schools:

  • Push + Email First ($0 Per Message): All alerts (05:30 class cancellations, Sōkoden succession pings, child kiosk arrival confirmations, and pass standing reminders) dispatch via native Push Notifications and Transactional Email by default with $0 carrier segment fees.
  • Optional Bring-Your-Own-Twilio (BYO-Twilio): Schools that explicitly wish to send SMS texts can connect their own verified Twilio Account SID and A2P 10DLC campaign. Carrier segment costs are billed directly to the opting-in dojo's Twilio account.

Before the optional SMS gateway dispatches any outbound SMS segment, it verifies consent in public.tcpa_sms_consent_ledger under strict multi-tenant Row Level Security (dojo_id and member_id):

MERMAID
flowchart LR
    FORM["1. Affirmative In-App Consent\n(Sign-Up / Notification Settings)"] --> LEDGER["2. Ledger Record Created\n(status = PENDING_DOUBLE_OPT_IN)"]
    LEDGER --> CONFIRM["3. Recipient Replies YES / START\n(status = DOUBLE_OPT_IN_CONFIRMED)"]
    CONFIRM --> DISPATCH["4. Outbound SMS Allowed\n(Shoulder-Surfing Privacy Scrubbed)"]
    DISPATCH --> STOP["5. Recipient Replies STOP / UNSUBSCRIBE\n(status = REVOKED_STOP_KEYWORD)"]

# Mandatory Audit Fields Stored in tcpa_sms_consent_ledger

  • dojo_id & member_id: Strict tenant and member foreign keys with Row Level Security.
  • phone_e164: Normalized E.164 recipient mobile number.
  • consent_status:
  • PENDING_DOUBLE_OPT_IN — User checked the affirmative box in the app, awaiting handset YES/START confirmation.
  • DOUBLE_OPT_IN_CONFIRMED — Confirmed and eligible for urgent alerts.
  • REVOKED_STOP_KEYWORD — Immediately locked upon receiving STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, or QUIT.
  • REVOKED_USER_PREFERENCE — Toggled off inside Notification Preferences.
  • consent_disclosure_text: Exact verbatim disclosure shown to the user at the time of opt-in.
  • client_ip_hash & user_agent: Cryptographic audit trail of the opt-in session.
  • opted_in_at, confirmed_at, revoked_at, last_inbound_keyword: Immutable lifecycle timestamps.

# 3. Automatic Carrier Keyword Handling (STOP / HELP / START)

The optional-sms-gateway Edge Function processes inbound Twilio webhooks (mode = 'inbound_keyword') in real time:

Inbound KeywordLedger TransitionAutomated Carrier Reply
STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUITREVOKED_STOP_KEYWORD"Dojo Jutsu: You have been unsubscribed from SMS alerts. No further texts will be sent. Reply START to re-subscribe."
START, YES, UNSTOPDOUBLE_OPT_IN_CONFIRMED"Dojo Jutsu: Your SMS alert subscription is confirmed. Msg & data rates may apply. Reply HELP for help, STOP to cancel."
HELP, INFO(No status change)"Dojo Jutsu Alerts: Urgent class cancellations & academy continuity notifications. Reply STOP to unsubscribe or contact support@dojojutsu.com."

# 4. Shoulder-Surfing Lock-Screen Privacy Scrubbing

Even when SMS is enabled via BYO-Twilio, sanitizeSmsBodyForPrivacy() strips all dollar amounts ($150, $40.00) and confidential membership tier labels (Founding Member, Legacy Rate, Family Plan) before handing the payload to Twilio, ensuring a student's lock screen never leaks private tuition rates on the tatami.