๐Ÿ“– Platform Documentation

Everything You Need to
Build & Deploy

Guides, API references, integration tutorials, and architecture deep-dives for the METPL WhatsApp AI Platform. From first webhook to production at scale.

โš™๏ธ REST API Reference
โš ๏ธ
Authentication: All API calls require a Bearer token in the Authorization header. Generate API keys in the tenant admin panel under Settings โ†’ API Keys. Keys are scoped: read, send, or manage.
MethodEndpointDescription
POST /api/v1/messages/send Send a WhatsApp message to a user (text, interactive, template, media)
GET /api/v1/conversations List conversations for the tenant with optional filters (status, date, agent)
GET /api/v1/conversations/{id}/messages Retrieve full message history for a conversation
POST /api/v1/knowledgebases/{id}/query Run a RAG query against a knowledgebase and return retrieved chunks + generated answer
POST /api/v1/knowledgebases/{id}/documents Ingest a new document (multipart/form-data: file or URL)
POST /api/v1/campaigns Create a broadcast campaign with audience filter, template, and schedule
GET /api/v1/analytics/summary Conversation metrics: total, resolved, escalated, avg handle time, CSAT
DEL /api/v1/users/{phone}/data GDPR right-to-erasure โ€” delete all PII for a user by phone number
cURL โ€” Send a message
curl -X POST https://your-platform.com/api/v1/messages/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "919876543210",
    "type": "text",
    "text": { "body": "Hello from the METPL WhatsApp Platform!" }
  }'
๐Ÿ“ Changelog
๐ŸŸข
v1.3.0 โ€” May 2025
Restaurant template launch ยท WhatsApp Flows visual builder ยท Gemini 1.5 Flash LLM support ยท pgvector hybrid search RRF scoring
Latest
๐Ÿ”ต
v1.2.0 โ€” March 2025
Real Estate & E-commerce templates ยท Live agent dashboard WebSocket ยท Razorpay payment link generator ยท Broadcast campaign analytics
โšช
v1.1.0 โ€” January 2025
Healthcare & HR Helpdesk templates ยท Multilingual engine (12 Indian languages) ยท Legal/eCourts API integration ยท Sentiment-based escalation
โšช
v1.0.0 โ€” October 2024
Initial release ยท University & Business templates ยท Multi-tenant core ยท RAG engine with pgvector ยท Redis session management