Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Publish in Channels

Publishes a message to a channel.

Publishes a message to a channel. The namespace must exist. The server publishes regardless of client_publish. A repeated Sylphx-Effect-Id publishes once.

Not available yet. Sylphx Realtime is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path POST https://api.realtime.sylphx.com/v1/channels:publish
  • Scope realtime:publish
  • Effect write — a successful call changes state.
  • Collection channels
  • Host https://api.realtime.sylphx.com

#Request

FieldTypeWhat it is
channelstringThe channel, namespace:name: the name is 1 to 128 characters of a-z A-Z 0-9 - _. = and no *. Required.
eventstringThe application's event name, 1 to 64 characters. Required.
datavalueThe JSON payload, at most 64 KiB encoded.

#Response

FieldTypeWhat it is
messageMessageThe published message; its cursor is empty in an ephemeral namespace.

#Message

FieldTypeWhat it is
channelstringThe channel, namespace:name.
cursorstringThe message's cursor: opaque, ordered within the channel, and the value to resume from. Empty in an ephemeral namespace.
eventstringThe application's event name, for example move. 1 to 64 characters.
datavalueThe JSON payload, at most 64 KiB encoded.
publisherstringThe user id of the publisher; empty when a server published without one.
publish_timetimestampWhen the service accepted the message.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.realtime.sylphx.com/v1/channels:publish" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel":"…","event":"…"}'