Channels API
Real-time messaging API. Publish and subscribe to channels via REST and WebSocket. $0.00001/msg, no subscription.
Frequently Asked Questions
How much does Channels cost?
$0.00001 per delivered message. A message delivered to 10 subscribers costs $0.0001. Publishing to an empty channel is free.
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–86400 seconds).
How many subscribers can a channel have?
There is no hard limit on subscribers per channel. You are only charged per message delivered.
What is the maximum payload size?
256 KB per published event.
How do I publish an event?
Send a POST request to /v1/channels/{channel}/publish with your API key in the Authorization header. Include event name and JSON data in the body.