OverviewWhatsApp APICRM APIAI integrationAPI reference
VAIKET DEVELOPER DOCS

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.

START HERE

Developer quickstart

Make your first WhatsApp API request in minutes. Discover an account, then read contacts and conversations.

curl
curl https://app.vaiket.com/api/v1/whatsapp/accounts \
  -H "Authorization: Bearer YOUR_VAIKET_API_KEY"
Build with the Vaiket API

Use Vaiket IDs and server-side API keys to safely connect WhatsApp accounts, conversations, analytics, and CRM lead capture.

Read authentication

Build paths

COMING SOONAI Telecalling API

Intelligent voice calling, IVR automation, and real-time workflows are being prepared for the next API release.

COMING SOONRCS Business Messaging

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.

http
Authorization: Bearer YOUR_VAIKET_API_KEY

WhatsApp 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

GET/api/v1/whatsapp/accounts

Returns safe account fields for the authenticated tenant. accounts[].id is the Vaiket account ID, not a Meta ID.

Read contacts

GET/api/v1/whatsapp/accounts/{account_id}/contacts

Optional 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
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

GET/api/v1/whatsapp/accounts/{account_id}/conversations

Filter by status, search, date_from, date_to, limit, and cursor. Results include unread count, contact summary, and latest message preview.

json
{
  "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

GET/api/v1/whatsapp/conversations/{conversation_id}/messages

Returns inbound and outbound messages chronologically with direction, type, text, status, timestamps, and safe media URLs only for the platform-managed uploads path.

Account analytics

GET/api/v1/whatsapp/accounts/{account_id}/analytics

Use 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

GET/api/v1/whatsapp/accounts/{account_id}/templates

Templates are tenant- and account-scoped. Use an approved template with its exact name and language.

Send template

POST/api/v1/whatsapp/messages

Send 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.

json
{ "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.

javascript
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

POST/v1/crm/leads/create

Create a lead from your website, application, or advertising workflow using the Vaiket Bearer API key.

curl
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

POST/v1/forms/submit

Submit 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.

Security note

Never put API keys or Meta credentials in client applications. Keep credentials in server-side environment variables or your secret manager.