WhatsApp API documentation for the HeyVarta REST API: every endpoint, with permissions, request bodies, responses and copy-ready examples.
Version v1Base URL https://api.heyvarta.com/api/v1Auth Authorization: Bearer hv_live_…
Quick start
Three steps to your first API call.
Anyone can read this reference. API keys are created only by the workspace owner inside HeyVarta — never shared by email or on this site.
1
Create a key in HeyVarta
Sign in, open Developer → API keys, name the key, tick only the permissions it needs and choose an expiry (30, 90, 180 days or 1 year). The full key is shown once — store it safely.
2
Send it as a Bearer token
Every request uses HTTPS and the header Authorization: Bearer hv_live_…. Keys belong to one workspace and can be revoked any time.
3
Make your first call
GET https://api.heyvarta.com/api/v1/developer/account shows the workspace, permissions, WhatsApp numbers and Telegram bots the key can reach.
Base URLhttps://api.heyvarta.com/api/v1
Permissions (scopes)
Give each key only what it needs.
messages:read
Read conversations and message status
messages:write
Reply in chats (and start chats on QR-linked numbers)
messages:template
Send approved WhatsApp templates
templates:read
Read approved templates
contacts:read
Read contacts
contacts:write
Create and update contacts
campaigns:read
Read campaign results
account:read
Read workspace, numbers and bots
Limits & safe use
120 requests per minute per keyWrites cost more: a contact write counts as 2, a message as 4, a template as 6. Over the limit you get 429 with Retry-After.
Idempotency-Key on every sendReuse the same key when retrying and a message is never sent twice.
Daily safety caps1,000 template messages and 250 new QR-number chats per workspace in 24 hours.
Opt-outs respectedUnsubscribed contacts are refused automatically.
Clear errors401 missing or invalid key · 403 missing permission · 404 not found · 409 conflict or duplicate · 429 too many requests.
API reference
Every endpoint, with examples.
Requests and responses are JSON. Replace IDs with values from your own workspace.
Messaging
Read conversations, reply and send WhatsApp templates.
WhatsApp conversations, newest first, 50 per page. Leave out ?channel= to get WhatsApp and Telegram together. Pass next_before exactly as returned as ?before= for the next page (null on the last page). Use the id as conversation_id to reply.
Example request
curl -X GET 'https://api.heyvarta.com/api/v1/developer/conversations?channel=whatsapp' \
-H 'Authorization: Bearer hv_live_…'
Sends a text message. Use "to" (the customer’s number) or "conversation_id". Official numbers: only in an existing chat, within 24 hours of the customer’s last message (start chats with Send a template). QR-linked numbers can also start a new chat with "to" when the key has the start-new-conversations permission — up to 250 new chats per workspace in 24 hours. Always send an Idempotency-Key.
Headers
Idempotency-Key: order-1042-confirmation
Example request
curl -X POST 'https://api.heyvarta.com/api/v1/developer/messages' \
-H 'Authorization: Bearer hv_live_…' \
-H 'Idempotency-Key: order-1042-confirmation' \
-H 'Content-Type: application/json' \
-d '{"to": "+919876543210", "text": "Your order #1042 is confirmed. Thank you!"}'
Request body
{
"to": "+919876543210",
"text": "Your order #1042 is confirmed. Thank you!"
}
Sends an approved WhatsApp template to any number, even if they never messaged you — for order updates, reminders and notices. Needs an official Cloud API number. Choose the template with "template_id" or "template" + "language". "parameters" fill {{1}}, {{2}}… in order; add "media_url" (public https link) for a media header. Unsubscribed contacts are refused. Limit: 1,000 template messages per workspace in 24 hours.
Sends a text reply from your bot. Use "conversation_id" (Telegram has no phone numbers). The person must have started your bot and not blocked it. Always send an Idempotency-Key.
Headers
Idempotency-Key: ticket-881-reply
Example request
curl -X POST 'https://api.heyvarta.com/api/v1/developer/messages' \
-H 'Authorization: Bearer hv_live_…' \
-H 'Idempotency-Key: ticket-881-reply' \
-H 'Content-Type: application/json' \
-d '{"conversation_id": "TELEGRAM_CONVERSATION_ID", "text": "Hi Arjun, your ticket #881 is resolved."}'
Request body
{
"conversation_id": "TELEGRAM_CONVERSATION_ID",
"text": "Hi Arjun, your ticket #881 is resolved."
}
Adds a WhatsApp contact. Phone must be in international format. Counts towards your plan’s contact limit; unknown fields are rejected. An existing number returns 409.
Send only the fields you want to change, plus the version you last read. Everything else is kept. If someone changed the contact since you read it, you get 409 — read it again and retry. Status Unsubscribed stops all messages to them.
All approved templates of the workspace’s WhatsApp Cloud API number. Use the id as template_id (or name + language) to send one. Add ?number_id= to choose a number.
Example request
curl -X GET 'https://api.heyvarta.com/api/v1/developer/templates' \
-H 'Authorization: Bearer hv_live_…'
No. This reference is public. You only sign in to HeyVarta to create an API key.
Where do I get an access token?
Only inside HeyVarta: Developer → API keys. The workspace owner chooses the permissions and expiry, and the full key is shown once.
Can I start WhatsApp conversations through the API?
Yes — with an approved template on an official Cloud API number (POST /developer/messages/template). QR-linked numbers can open new chats with POST /developer/messages, up to 250 per day.
Can I reply in Telegram?
Yes, from your connected Telegram bot using the conversation_id. Personal Telegram accounts are never automated.
What happens if my request is retried?
Send the same Idempotency-Key and HeyVarta returns the original result instead of sending again.
Can I revoke a key?
Yes, any time in Developer → API keys. Keys also expire automatically on the date you chose.
Ready to build?
Create a scoped API key inside HeyVarta and send your first request.