Chat
Export one of the Personal key's owner's agent turns as a trace — full and abbreviated markdown and JSON, optionally redacted, with the thread redacted as the key reads it
Export one of the Personal key’s owner’s agent turns as a trace — full and abbreviated markdown and JSON, optionally redacted, with the thread redacted as the key reads it. Requires permission audit:read.
GET
/
api
/
v3
/
chat-turns
/
{turnId}
/
trace
Export one of the Personal key's owner's agent turns as a trace: full and abbreviated markdown and JSON, optionally redacted, with the thread redacted as the key reads it.
curl --request GET \
--url https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace', 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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace",
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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace"
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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace")
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{
"data": {
"markdown": "# Trace — Judge — 2026-11-04\n\n**Captured:** 2026-11-04 12:59:58 UTC by owner@api-native.example.com\n\n## Reproduction context\n\n| Field | Value |\n|---|---|\n| Agent | Judge |\n| Agent definition hash | hash |\n| Model | claude-sonnet-4-6 |\n| Dispatch site | chat |\n| System prompt hash | hash |\n| Tool sets | |\n\n## Turn timeline\n\n### Turn 2 — 1970-01-01 00:00:00 UTC → ... (in progress)\n\n**Final agent text:**\n> The deploy is green.\n\n---\n",
"abbreviatedMarkdown": "# Trace — Judge — 2026-11-04\n\n> Below is a Forge agent trace. The user wants help diagnosing it.\n\n**Captured:** 2026-11-04 12:59:58 UTC by owner@api-native.example.com\n\n## Reproduction context\n\n| Field | Value |\n|---|---|\n| Agent | Judge |\n| Agent definition hash | hash |\n| Model | claude-sonnet-4-6 |\n| Dispatch site | chat |\n| System prompt hash | hash |\n| Tool sets | |\n\n## Turn timeline\n\n### Turn 2 — 1970-01-01 00:00:00 UTC → ... (in progress)\n\n**Final agent text:**\n> The deploy is green.\n\n---\n",
"json": "{\n \"traceSchema\": \"1\",\n \"capturedAt\": 1793797198196,\n \"capturedByEmail\": \"owner@api-native.example.com\",\n \"reproductionContext\": {\n \"agentName\": \"Judge\",\n \"agentDefinitionHash\": \"hash\",\n \"modelName\": \"claude-sonnet-4-6\",\n \"dispatchSite\": \"chat\",\n \"systemPromptHash\": \"hash\",\n \"toolSetSnapshot\": []\n },\n \"turns\": [\n {\n \"turnIndex\": 2,\n \"startedAt\": 2,\n \"retryCount\": 0,\n \"statusHints\": [],\n \"toolCalls\": [],\n \"finalText\": \"The deploy is green.\"\n }\n ]\n}"
},
"meta": {
"requestId": "req_example"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "resource_missing",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}Authorizations
A Personal key (fmcp_…), bound to the person who created it, or an interactive MCP sign-in that resolves to one. Pass as Authorization: Bearer <key>. It acts for that person, under their role grants narrowed by its scopes; an operation that acts for a person admits only this kind.
⌘I
Export one of the Personal key's owner's agent turns as a trace: full and abbreviated markdown and JSON, optionally redacted, with the thread redacted as the key reads it.
curl --request GET \
--url https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace', 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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace",
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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace"
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.forge.gloo.com/api/v3/chat-turns/{turnId}/trace")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forge.gloo.com/api/v3/chat-turns/{turnId}/trace")
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{
"data": {
"markdown": "# Trace — Judge — 2026-11-04\n\n**Captured:** 2026-11-04 12:59:58 UTC by owner@api-native.example.com\n\n## Reproduction context\n\n| Field | Value |\n|---|---|\n| Agent | Judge |\n| Agent definition hash | hash |\n| Model | claude-sonnet-4-6 |\n| Dispatch site | chat |\n| System prompt hash | hash |\n| Tool sets | |\n\n## Turn timeline\n\n### Turn 2 — 1970-01-01 00:00:00 UTC → ... (in progress)\n\n**Final agent text:**\n> The deploy is green.\n\n---\n",
"abbreviatedMarkdown": "# Trace — Judge — 2026-11-04\n\n> Below is a Forge agent trace. The user wants help diagnosing it.\n\n**Captured:** 2026-11-04 12:59:58 UTC by owner@api-native.example.com\n\n## Reproduction context\n\n| Field | Value |\n|---|---|\n| Agent | Judge |\n| Agent definition hash | hash |\n| Model | claude-sonnet-4-6 |\n| Dispatch site | chat |\n| System prompt hash | hash |\n| Tool sets | |\n\n## Turn timeline\n\n### Turn 2 — 1970-01-01 00:00:00 UTC → ... (in progress)\n\n**Final agent text:**\n> The deploy is green.\n\n---\n",
"json": "{\n \"traceSchema\": \"1\",\n \"capturedAt\": 1793797198196,\n \"capturedByEmail\": \"owner@api-native.example.com\",\n \"reproductionContext\": {\n \"agentName\": \"Judge\",\n \"agentDefinitionHash\": \"hash\",\n \"modelName\": \"claude-sonnet-4-6\",\n \"dispatchSite\": \"chat\",\n \"systemPromptHash\": \"hash\",\n \"toolSetSnapshot\": []\n },\n \"turns\": [\n {\n \"turnIndex\": 2,\n \"startedAt\": 2,\n \"retryCount\": 0,\n \"statusHints\": [],\n \"toolCalls\": [],\n \"finalText\": \"The deploy is green.\"\n }\n ]\n}"
},
"meta": {
"requestId": "req_example"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "resource_missing",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}
