room cohost invitation accepted
curl --request GET \
--url https://apix.us.amity.co/realtime/room.didCohostInviteAcceptimport requests
url = "https://apix.us.amity.co/realtime/room.didCohostInviteAccept"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apix.us.amity.co/realtime/room.didCohostInviteAccept', 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.didCohostInviteAccept",
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.didCohostInviteAccept"
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.didCohostInviteAccept")
.asString();require 'uri'
require 'net/http'
url = URI("https://apix.us.amity.co/realtime/room.didCohostInviteAccept")
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": {
"invitations": [
{
"_id": "690c6b1a2b055f909ff1c9a1",
"networkId": "606f37a0ae601e3c33eba9e3",
"type": "livestreamCohostInvite",
"targetId": "690c6a641b055f909ff1c8e1",
"targetType": "room",
"userId": "690c6a0bfb181288c0325727",
"status": "approved",
"createdBy": "690c6a0bfb181288c0325726",
"respondedAt": "2025-11-06T10:02:00.000Z",
"createdAt": "2025-11-06T10:01:00.000Z",
"updatedAt": "2025-11-06T10:02:00.000Z",
"invitationId": "690c6b1a2b055f909ff1c9a1",
"invitedUserId": "testcohost-456-789",
"invitedUserPublicId": "testcohost-456-789",
"invitedUserInternalId": "690c6a0bfb181288c0325727",
"inviterUserId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825",
"inviterUserPublicId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825",
"inviterUserInternalId": "690c6a0bfb181288c0325726"
}
],
"users": [
{
"_id": "690c6a0bfb181288c0325726",
"path": "606f37a0ae601e3c33eba9e3/user/690c6a0bfb181288c0325726",
"displayName": "Stamm - O'Reilly",
"userId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825"
},
{
"_id": "690c6a0bfb181288c0325727",
"path": "606f37a0ae601e3c33eba9e3/user/690c6a0bfb181288c0325727",
"displayName": "Invited Co-host",
"userId": "testcohost-456-789"
}
]
},
"eventType": "room.didCohostInviteAccept",
"id": "690c6a0bfb181288c0325727",
"networkId": "606f37a0ae601e3c33eba9e3",
"path": "606f37a0ae601e3c33eba9e3/rooms/690c6a641b055f909ff1c8e1",
"senderId": "asc-app-c1-588c759896-pmzz8-1",
"sentTime": "2025-11-06T10:02:00.456Z",
"version": 1
}Realtime event
room cohost invitation accepted
GET
/
realtime
/
room.didCohostInviteAccept
room cohost invitation accepted
curl --request GET \
--url https://apix.us.amity.co/realtime/room.didCohostInviteAcceptimport requests
url = "https://apix.us.amity.co/realtime/room.didCohostInviteAccept"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apix.us.amity.co/realtime/room.didCohostInviteAccept', 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.didCohostInviteAccept",
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.didCohostInviteAccept"
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.didCohostInviteAccept")
.asString();require 'uri'
require 'net/http'
url = URI("https://apix.us.amity.co/realtime/room.didCohostInviteAccept")
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": {
"invitations": [
{
"_id": "690c6b1a2b055f909ff1c9a1",
"networkId": "606f37a0ae601e3c33eba9e3",
"type": "livestreamCohostInvite",
"targetId": "690c6a641b055f909ff1c8e1",
"targetType": "room",
"userId": "690c6a0bfb181288c0325727",
"status": "approved",
"createdBy": "690c6a0bfb181288c0325726",
"respondedAt": "2025-11-06T10:02:00.000Z",
"createdAt": "2025-11-06T10:01:00.000Z",
"updatedAt": "2025-11-06T10:02:00.000Z",
"invitationId": "690c6b1a2b055f909ff1c9a1",
"invitedUserId": "testcohost-456-789",
"invitedUserPublicId": "testcohost-456-789",
"invitedUserInternalId": "690c6a0bfb181288c0325727",
"inviterUserId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825",
"inviterUserPublicId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825",
"inviterUserInternalId": "690c6a0bfb181288c0325726"
}
],
"users": [
{
"_id": "690c6a0bfb181288c0325726",
"path": "606f37a0ae601e3c33eba9e3/user/690c6a0bfb181288c0325726",
"displayName": "Stamm - O'Reilly",
"userId": "teste2c39fe5-d5fc-4943-a9be-cf54ad4d0825"
},
{
"_id": "690c6a0bfb181288c0325727",
"path": "606f37a0ae601e3c33eba9e3/user/690c6a0bfb181288c0325727",
"displayName": "Invited Co-host",
"userId": "testcohost-456-789"
}
]
},
"eventType": "room.didCohostInviteAccept",
"id": "690c6a0bfb181288c0325727",
"networkId": "606f37a0ae601e3c33eba9e3",
"path": "606f37a0ae601e3c33eba9e3/rooms/690c6a641b055f909ff1c8e1",
"senderId": "asc-app-c1-588c759896-pmzz8-1",
"sentTime": "2025-11-06T10:02:00.456Z",
"version": 1
}Response
200 - application/json
RTE data for room.didCohostInviteAccept event
The accepted user ID (internal)
Example:
"690c6a0bfb181288c0325727"
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