curl --request GET \
--url https://www.asteragents.com/api/getConversation \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.asteragents.com/api/getConversation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.asteragents.com/api/getConversation', 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://www.asteragents.com/api/getConversation",
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://www.asteragents.com/api/getConversation"
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://www.asteragents.com/api/getConversation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.asteragents.com/api/getConversation")
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{
"id": "550e8400-e29b-41d4-a716-446655440000",
"agentId": 123,
"userId": "user_2ABC123DEF",
"organizationId": "org_xxx",
"name": "Help with quarterly report",
"upstreamConversationId": null,
"renderedSystemPrompt": "You are a helpful assistant...",
"streamStatus": "completed",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"deletedAt": null,
"messages": [
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"role": "user",
"parts": [
{
"type": "text",
"text": "Can you help me analyze this data?"
}
]
},
{
"id": "660e8400-e29b-41d4-a716-446655440002",
"role": "assistant",
"parts": [
{
"type": "text",
"text": "Of course! I'd be happy to help you analyze the data."
}
]
}
]
}Get a conversation with messages
Retrieve a conversation and all its messages by thread ID.
The conversation must belong to the authenticated user’s organization.
Stream status values:
in_progress: Response is currently being generatedcompleted: Response generation finished successfullystopped: Response generation was manually stoppederror: Response generation encountered an errortimeout: Response generation timed outnull: No active stream
curl --request GET \
--url https://www.asteragents.com/api/getConversation \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.asteragents.com/api/getConversation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.asteragents.com/api/getConversation', 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://www.asteragents.com/api/getConversation",
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://www.asteragents.com/api/getConversation"
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://www.asteragents.com/api/getConversation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.asteragents.com/api/getConversation")
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{
"id": "550e8400-e29b-41d4-a716-446655440000",
"agentId": 123,
"userId": "user_2ABC123DEF",
"organizationId": "org_xxx",
"name": "Help with quarterly report",
"upstreamConversationId": null,
"renderedSystemPrompt": "You are a helpful assistant...",
"streamStatus": "completed",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"deletedAt": null,
"messages": [
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"role": "user",
"parts": [
{
"type": "text",
"text": "Can you help me analyze this data?"
}
]
},
{
"id": "660e8400-e29b-41d4-a716-446655440002",
"role": "assistant",
"parts": [
{
"type": "text",
"text": "Of course! I'd be happy to help you analyze the data."
}
]
}
]
}Authorizations
JWT token from Clerk authentication.
Must be from a user with org:admin role.
Query Parameters
The UUID of the conversation thread
"550e8400-e29b-41d4-a716-446655440000"
Response
Successfully retrieved conversation
Unique conversation identifier
"550e8400-e29b-41d4-a716-446655440000"
ID of the agent this conversation is with
123
Clerk user ID of the conversation owner
"user_2ABC123DEF"
When the conversation was created
"2024-01-15T10:30:00.000Z"
When the conversation was last updated
"2024-01-15T10:35:00.000Z"
All messages in the conversation, ordered by creation time
Show child attributes
Show child attributes
Organization the conversation belongs to
"org_xxx"
Conversation name/title (auto-generated or user-defined)
"Help with quarterly report"
Parent conversation ID for branched conversations
null
The system prompt used for this conversation (for audit)
"You are a helpful assistant..."
Current streaming status
in_progress, completed, stopped, error, timeout "completed"
When the conversation was soft-deleted (null if active)
null
Present and true if conversation was soft-deleted
false