List room messages
curl --request GET \
--url https://developer.creao.ai/v1/rooms/{room_id}/messages \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms/{room_id}/messages';
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}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"messages": [
{
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"updated": [
{
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"cursor_seq": 123,
"has_more_before": true,
"has_more_after": true,
"last_seq": 123,
"root": {
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
}Rooms
List room messages
Page through a room’s messages by seq.
GET
/
v1
/
rooms
/
{room_id}
/
messages
List room messages
curl --request GET \
--url https://developer.creao.ai/v1/rooms/{room_id}/messages \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/rooms/{room_id}/messages';
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}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"messages": [
{
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"updated": [
{
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"cursor_seq": 123,
"has_more_before": true,
"has_more_after": true,
"last_seq": 123,
"root": {
"seq": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "post",
"sender": {
"kind": "user",
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"text": "<string>",
"body": "<string>",
"mentions": [
{
"member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"mentions_everyone": true,
"reply_to_seq": 123,
"root_seq": 123,
"created_at": "2023-11-07T05:31:56Z",
"edited_at": "2023-11-07T05:31:56Z",
"deleted": true,
"origin": "web",
"agent_run_id": "<string>",
"system_type": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime": "<string>",
"size": 123
}
],
"shortcut": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
}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.
Query Parameters
Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
1 <= x <= 100A top-level message's seq; page its replies instead of the room. Any other seq is 400 ROOM_REPLY_ROOT_INVALID.
Required range:
x >= 0Response
A page of messages.
Show child attributes
Show child attributes
Messages outside this page that an edit or delete inside it changed.
Show child attributes
Show child attributes
Continue an after catch-up from here.
Show child attributes
Show child attributes