A web application that tracks deleted messages from WhatsApp using the WhatsApp Business API.
WhatsApp Business API Setup:
Environment Variables:
WHATSAPP_VERIFY_TOKEN: Token for webhook verificationWHATSAPP_ACCESS_TOKEN: Access token for WhatsApp APIWHATSAPP_PHONE_NUMBER_ID: Your WhatsApp Business phone number IDWebhook Configuration:
https://your-app-url.web.val.run/webhookWHATSAPP_VERIFY_TOKENmessages events├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── webhook.ts # WhatsApp webhook handler
│ │ └── api.ts # API routes for frontend
│ └── index.ts # Main server entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── MessageList.tsx # Deleted messages list
│ │ └── MessageItem.tsx # Individual message display
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
GET / - Web interfacePOST /webhook - WhatsApp webhook endpointGET /webhook - Webhook verificationGET /api/deleted-messages - Get all deleted messagesGET /api/messages/:chatId - Get messages for a specific chatThis app requires proper WhatsApp Business API setup and webhook configuration to function correctly.