List a task's conversation turns
curl --request GET \
--url https://api.runaether.dev/tasks/{taskID}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/tasks/{taskID}/turns"
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}/turns', 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}/turns",
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}/turns"
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}/turns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/tasks/{taskID}/turns")
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,
"items": [
{
"activity": {
"duration_ms": 4503599627370495,
"failed_tool_count": 4503599627370495,
"has_activity": true,
"has_result_media": true,
"item_count": 4503599627370495
},
"connection_move": {
"from": {
"runs_on": "aether"
},
"kind": "moved_here",
"reason": "plan_window_spent",
"rule": "named",
"resets_at": "2023-11-07T05:31:56Z"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latest_agent_message": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "text",
"sequence": 4503599627370495,
"state": "done",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"members": [
{
"attachments": [
{
"filename": "<string>",
"index": 4,
"media_type": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "user",
"sequence": 4503599627370495,
"state": "queued",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_event": {
"author": {
"login": "<string>",
"association": "<string>",
"type": "<string>"
},
"body": "<string>",
"kind": "pr_comment",
"pr_number": 4503599627370496,
"repo": {
"name": "<string>",
"owner": "<string>"
},
"action": "<string>",
"branch": "<string>",
"line": 4503599627370496,
"path": "<string>",
"review_id": 4503599627370496,
"review_state": "<string>",
"reviewer_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"sender": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tool_response": {
"data": {
"answers": {},
"custom_answers": {}
},
"tool_name": "ask_user"
}
}
],
"ran_on": [
{
"runs_on": "aether"
}
],
"revision_sequence": 4503599627370495,
"root_message": {
"attachments": [
{
"filename": "<string>",
"index": 4,
"media_type": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "user",
"sequence": 4503599627370495,
"state": "queued",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_event": {
"author": {
"login": "<string>",
"association": "<string>",
"type": "<string>"
},
"body": "<string>",
"kind": "pr_comment",
"pr_number": 4503599627370496,
"repo": {
"name": "<string>",
"owner": "<string>"
},
"action": "<string>",
"branch": "<string>",
"line": 4503599627370496,
"path": "<string>",
"review_id": 4503599627370496,
"review_state": "<string>",
"reviewer_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"sender": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tool_response": {
"data": {
"answers": {},
"custom_answers": {}
},
"tool_name": "ask_user"
}
},
"sequence": 4503599627370495,
"state": "queued"
}
],
"next_cursor": "<string>"
}{
"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>"
}
]
}Tasks
List a task's conversation turns
One page of a task’s conversation turns in the order they began, each summarized by its input, its latest agent text and a count of the messages it owns; the first page holds the newest turns and next_cursor reads the older ones. Where the conversation stands is the task’s conversation. Any member of the task’s organization may read it, a viewer included; a billing member is refused with 403 org_role_insufficient. A task outside the caller’s reach is 404 not_found, and a malformed cursor, or one minted for another task, is 422.
GET
/
tasks
/
{taskID}
/
turns
List a task's conversation turns
curl --request GET \
--url https://api.runaether.dev/tasks/{taskID}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/tasks/{taskID}/turns"
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}/turns', 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}/turns",
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}/turns"
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}/turns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/tasks/{taskID}/turns")
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,
"items": [
{
"activity": {
"duration_ms": 4503599627370495,
"failed_tool_count": 4503599627370495,
"has_activity": true,
"has_result_media": true,
"item_count": 4503599627370495
},
"connection_move": {
"from": {
"runs_on": "aether"
},
"kind": "moved_here",
"reason": "plan_window_spent",
"rule": "named",
"resets_at": "2023-11-07T05:31:56Z"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latest_agent_message": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "text",
"sequence": 4503599627370495,
"state": "done",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"members": [
{
"attachments": [
{
"filename": "<string>",
"index": 4,
"media_type": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "user",
"sequence": 4503599627370495,
"state": "queued",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_event": {
"author": {
"login": "<string>",
"association": "<string>",
"type": "<string>"
},
"body": "<string>",
"kind": "pr_comment",
"pr_number": 4503599627370496,
"repo": {
"name": "<string>",
"owner": "<string>"
},
"action": "<string>",
"branch": "<string>",
"line": 4503599627370496,
"path": "<string>",
"review_id": 4503599627370496,
"review_state": "<string>",
"reviewer_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"sender": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tool_response": {
"data": {
"answers": {},
"custom_answers": {}
},
"tool_name": "ask_user"
}
}
],
"ran_on": [
{
"runs_on": "aether"
}
],
"revision_sequence": 4503599627370495,
"root_message": {
"attachments": [
{
"filename": "<string>",
"index": 4,
"media_type": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sha256": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"kind": "user",
"sequence": 4503599627370495,
"state": "queued",
"text": "<string>",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_event": {
"author": {
"login": "<string>",
"association": "<string>",
"type": "<string>"
},
"body": "<string>",
"kind": "pr_comment",
"pr_number": 4503599627370496,
"repo": {
"name": "<string>",
"owner": "<string>"
},
"action": "<string>",
"branch": "<string>",
"line": 4503599627370496,
"path": "<string>",
"review_id": 4503599627370496,
"review_state": "<string>",
"reviewer_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"sender": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tool_response": {
"data": {
"answers": {},
"custom_answers": {}
},
"tool_name": "ask_user"
}
},
"sequence": 4503599627370495,
"state": "queued"
}
],
"next_cursor": "<string>"
}{
"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>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Query Parameters
Minimum string length:
1Required range:
1 <= x <= 200