What is Chathub?

Chathub is SMSBAT's REST API chat integration platform that allows developers to connect to multiple chat sources through a unified API. Built on REST architecture, it provides seamless chat management capabilities.

REST API Communication

REST API Communication

Built on REST architecture for reliable message delivery and chat management across all connected chat sources.

Multi-Platform Support

Multi-Platform Support

Connect to Viber, Telegram, WhatsApp, Instagram, Facebook, and marketplace platforms like Rozetka and Prom.ua.

Easy Integration

Easy Integration

Simple API with comprehensive documentation, code examples, and SDKs for quick implementation.

AI Agent Integration

AI Agent Integration

Seamlessly integrate with AI agents and automation workflows using n8n, Zapier, and other automation platforms for intelligent chat handling.

Advanced Analytics & Insights

Advanced Analytics & Insights

Track conversation metrics, response times, customer satisfaction, and generate detailed reports for data-driven decision making.

Scalable Architecture

Scalable Architecture

Handle thousands of concurrent connections with our robust, cloud-based infrastructure.

Supported Chat Sources

Connect to multiple chat platforms and marketplaces through our unified API. More sources are being added regularly.

Viber

Viber

Available
Viber Bot

Viber Bot

Available
Telegram Bot

Telegram Bot

Available
WhatsApp

WhatsApp

Available
Widget

Widget

Available
Instagram

Instagram

Available
Facebook

Facebook

Available
Rozetka

Rozetka

Available
Prom.ua

Prom.ua

Available
Amazon

Amazon

Coming Soon
Etsy

Etsy

Coming Soon
TikTok

TikTok

Coming Soon
Twitter

Twitter

Coming Soon
API Examples

Get started quickly with our comprehensive API examples. Copy, download, or test the code directly in your browser.

Get Authentication Token

Authenticate your application and receive a token for API access.

JavaScript
// Get authentication token
const response = await fetch('https://chatapi.smsbat.com/api/company/get-token', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        login: 'your_login',
        password: 'your_password'
    })
});

const tokenData = await response.json();
const token = tokenData.token;
Integration Steps
1

Get Authentication Token

Obtain your login credentials and get an authentication token from the SMSBAT API.

// Get authentication token
const response = await fetch('https://chatapi.smsbat.com/api/company/get-token', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        login: 'your_login',
        password: 'your_password'
    })
});

const tokenData = await response.json();
const token = tokenData.token;
2

Install HTTP Client

Use any HTTP client library for making REST API requests.

// Using fetch (built-in browser API)
// No installation needed

// Or using axios
npm install axios

// Or using curl for testing
curl -H "Authorization: Bearer YOUR_TOKEN" \
     https://chatapi.smsbat.com/api/chat/chats
3

Get All Chats

Retrieve list of chats with filtering options and pagination.

// Get all chats
const response = await fetch('https://chatapi.smsbat.com/api/chat/chats', {
    method: 'GET',
    headers: {
        'Authorization': 'Bearer ' + token,
        'Content-Type': 'application/json'
    }
});

const chats = await response.json();
console.log('Chats:', chats);
4

Send and Receive Messages

Start sending messages and retrieving chat messages through REST API.

// Send text message
const sendResponse = await fetch("https://chatapi.smsbat.com/api/chat/" + chatId + "/message", {
    method: 'POST',
    headers: {
        'Authorization': 'Bearer ' + token,
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        textMessage: "Hello from Chathub!",
        author: 0
    })
});

// Send media message
const mediaResponse = await fetch("https://chatapi.smsbat.com/api/chat/" + chatId + "/message", {
    method: 'POST',
    headers: {
        'Authorization': 'Bearer ' + token,
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        textMessage: "Check this image!",
        author: 0,
        media: {
            name: "image.jpg",
            format: "image/jpeg",
            dataBase64: "base64EncodedString",
            type: 1
        }
    })
});

// Get chat messages
const messagesResponse = await fetch("https://chatapi.smsbat.com/api/chat/" + chatId + "/messages", {
    method: 'GET',
    headers: {
        'Authorization': 'Bearer ' + token
    }
});

const messages = await messagesResponse.json();
console.log('Messages:', messages);
Simple, Transparent Pricing
Choose the plan that fits your needs. No hidden fees, no surprises.

Starter

Freeforever

Perfect for developers and small projects

  • Widget SMSBAT only
  • Basic API access
  • Standard support
  • Basic analytics
  • API documentation
  • Community support
Frequently Asked Questions

Can I change plans anytime?

+

Yes, you can upgrade or downgrade your plan at any time. Changes take effect immediately.

What happens if I exceed my message limit?

+

We'll notify you when you're approaching your limit. You can upgrade your plan or purchase additional messages.

Do you offer custom enterprise plans?

+

Yes, we offer custom enterprise solutions with dedicated support, custom integrations, and volume discounts.

Is there a free trial for Professional plan?

+

Yes, we offer a 14-day free trial for the Professional plan with full access to all features.

Ready to Integrate Real-time Chat?

Join developers worldwide who are building powerful chat applications with Chathub API.