Integrate Maveraa seamlessly into your own applications. Our RESTful API allows you to programmatically manage your WhatsApp contacts, view conversations, and send messages in real-time.
The Maveraa API uses API keys to authenticate requests. You can view and manage your API keys in the Settings page of your Dashboard.
Authentication to the API is performed via the X-API-Key HTTP header.
curl -X GET "https://api.maveraa.tech/api/public/contacts" \
-H "X-API-Key: mvr_live_a1b2c3d4e5..."
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Retrieve a list of all contacts stored in your workspace.
{
"total": 1,
"contacts": [
{
"_id": "60d5ec...",
"name": "John Doe",
"phone": "6281234567890",
"labels": ["VIP", "Customer"],
"createdAt": "2023-10-01T12:00:00Z"
}
]
}
Create a new contact in your workspace.
{
"name": "Jane Smith",
"phone": "6289876543210",
"labels": "Lead, Website"
}
Retrieve the latest conversations/chats from your active WhatsApp sessions.
{
"conversations": [
{
"remoteJid": "6281234567890@s.whatsapp.net",
"pushName": "John Doe",
"lastMessage": "Hello there!",
"unreadCount": 2,
"timestamp": "2023-10-01T12:05:00Z"
}
]
}
Send a text message or media via WhatsApp.
{
"sessionId": "session-123",
"targetNumber": "6289876543210",
"message": "Your OTP code is 4567"
}