curl --request GET \
--url https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}', 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://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "9b1d7c52-6f0e-4a8b-8d3f-5e2a1c7b9d40",
"status": "completed",
"message": "Which Berlin fintechs raised a Series A in the last year?",
"answer": "Three Berlin fintechs raised a Series A in the last year: [Hedgehog Payments](https://app.tryspecter.com/companies/5e3bc2b700c8f4c966ad2bbd).",
"follow_ups": [
"Compare their funding",
"Who invested in them?"
],
"input_requests": [],
"credits_used": 7,
"error": null,
"created_at": "2026-12-01T09:30:00Z",
"completed_at": "2026-12-01T09:30:48Z"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "API key present, but you are not permitted"
}{
"errorCode": "NOT_FOUND",
"message": "Not Found"
}{
"errorCode": "NO_API_USER",
"message": "Your organization's API user is not set up yet, so there is no owner for this item. Contact support."
}{
"errorCode": "VALIDATION_ERROR",
"message": "Field required (body.name)"
}{
"errorCode": "RATE_LIMITED",
"message": "You have been rate-limited"
}{
"errorCode": "clerk_unavailable",
"message": "Key verification is temporarily unavailable"
}Get a turn
Read one turn of a conversation. A turn is never changed by a later message, so this reads yours even after someone else has sent the conversation a newer one.
Free. This call does not consume credits.
A turn that was input_required and is no longer the latest reads completed,
with no input_requests: its answer was the question it asked. While the turn
is queued or running the response carries Retry-After: 2.
curl --request GET \
--url https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}', 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://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/agent/conversations/{conversationId}/turns/{turnId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "9b1d7c52-6f0e-4a8b-8d3f-5e2a1c7b9d40",
"status": "completed",
"message": "Which Berlin fintechs raised a Series A in the last year?",
"answer": "Three Berlin fintechs raised a Series A in the last year: [Hedgehog Payments](https://app.tryspecter.com/companies/5e3bc2b700c8f4c966ad2bbd).",
"follow_ups": [
"Compare their funding",
"Who invested in them?"
],
"input_requests": [],
"credits_used": 7,
"error": null,
"created_at": "2026-12-01T09:30:00Z",
"completed_at": "2026-12-01T09:30:48Z"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "API key present, but you are not permitted"
}{
"errorCode": "NOT_FOUND",
"message": "Not Found"
}{
"errorCode": "NO_API_USER",
"message": "Your organization's API user is not set up yet, so there is no owner for this item. Contact support."
}{
"errorCode": "VALIDATION_ERROR",
"message": "Field required (body.name)"
}{
"errorCode": "RATE_LIMITED",
"message": "You have been rate-limited"
}{
"errorCode": "clerk_unavailable",
"message": "Key verification is temporarily unavailable"
}Path Parameters
Response
The turn as it now reads. Retry-After is sent while it is queued or running.
One message you sent and everything the agent did about it.
queued and running mean the agent is still working. completed means it answered. input_required means the turn stopped for you, to approve a write it held or to answer a question: input_requests says what it waits for, and you answer through Continue a conversation. failed and cancelled are final and free.
queued, running, completed, input_required, failed, cancelled "completed"
The agent's reply in Markdown, with links to Specter pages. For a question it is the question. null until the turn is completed or input_required, and null for held writes the agent said nothing about.
"Three Berlin fintechs raised a Series A in the last year: [Hedgehog Payments](https://app.tryspecter.com/companies/5e3bc2b700c8f4c966ad2bbd)."
Was this page helpful?