curl "https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570" \
-H "Authorization: Bearer <your_api_key>"
import requests
response = requests.get(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
headers={"Authorization": "Bearer <your_api_key>"}
)
data = response.json()
print(data["id"], data["messages"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
{
headers: { "Authorization": "Bearer <your_api_key>" },
}
);
const data = await response.json();
console.log(data.id, data.messages);
{
"id": "baa1b1be-4905-4448-9a37-159f08dfc570",
"created_at": "2026-03-10T12:00:00Z",
"messages": [
{"role": "user", "content": [{"type": "text", "text": "What errors are happening?"}]},
{"role": "assistant", "content": [{"type": "text", "text": "Let me check your error tracking tools..."}]}
],
"data_sources": [],
"investigation_results": [],
"citation_map": {}
}
API
Get Chat
Retrieve a chat by ID including the full conversation history
GET
/
api
/
v1
/
chats
/
{chat_id}
curl "https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570" \
-H "Authorization: Bearer <your_api_key>"
import requests
response = requests.get(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
headers={"Authorization": "Bearer <your_api_key>"}
)
data = response.json()
print(data["id"], data["messages"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
{
headers: { "Authorization": "Bearer <your_api_key>" },
}
);
const data = await response.json();
console.log(data.id, data.messages);
{
"id": "baa1b1be-4905-4448-9a37-159f08dfc570",
"created_at": "2026-03-10T12:00:00Z",
"messages": [
{"role": "user", "content": [{"type": "text", "text": "What errors are happening?"}]},
{"role": "assistant", "content": [{"type": "text", "text": "Let me check your error tracking tools..."}]}
],
"data_sources": [],
"investigation_results": [],
"citation_map": {}
}
Retrieve a chat by ID including the full conversation history and metadata.
Headers
string
required
Bearer token with your Deeptrace API key. Format:
Bearer <your_api_key>.Parameters
string
required
UUID of the chat, returned by Send Chat Message.
curl "https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570" \
-H "Authorization: Bearer <your_api_key>"
import requests
response = requests.get(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
headers={"Authorization": "Bearer <your_api_key>"}
)
data = response.json()
print(data["id"], data["messages"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/chats/baa1b1be-4905-4448-9a37-159f08dfc570",
{
headers: { "Authorization": "Bearer <your_api_key>" },
}
);
const data = await response.json();
console.log(data.id, data.messages);
Returns
Returns the full chat object with conversation history, data sources, investigation results, and citation map.{
"id": "baa1b1be-4905-4448-9a37-159f08dfc570",
"created_at": "2026-03-10T12:00:00Z",
"messages": [
{"role": "user", "content": [{"type": "text", "text": "What errors are happening?"}]},
{"role": "assistant", "content": [{"type": "text", "text": "Let me check your error tracking tools..."}]}
],
"data_sources": [],
"investigation_results": [],
"citation_map": {}
}
string
UUID of the chat.
string
ISO 8601 timestamp of when the chat was created.
object[]
Array of message objects with
role and content fields. Content is an array of content blocks (e.g. {"type": "text", "text": "..."}).array
Data sources referenced during the chat.
array
Investigation results generated during the chat.
object
Map of citation references to their source data.