Skip to content

Get your keys

2 min read

Every successful API send needs two credentials. Mixing them up is the most common first error: the Bearer token is your account; the key in keys is the device that should deliver the message.

1. Device (channel) key

This identifies which WhatsApp device, Telegram bot, WABA number, or email sender sends the message. You put it in the JSON body under keys (for example keys.whatsapp.token).

Only include channels you are actually sending on. Each key must belong to the same account as your Bearer token, or Kirisan returns 403.

Telegram device token

WABA number token

Email sender API tokens

ChannelWhat to copyDashboard
WhatsAppDevice token (when the device is connected)Devices
TelegramKirisan bot / device tokenDevices
WABANumber API tokenDevices
EmailPer-sender API tokenEmails

Docs: Authentication → Channel keys

2. Account API token

This identifies your Kirisan user account. Send it on every request:

Authorization: Bearer YOUR_ACCOUNT_TOKEN

Copy it from Account → Settings. If it was ever exposed in a screenshot, chat, or repo, regenerate it — the old value stops working.

Account settings — API token

Security

  • Keep tokens on the server only — not in mobile apps or public frontend bundles for production traffic.
  • Treat a leaked account token like a password.
  • Rotate channel keys if a device is shared or decommissioned.

Next

Send featuresAPI playground