curl --request POST \
--url https://developer.creao.ai/v1/rooms/{room_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "@Researcher summarize the open launch blockers"
}
'
{
"message": {
"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
}
},
"duplicate": true,
"agent_invocations": [
{
"agent_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"invocation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}
]
}
Rooms
Post a room message
Post a message as yourself and start mentioned agents.
POST
/
v1
/
rooms
/
{room_id}
/
messages
curl --request POST \
--url https://developer.creao.ai/v1/rooms/{room_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "@Researcher summarize the open launch blockers"
}
'
{
"message": {
"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
}
},
"duplicate": true,
"agent_invocations": [
{
"agent_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"invocation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}
]
}
Authorizations
bearerAuthapiKeyQuery
Path Parameters
Body
application/json
Markdown. @Name of an active member becomes a mention. Unless expand_shortcut is false, a leading /name sends that room shortcut (an unknown name posts as typed) and a leading //name of a room shortcut posts /name; any other leading // posts as typed.
Required string length:
1 - 16000The channel to post in, an id from GET /v1/rooms/{room_id}/channels or general; absent posts to General. A reply stays in its root's channel, so with reply_to_seq it must name that one (400 ROOM_CHANNEL_REPLY_CONFLICT). An archived channel is 409 ROOM_CHANNEL_ARCHIVED, an unknown one 404 ROOM_CHANNEL_NOT_FOUND.