room users banned
curl --request GET \
--url https://apix.us.amity.co/realtime/room.usersBannedimport requests
url = "https://apix.us.amity.co/realtime/room.usersBanned"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apix.us.amity.co/realtime/room.usersBanned', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apix.us.amity.co/realtime/room.usersBanned",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apix.us.amity.co/realtime/room.usersBanned"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apix.us.amity.co/realtime/room.usersBanned")
.asString();require 'uri'
require 'net/http'
url = URI("https://apix.us.amity.co/realtime/room.usersBanned")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"userIds": [
"banneduser1-123-456",
"banneduser2-789-012"
]
},
"eventType": "room.usersBanned",
"id": "690c6a641b055f909ff1c8e1",
"networkId": "606f37a0ae601e3c33eba9e3",
"path": "606f37a0ae601e3c33eba9e3/room/690c6a641b055f909ff1c8e1",
"senderId": "asc-app-c1-588c759896-pmzz8-1",
"sentTime": "2025-11-06T09:59:00.123Z",
"version": 1
}Realtime event
room users banned
GET
/
realtime
/
room.usersBanned
room users banned
curl --request GET \
--url https://apix.us.amity.co/realtime/room.usersBannedimport requests
url = "https://apix.us.amity.co/realtime/room.usersBanned"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apix.us.amity.co/realtime/room.usersBanned', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apix.us.amity.co/realtime/room.usersBanned",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apix.us.amity.co/realtime/room.usersBanned"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apix.us.amity.co/realtime/room.usersBanned")
.asString();require 'uri'
require 'net/http'
url = URI("https://apix.us.amity.co/realtime/room.usersBanned")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"userIds": [
"banneduser1-123-456",
"banneduser2-789-012"
]
},
"eventType": "room.usersBanned",
"id": "690c6a641b055f909ff1c8e1",
"networkId": "606f37a0ae601e3c33eba9e3",
"path": "606f37a0ae601e3c33eba9e3/room/690c6a641b055f909ff1c8e1",
"senderId": "asc-app-c1-588c759896-pmzz8-1",
"sentTime": "2025-11-06T09:59:00.123Z",
"version": 1
}Response
200 - application/json
RTE data for room.usersBanned event
The room ID
Example:
"690c6a641b055f909ff1c8e1"
Show child attributes
Show child attributes
ID of the network.
A topic path for subscription.
Name of the event.
ID of sender node.
The date/time when event was sent.
Version of API
⌘I