Skip to main content
POST
Create a new realtime channel using XanoScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
integer<int64>
required

Query Parameters

include_xanoscript
boolean
default:false

Body

text/x-xanoscript

The body is of type string.

Example:

"realtime_channel foo {\n public_messaging = {active: false}\n private_messaging = {active: false}\n settings = {\n anonymous_clients: false\n nested_channels : false\n message_history : 0\n auth_channel : false\n presence : false\n }\n}\n"

Response

Success!

id
integer<int64>
default:1
name
string
default:Channel Name
active
boolean
default:true
xanoscript
object