Create a new realtime channel using XanoScript
Authentication: required
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/realtime/channel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'realtime_channel foo {
public_messaging = {active: false}
private_messaging = {active: false}
settings = {
anonymous_clients: false
nested_channels : false
message_history : 0
auth_channel : false
presence : false
}
}
'{
"id": 1,
"name": "Channel Name",
"active": true,
"xanoscript": {
"status": "ok",
"value": "<string>",
"message": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The body is of type string.
"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"
Was this page helpful?
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/realtime/channel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'realtime_channel foo {
public_messaging = {active: false}
private_messaging = {active: false}
settings = {
anonymous_clients: false
nested_channels : false
message_history : 0
auth_channel : false
presence : false
}
}
'{
"id": 1,
"name": "Channel Name",
"active": true,
"xanoscript": {
"status": "ok",
"value": "<string>",
"message": "<string>"
}
}