Authentication
Use your account API token with Authorization Bearer and channel keys on send.
Account API token
The public API uses your Kirisan account API token — not a dashboard session cookie.
- Sign in at dash.kirisan.com.
- Open Account → Settings.
- Copy API token (or Regenerate token if it was exposed).
Send it on every request:
Authorization: Bearer YOUR_ACCOUNT_TOKEN
Content-Type: application/json The token identifies your user account. Kirisan checks that every channel key in the request belongs to the same account.
Channel keys
POST /v1/send also requires channel keys in the JSON body — tokens that identify which WhatsApp device, Telegram bot, email sender, or WABA number sends the message.
{
"keys": {
"whatsapp": { "token": "DEVICE_TOKEN" },
"email": { "token": "EMAIL_SENDER_TOKEN" }
}
} | Channel | Where to find the key |
|---|---|
| Channel → WhatsApp → Devices — device token (shown when the device is connected) | |
| Telegram | Channel → Telegram → Devices — bot token |
| WABA | Channel → WABA → Devices — number token |
| Channel → Email → Emails — per-sender API token |
Include only the channels you are sending on. Each key must belong to your account — otherwise Kirisan returns 403.
Fallback keys
Optional fields on each key control cascade delivery (same as Use as fallback on Send → Send):
| Field | Type | Meaning |
|---|---|---|
fallback | boolean | true — this channel is a fallback, not primary |
fallback_sequence | integer | Tier order — 1 runs before 2; same sequence sends in parallel |
Primary channels (no fallback) send first. If they all fail, Kirisan tries fallback tier 1, then tier 2, until one channel succeeds. See Send API.
Regenerate token
If a token leaks, click Regenerate token under Account → Settings. The old token stops working immediately — update every script, server, and integration that calls the API.
Unauthorized responses
| HTTP status | Meaning |
|---|---|
401 | Missing Bearer token, or token not found on your account |
403 | Bearer token valid but a channel key belongs to another user |
Template endpoints (/v1/templates) are not published in this help center yet. Only POST /v1/send is documented for public API use.
Related
- Overview — base URL and endpoints
- Send API — where
keysfit in the request - Errors — auth and validation messages
- Settings & support — copy token in the dashboard