HomeProductsChat API
Chat API · Production

In-app chat
your users love.
built in minutes.

Add real-time chat to your app or website with a single API. WebSocket-powered delivery, read receipts, typing indicators, and end-to-end encryption — all included.

~50ms delivery
99.99% uptime
E2E encrypted
WebSocket + REST

~50ms

Delivery time

99.99%

Uptime SLA

E2E

Encryption

< 24hr

Setup time

Unlimited

History

WebSocket

Real-time

What's included

Everything you need
for real-time chat.

From WebSocket connections to agent management, encryption to analytics — get a complete chat infrastructure in one API.

Real-time WebSocket

Instant message delivery via WebSocket connections. Messages reach users in ~50ms with automatic reconnection and offline queueing.

Auto-reconnectOffline queueBinary support

Rich Message Types

Send text, images, videos, audio, files, and location. Support for rich cards, carousels, and custom interactive elements.

MediaCardsLocationCustom

End-to-End Encryption

Every message encrypted by default. Optional client-side encryption keys for maximum security compliance.

AES-256Key managementAudit logs

Multi-agent Support

Built-in agent management, routing rules, and conversation transfer. Handle customer support at scale.

Agent groupsRoutingHandoffCanned responses

Architecture

Built for
modern apps.

WebSocket for real-time, REST for history, webhooks for automation. Choose the protocol that fits your use case — or use all three together.

Persistent WebSocket connections with auto-reconnect

REST API for message history and user management

Webhooks for all events: messages, status, typing

Binary protocol support for file transfers

99.99% uptime SLA with automatic failover

exampleWebSocket

Sub-50ms delivery

Maintain persistent WebSocket connections for instant message delivery. Messages reach users in real-time — no polling, no delays.

// Connect to WebSocket
const ws = new WebSocket(
  'wss://api.sendexa.co/v1/chat/connect',
  ['Authorization', 'Bearer YOUR_API_KEY']
);

ws.onmessage = (event) => {
  const message = JSON.parse(event.data);
  console.log('New message:', message);
};

Developer-first

One SDK.
Every language.

Official SDKs for Node.js, Python, PHP, and more. REST API for anything else. WebSocket for real-time. Everything just works.

WebSocket for real-time message delivery
REST API for history and management
End-to-end encryption by default
Agent management and routing built-in
Delivery status and read receipts
import Sendexa from "sendexa";

const client = new Sendexa(process.env.SENDEXA_API_KEY);

// Initialize chat client
const chat = client.chat;

// Send a message
const response = await chat.messages.send({
  to: "user_123",
  message: {
    type: "text",
    content: "Hi! How can I help you today?"
  },
  metadata: {
    channel: "web",
    priority: "normal"
  }
});

console.log(response.message_id);
// → msg_abc123

// Get conversation history
const history = await chat.conversations.getHistory({
  participant: "user_123",
  limit: 50
});
chat · v1Full example

Built for real use cases

What will you build
with Chat API?

Customer Support

Chat that actually resolves issues

Embed real-time chat in your support flow. Route to agents, use canned responses, and keep conversation history for better service.

  • Agent dashboard with conversation queue
  • Canned responses and quick replies
  • Conversation transfer between agents
  • Full chat history for context

92%

first-contact resolution

Start building

Customer Support

via Chat API

Hi! How can I help you today?

10:00

I have a question about...

10:01

Of course! Let me help you with that.

10:01

Pricing

Simple, transparent
pricing.

Pay for what you use. No per-message fees, no hidden costs. Just a simple monthly subscription based on your needs.

Starter

$49/mo

Perfect for small apps

  • 1,000 MAU
  • 10,000 messages/mo
  • WebSocket + REST
  • Basic analytics
Get started
Most Popular

Growth

$149/mo

For growing products

  • 10,000 MAU
  • 100,000 messages/mo
  • Priority support
  • Advanced analytics
Get started

Scale

$499/mo

For large apps

  • 100,000 MAU
  • Unlimited messages
  • Dedicated support
  • Custom retention
Get started

All plans include: WebSocket, REST API, webhooks, E2E encryption, 99.99% uptime SLA

Start building today — it's free

Add chat to your app
in under 10 minutes.

Sign up, integrate the SDK, and your first real-time chat is ready. No credit card required for the trial.

No credit card required14-day free trialFull feature accessCancel anytime