SMFitness

Settings & Integration

Connections
Database

Supabase project ctolfktrxumeyozljenp (shared with the member website). Members, plans, supplements, orders, trials and inbox are live.

WhatsApp

Set WHATSAPP_TOKEN, WHATSAPP_PHONE_ID, WHATSAPP_TEMPLATE_NAME in .env.local (Meta Cloud API). Template needs one body variable {{1}}. Without them, messages open in WhatsApp chats and are logged as queued.

Fingerprint attendance

Set each member's device ID on their profile. Point the machine's push/webhook (or a small bridge script) to:

POST /api/attendance
x-api-key: <ATTENDANCE_API_KEY>
{"device_user_id":"12"}

Needs SUPABASE_SERVICE_ROLE_KEY and ATTENDANCE_API_KEY in .env.local. Manual check-in works meanwhile.