Skip to main content
Glama
mmarqueti

WhatsApp Cloud API MCP Server

by mmarqueti
webhook.ts648 B
import express from 'express'; import { config } from '../config/env.js'; const router = express.Router(); // Verification endpoint router.get('/', (req, res) => { const mode = req.query['hub.mode']; const token = req.query['hub.verify_token']; const challenge = req.query['hub.challenge']; if (mode && token) { if (mode === 'subscribe' && token === config.META_VERIFY_TOKEN) { console.log('WEBHOOK_VERIFIED'); res.status(200).send(challenge); } else { res.sendStatus(403); } } else { res.sendStatus(400); } }); export const webhookRouter = router;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mmarqueti/whatsapp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server