Real-Time Messaging API
Real-time messaging API for developers. Publish and subscribe to channels via REST and WebSocket. $0.00001/msg, no subscription.
Frequently Asked Questions
What is a real-time messaging API?
A real-time messaging API lets your server push events to connected browser or mobile clients instantly via WebSocket. Instead of polling your server for updates, clients subscribe to channels and receive events the moment they are published. Common use cases include live dashboards, chat, notifications, and collaborative editing.
How much does the sed.sh Channels API cost?
$0.00001 per delivered message. A message delivered to 10 subscribers costs $0.0001. Publishing to an empty channel is free. There is no monthly subscription, no per-connection fee, and no minimum commitment.
Is sed.sh Channels a Pusher alternative?
Yes. sed.sh Channels provides the same pub/sub model as Pusher — publish from your server, subscribe via WebSocket in the browser. The key difference is pricing: Pusher starts at $49/month for 200 concurrent connections. sed.sh charges per message with no connection limits and no monthly fee.
How do subscribe tokens work?
Your server calls POST /v1/channels/auth to generate a short-lived token for a specific channel. The browser uses that token to authenticate its WebSocket connection. Tokens are single-use and expire after the TTL you specify (60–86,400 seconds). This keeps your API key on the server.
What is the maximum message payload size?
256 KB per published event. This is large enough for most real-time use cases including JSON payloads, small binary data, and rich notification objects.
How many subscribers can a channel have?
There is no hard limit on subscribers per channel. You are only charged per message delivered — a message sent to 100 subscribers costs 100× the per-message rate.