Stream room events
curl --request GET \
--url https://developer.creao.ai/v1/rooms/{room_id}/events \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms/{room_id}/events';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/rooms/{room_id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)event: ready
data: {"type":"ready","room_id":"8c1d2f4e-3b5a-4c6d-9e7f-1a2b3c4d5e6f","last_seq":412,"heartbeat_ms":15000}
event: room.agent_status
data: {"type":"room.agent_status","room_id":"8c1d2f4e-3b5a-4c6d-9e7f-1a2b3c4d5e6f","agent_member_id":"7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d","status":"working","invocation_id":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","trigger_seqs":[413]}
Rooms
Stream room events
Follow one room live over server-sent events.
GET
/
v1
/
rooms
/
{room_id}
/
events
Stream room events
curl --request GET \
--url https://developer.creao.ai/v1/rooms/{room_id}/events \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms/{room_id}/events';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/rooms/{room_id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)event: ready
data: {"type":"ready","room_id":"8c1d2f4e-3b5a-4c6d-9e7f-1a2b3c4d5e6f","last_seq":412,"heartbeat_ms":15000}
event: room.agent_status
data: {"type":"room.agent_status","room_id":"8c1d2f4e-3b5a-4c6d-9e7f-1a2b3c4d5e6f","agent_member_id":"7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d","status":"working","invocation_id":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","trigger_seqs":[413]}
Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Path Parameters
Room id. An id you cannot see answers ROOM_NOT_FOUND, like an unknown one.
Response
An open event stream.
The response is of type string.