Palbase Realtime · API
/realtime/broadcastBroadcast as the server
Publishes events on the project's channels, to every subscriber on every replica, as the project's server (1 to 100 events). Delivered at most once, like every broadcast — but on a durable channel, kept and given to its members in order and once. A durable channel's event past the project's hourly budget is refused with 429 log_budget and when to try again (Retry-After); the events before it were published.
Called by your server, with the project's secret key.
Request body
messagesobject[] · required1 to 100 events.curl -X POST "https://<your-ref>.palbase.studio/realtime/broadcast" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"messages":[{"event":"string","topic":"string"}]}'Responses
202Published
400The request is malformed: a field, a channel or a pattern is wrong
401No key, or not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key
429The project's request rate, its realtime quota for the period, or the connections it allows are used up; Retry-After says when to try again
503The platform could not answer now; retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation Broadcast of realtime's contract.