Read a chat's open messages and their canonical replacements
curl --request GET \
--url https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"head_revision": 4503599627370495,
"open": [
{
"content": "<string>",
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 4503599627370496,
"variant": "text",
"duration_ms": 4503599627370495
}
],
"replacements": [
{
"content": "<string>",
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 4503599627370496,
"variant": "text",
"duration_ms": 4503599627370495
}
],
"reset_sequence": 4503599627370495,
"revision": 4503599627370495,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"through_sequence": 4503599627370495,
"active_execution": {
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"processing_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Tasks
Read a chat's open messages and their canonical replacements
Reads one chat’s open agent messages and the canonical replacements of the message_id values the client observed, with the revisions they were read at.
Use this tool when you need to:
- Show the agent text and thinking a chat is still writing in its running turn
- Replace the open messages a client showed for a chat with their final text once they closed
Examples:
- GET /tasks//chats//conversation/live
- GET /tasks/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/chats/0b8e6d52-4f3a-4c1e-9d7b-2a5c8e1f3b90/conversation/live?message_id=message:2f8c4d1a-7b3e-4a9f-8c2d-5e6f7a8b9c0d:text:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
Hints:
- The query and the snapshot are getTaskLiveConversationSnapshot’s, read for this chat alone: another chat’s open messages are not its, and active_execution is absent while another chat’s turn runs.
- Use getTaskLiveConversationSnapshot instead for the task’s main chat.
- Any member of the task’s organization may read it, a viewer included; a billing member is refused with 403 org_role_insufficient, a suspended organization with 403 org_suspended, and a task or chat outside the caller’s reach is 404 not_found; 503 when the membership check is unavailable.
- More than 200 message_id values, or one outside the message id grammar, is 422 from the schema.
GET
/
tasks
/
{taskID}
/
chats
/
{chatID}
/
conversation
/
live
Read a chat's open messages and their canonical replacements
curl --request GET \
--url https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/tasks/{taskID}/chats/{chatID}/conversation/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"head_revision": 4503599627370495,
"open": [
{
"content": "<string>",
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 4503599627370496,
"variant": "text",
"duration_ms": 4503599627370495
}
],
"replacements": [
{
"content": "<string>",
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 4503599627370496,
"variant": "text",
"duration_ms": 4503599627370495
}
],
"reset_sequence": 4503599627370495,
"revision": 4503599627370495,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"through_sequence": 4503599627370495,
"active_execution": {
"conversation_turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"processing_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"processing_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Path Parameters
Query Parameters
The open message ids the client last observed; repeat the parameter for each id.
Maximum array length:
200A task message's id: a uuid for a message the API queued or a chat forked inside its task copied, or a key derived from the message's source (an assistant message, a seam, a message replayed from an imported session).
Pattern:
^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|message:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:text|thinking):[0-9a-f]{64}|implicit:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:text|thinking):[0-9]+|seam:compaction:[^:]+:[^:]+|seam:teleport:\S(?:[\s\S]*\S)?|teleport:\S(?:[\s\S]*\S)?:[0-9]{6,})$Response
OK