List rooms
curl --request GET \
--url https://developer.creao.ai/v1/rooms \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms';
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"rooms": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"topic": "<string>",
"visibility": "public",
"last_seq": 123,
"member_count": 123,
"unread_count": 123,
"role": "owner",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Rooms
List rooms
List the team rooms you have joined.
GET
/
v1
/
rooms
List rooms
curl --request GET \
--url https://developer.creao.ai/v1/rooms \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms';
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"rooms": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"topic": "<string>",
"visibility": "public",
"last_seq": 123,
"member_count": 123,
"unread_count": 123,
"role": "owner",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Query Parameters
Only rooms in this team, as named by a room's organization_id. A team the owner is not in, or where rooms are off, is 403 ROOMS_NOT_ENABLED.
Response
Joined rooms.
Show child attributes
Show child attributes