🤖 WhatsApp Business API Bot

✅ Bot is running successfully!

📱 Active Accounts: 14

⚙️ Configuration Status

🎨 User Interfaces

📚 Documentation & Help

🔌 Webhook Endpoints

GET /webhook - Webhook verification
POST /webhook - Receive messages

📤 Messaging Endpoints

POST /send - Send messages manually
POST /send-template - Send template messages (first contact)

🎯 AI Prompt Management API NEW

GET /api/prompts - List all prompts (supports ?account_id=xxx filter)
POST /api/prompts - Create new prompt
PUT /api/prompts/{id} - Update prompt
DELETE /api/prompts/{id} - Delete prompt
POST /api/prompts/copy-to-account - Copy global prompts to account
POST /api/prompts/invalidate-cache - Clear prompt cache

👥 Account Management API

GET /api/accounts - List all accounts
POST /api/accounts/add - Add new account
PUT /api/accounts/{account_id}/update - Update account
DELETE /api/accounts/{account_id}/delete - Delete account

💬 Message & Contact API

GET /api/accounts/{account_id}/messages/{phone} - Get messages
GET /api/accounts/{account_id}/contacts - Get contacts
GET /api/messages/all?account_id={account_id} - Get all messages
DELETE /api/messages/clear-all?account_id={account_id} - Clear all messages
DELETE /api/messages/clear-last?count={N}&account_id={account_id} - Clear last N messages

📊 System Status

GET /api/status - Bot status