Guides, API references, integration tutorials, and architecture deep-dives for the METPL WhatsApp AI Platform. From first webhook to production at scale.
// CloudApiClient.php $client->sendInteractiveButtons( to: '919876543210', body: 'How can I help you today?', buttons: [ ['id' => 'admissions', 'title' => '๐ Admissions'], ['id' => 'fees', 'title' => '๐ฐ Fee Structure'], ['id' => 'status', 'title' => '๐ App Status'], ] );
read, send, or manage.| Method | Endpoint | Description |
|---|---|---|
| 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 -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!" } }'