Connect your product to Vaiket.
One documentation home for WhatsApp messaging and CRM lead capture. Build reliable workflows with server-side credentials and clear, tenant-scoped APIs.
Developer quickstart
Make your first WhatsApp API request in minutes. Discover an account, then read contacts and conversations.
curl https://app.vaiket.com/api/v1/whatsapp/accounts \
-H "Authorization: Bearer YOUR_VAIKET_API_KEY"Use Vaiket IDs and server-side API keys to safely connect WhatsApp accounts, conversations, analytics, and CRM lead capture.
Build paths
Read contacts, conversations, messages, analytics, and send approved templates.
Start with WhatsApp ↗CRM APICreate leads from your website, application, or advertising workflow.
Start with CRM ↗Intelligent voice calling, IVR automation, and real-time workflows are being prepared for the next API release.
Rich, interactive, branded conversations with RCS will be added in a future documentation update.
Authentication
Every WhatsApp API request uses a Vaiket Bearer API key. Keep keys in server-side secret storage. The API enforces tenant and account ownership and never returns Meta credentials.
Authorization: Bearer YOUR_VAIKET_API_KEYWhatsApp API
Vaiket resolves the connected WhatsApp account, Phone Number ID, WABA ID, and provider credentials server-side. Read APIs use tenant-owned persisted WhatsApp data.
Accounts
/api/v1/whatsapp/accountsReturns safe account fields for the authenticated tenant. accounts[].id is the Vaiket account ID, not a Meta ID.
Read contacts
/api/v1/whatsapp/accounts/{account_id}/contactsOptional search, limit (default 50, max 100), and cursor. Search matches name or phone digits. Results include contact ID, name, phone, opt-in state, last message time, and account conversation count.
curl "https://app.vaiket.com/api/v1/whatsapp/accounts/ACCOUNT_ID/contacts?search=415555&limit=50" \
-H "Authorization: Bearer YOUR_VAIKET_API_KEY"Read conversations
/api/v1/whatsapp/accounts/{account_id}/conversationsFilter by status, search, date_from, date_to, limit, and cursor. Results include unread count, contact summary, and latest message preview.
{
"success": true,
"conversations": [{ "id": "CONVERSATION_ID", "status": "open", "unreadCount": 1,
"contact": { "id": "CONTACT_ID", "name": "CUSTOMER_NAME", "phone": "PHONE_DIGITS" },
"latest_message": { "text": "MESSAGE_TEXT", "direction": "inbound" } }],
"next_cursor": null
}Read message history
/api/v1/whatsapp/conversations/{conversation_id}/messagesReturns inbound and outbound messages chronologically with direction, type, text, status, timestamps, and safe media URLs only for the platform-managed uploads path.
Account analytics
/api/v1/whatsapp/accounts/{account_id}/analyticsUse paired date_from and date_to filters. Analytics includes conversation totals, current open/unread state, inbound/outbound message totals, and sent, delivered, read, or failed status counts.
Templates
/api/v1/whatsapp/accounts/{account_id}/templatesTemplates are tenant- and account-scoped. Use an approved template with its exact name and language.
Send template
/api/v1/whatsapp/messagesSend whatsapp_account_id, to, and template name/language with matching body, header, and button parameter arrays. Include an Idempotency-Key for safe retries.
Idempotency
Use a stable Idempotency-Key. Reusing the same key and payload replays the logical request; an active request returns request_in_flight.
Errors and pagination
Responses include request_id. Errors use a sanitized code and message. Paginated reads default to 50 and accept 1–100. Pass next_cursor unchanged until it is null. Invalid cursors or missing IDs return a 400 or 404, and rate limits return 429 with Retry-After.
{ "success": false, "error": { "code": "invalid_query", "message": "Query parameters are invalid.", "request_id": "req_PLACEHOLDER" } }Message lifecycle
sent confirms provider acceptance, not delivery. Later processing may record delivered, read, or failed.
Webhooks
The existing Meta webhook processes inbound messages and delivery status events internally. A customer-configurable external WhatsApp status webhook is not exposed by this API.
Vaiket AI integration walkthrough
Use a server-side secret for the API key. Discover the tenant account, page through contacts and conversations, retrieve message history, then query analytics.
const base = "https://app.vaiket.com/api/v1/whatsapp";
const headers = { Authorization: `Bearer ${process.env.VAIKET_API_KEY}` };
const { accounts } = await fetch(`${base}/accounts`, { headers }).then(r => r.json());
const accountId = accounts[0].id;
const chats = await fetch(`${base}/accounts/${accountId}/conversations?limit=50`, { headers }).then(r => r.json());CRM API
This segment is separate from WhatsApp. Use the CRM base URL https://api.vaiket.com/v1 for lead and form integrations.
Create CRM leads
/v1/crm/leads/createCreate a lead from your website, application, or advertising workflow using the Vaiket Bearer API key.
curl -X POST "https://api.vaiket.com/v1/crm/leads/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"CUSTOMER_NAME","phone":"RECIPIENT_PHONE","email":"CUSTOMER_EMAIL","source":"website"}'Web form submissions
/v1/forms/submitSubmit a configured form using its form ID. The endpoint accepts a public form payload with server-side validation and rate limiting.
API reference
WhatsApp endpoints include accounts, contacts, conversations, analytics, message history, account templates, and template sending. CRM endpoints include lead creation and form submission.
Never put API keys or Meta credentials in client applications. Keep credentials in server-side environment variables or your secret manager.