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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
],
"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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
],
"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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
}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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
],
"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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
],
"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,
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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>"
},
"task_number": 123,
"task_relation": "origin",
"task_mentions": [
123
],
"plan": {
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"title": "<string>",
"summary": "<string>",
"task_count": 123,
"fork_of": {
"lineage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123
},
"latest_revision": {
"seq": 123,
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"latest_file_version_is_not_revision": true
}
}
}Authorizations
bearerAuthapiKeyQuery
Path Parameters
Query Parameters
Keep the page to one channel: an id from
GET /v1/rooms/{room_id}/channels, or general, in any case. Absent
pages every channel. An after page and a root page ignore it,
unknown ids included; an around page pages the channel of the
message it is around. On a page that uses it, an id the room does
not have is 404 ROOM_CHANNEL_NOT_FOUND.
Response
A page of messages.