Skip to main content
Send your first WhatsApp message in a few minutes.
1

Get your API key

Go to Settings → API Keys in your Tanvik dashboard and generate a key (tvk_live_...). It’s shown once — store it somewhere safe.
2

Send a message

Not sure which Windows tab to use? The two aren’t interchangeable. Use CMD only in classic Command Prompt (opened via cmd or “Command Prompt” in the Start menu). Use PowerShell if your terminal is PowerShell, Windows Terminal, or the integrated terminal in VS Code — this is the default on most modern Windows setups, so if you’re unsure, start there. The PowerShell example uses Invoke-RestMethod (PowerShell’s built-in HTTP cmdlet) rather than curl.exe, since passing complex quoted JSON to an external executable can get mangled by PowerShell’s argument parsing — Invoke-RestMethod avoids that entirely.
This only works within an open 24-hour session (i.e. the customer has messaged you recently). To message someone cold, use an approved template instead — see step 3.
3

Send a template

CMD and PowerShell syntax aren’t interchangeable. The PowerShell example uses Invoke-RestMethod rather than curl.exe to avoid PowerShell’s known issues passing complex quoted JSON to external executables.
See Create Templates if you don’t have an approved template yet.
4

Try an OTP

CMD and PowerShell syntax aren’t interchangeable. The PowerShell example uses Invoke-RestMethod rather than curl.exe to avoid PowerShell’s known issues passing complex quoted JSON to external executables.
Requires an approved authentication-category template on your account — see Send OTP for the full reference.
5

Register a webhook

Subscribe to delivery status and inbound messages so you don’t have to poll:
CMD and PowerShell syntax aren’t interchangeable. The PowerShell example uses Invoke-RestMethod rather than curl.exe to avoid PowerShell’s known issues passing complex quoted JSON to external executables.
See Webhooks for signature verification and retry behavior.

Next steps

Authentication

Key scoping and rotation.

Send Templates

Send to up to 100 recipients at once.

Conversation API

Free-form replies within the 24-hour window.

Errors

Error codes and how to handle them.