{"message":"Accountability Buddy API","workflowEndpoints":{"POST /workflow/run":"Run full draft → review → send pipeline","POST /workflow/draft":"Generate a draft message (no send)","POST /workflow/review":"Review an existing draft (no send)","GET  /workflow/providers":"List configured LLM providers & channels"},"nudgeEndpoints":{"POST /nudge":"Run full nudge pipeline (context → draft → review → send)","POST /nudge/draft":"Generate a nudge draft (no send)","POST /nudge/context":"Inspect assembled client context payload"},"whatsappEndpoints":{"POST /whatsapp/initialize":"Start WhatsApp client and generate QR code","GET  /whatsapp/status":"Get client status and QR code string","POST /whatsapp/disconnect":"Destroy the WhatsApp session","POST /whatsapp/send":"Send a message { to, message }","GET  /whatsapp/messages":"Get all stored messages","GET  /whatsapp/messages/:phone":"Get messages for a specific phone number"},"sheetsEndpoints":{"GET  /sheets":"Google Sheets operations"},"emailEndpoints":{"POST /email":"Send email directly"},"rtdbEndpoints":{"GET  /rtdb/test":"Firebase RTDB connectivity check","POST /rtdb/users/:userId":"Create/overwrite user node","GET  /rtdb/users/:userId":"Read user node","PATCH /rtdb/users/:userId":"Partial update user node","DELETE /rtdb/users/:userId":"Delete user node","POST /rtdb/users/:userId/goals":"Push new goal (auto-key)","GET  /rtdb/users/:userId/goals":"Read all goals for user"},"telegramEndpoints":{"GET  /telegram/test":"Send a test message to the configured chat ID","POST /telegram/send":"Send a message to the configured chat ID","POST /telegram/send/:chatId":"Send a message to a specific chat ID"},"llmEndpoints":{"GET  /llm/providers":"List configured LLM providers and their status","POST /llm/chat":"Send a test message to an LLM provider"},"supabaseEndpoints":{"GET  /supabase/test":"Verify Supabase connectivity","GET  /supabase/:table":"Fetch rows from a table","POST /supabase/:table":"Insert row(s) into a table","GET  /supabase/:table/:id":"Fetch a single row by id","PATCH /supabase/:table/:id":"Update a single row by id","DELETE /supabase/:table/:id":"Delete a single row by id"},"coachEndpoints":{"POST /coach/user":"Send user message through the coach graph","POST /coach/system-trigger":"Cron-triggered nudge invocation","POST /coach/admin-resume":"Admin resumes an escalated thread"},"ghostedEndpoints":{"POST /ghosted/register-device":"Register Android device (phone + FCM token)","POST /ghosted/send-message":"Send WhatsApp message via FCM to device","POST /ghosted/message-sent":"Confirm message sent by Android app","POST /ghosted/message-failed":"Report failure → trigger whatsapp-web.js fallback","GET  /ghosted/messages/:phone":"Get all messages for a phone number","POST /ghosted/schedule":"Schedule a message for future FCM delivery","GET  /ghosted/scheduled/:phone":"List scheduled messages for a phone","PUT  /ghosted/scheduled/:id":"Edit a pending scheduled message","DELETE /ghosted/scheduled/:id":"Cancel a pending scheduled message","POST /ghosted/contacts":"Upsert display-name → WhatsApp-number mapping","GET  /ghosted/contacts/:phone":"List contacts for a phone number","DELETE /ghosted/contacts/:phone/:displayName":"Delete a contact mapping","GET   /ghosted/profiles":"List all ghosted user profiles (WA name, timezone, nudges)","POST  /ghosted/profiles":"Create a ghosted user profile","GET   /ghosted/profiles/:waNumber":"Get a single ghosted user profile","PUT   /ghosted/profiles/:waNumber":"Update a ghosted user profile","DELETE /ghosted/profiles/:waNumber":"Delete a ghosted user profile"},"fcmEndpoints":{"POST /fcm/test":"Send a test FCM data message to an Android device token","POST /fcm/topic-test":"Send a test FCM data message to a topic (user_<phone>)","GET  /fcm/status":"Check if Firebase Admin SDK is configured for FCM"},"callLogEndpoints":{"GET /api/call-logs/excel":"Download call logs as Excel (Format 1: Name, Phone, Time, Date, Duration, Type)","GET /api/call-logs/excel-format2":"Download call logs as Excel (Format 2: S.No, Date, Time, Number, Duration, Amount)","GET /api/call-logs/excel-format-jio":"Download call logs as Excel (Format 3: No, Date, Time, Number, Usage, Billed, Free, Chargeable, Amount)","GET /api/call-logs/unique-numbers-format-jio":"Download unique phone numbers as Excel (Format 3)","GET /api/call-logs/excel-format-sms":"Download call logs as Excel (Format 4: No, Date, Time, Number, Total Usage, Free Usage, Billed Usage, Amount)"}}