API documentation in the dashboard and the User Guide link
The Documentation menu in the dashboard has two items. Chat API Documentation opens the interactive reference of the SMSBAT Omni public API right inside the dashboard. User Guide opens the SMSBAT help center, where you are now.
This page is for the person who connects your systems to SMSBAT, usually a developer. It explains what the reference shows, what you need before the first request and where to read more.
Where to find it
- In the left menu of omni.smsbat.com open Documentation.
- Click Chat API Documentation. The page of the same name opens.
Both items are available to every user of the dashboard.
What the page shows
The page shows the API reference Omni smsbat Public API in the standard Swagger format. At the top there is a detailed description of the Cascade Message API (in Ukrainian), below it the list of endpoints grouped by topic.
| Group | What it is for |
|---|---|
| CascadeMessage | Sending one message through several channels in turn (Telegram bot, Viber bot, Viber Business, SMS) and getting the status of a sent message. |
| Push | Registering installations of your mobile app and push notification statuses. |
| ViberBotProxy | Requests to Viber bots through SMSBAT: sending and broadcasting messages, setting a webhook, account and user information. |
The description at the top has these sections: request headers, endpoints, the sending order (cascade), message deduplication, the request body structure, getting the message status, request examples for different channel chains, and explicit sending by a Viber transactional template. Click a section title in the table of contents to jump to it.
Click an endpoint to expand it and see its parameters, the request body schema with an example, and the possible responses.
How a developer uses it
Step 1. Get an API key
Requests are authorized with the organization’s API key in the X-Authorization-Key header. The account administrator creates it on the Api Keys tab of the organization, see How to create and manage API keys. The key is shown only once, so save it right away.
Step 2. Add bot tokens if you send through bots
Two more headers are used for sending through bots:
| Header | When it is needed |
|---|---|
X-Authorization-Key | Always: the organization’s API key. |
X-Viber-Auth-Token | Sending through a Viber bot: the token of that bot. |
X-Tg-Bot-Key | Sending through a Telegram bot: the token of that bot. |
Step 3. Build and send the request
- In the reference, open the endpoint you need, for example sending a Cascade message.
- Copy the example body and fill in your recipient, channels and texts. The examples at the end of the description show typical channel chains.
- Send the request from your own system or API tool to the base address
https://restapi.smsbat.com. - Use the status endpoints, or a callback address, to track delivery. A callback address is set in External integrations → Cascade.
Tip
Use the page in the dashboard as a reference. The same API is described step by step in the help center: Cascade API and Push API.
Other SMSBAT APIs
The reference in the dashboard covers the public Omni API only. Other APIs are described in the help center:
- API documentation: an overview of all SMSBAT APIs.
- SMSBAT ChatHub API: chats, messages, operators, operator tokens and the operator chat widget.
- Operator authorization and deep links: how to get an operator token, for example for the operator chat widget.
- SMSBAT API: SMS, Viber and other messages with fallbacks.
- Rate limits and Error codes.
User Guide
Documentation → User Guide opens the SMSBAT help center in a new browser tab, for the language selected in the dashboard. Step-by-step guides for the dashboard start with the SMSBAT Omni dashboard overview.
Common questions
Which key goes into X-Authorization-Key? The API key of the organization from the Api Keys tab, see How to create and manage API keys.
I lost the API key. It cannot be shown again. Remove it and create a new one, then update the key in your system.
Is this the API for chats and operators? No. The chat API is the SMSBAT ChatHub API. The page in the dashboard describes the public Omni API: Cascade messages, push and Viber bot requests.
Part of the description is in Ukrainian. The description at the top of the reference is published in Ukrainian. The same information in English is in Cascade API.
Where do I send requests?
To https://restapi.smsbat.com, as described in Cascade API and Push API.