curl --request GET \
--url https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime', 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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime",
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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime"
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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime")
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{
"chatUID": "550e8400-e29b-41d4-a716-446655440000",
"clientUID": "client-123",
"chatHistory": [
{
"uid": "75ecbcfc-a3be-43ba-8da6-b3e16e8d7280",
"chatUid": "550e8400-e29b-41d4-a716-446655440000",
"role": "user",
"content": {
"message": "I would recommend a 450 W monocrystalline panel.",
"data": {},
"files": [
{
"name": "invoice.pdf",
"donwloadUrl": "https://files.devic.ai/uploads/invoice.pdf",
"fileType": "DOCUMENT"
}
]
},
"timestamp": 1706000000000,
"userUID": "api-key:42",
"summary": "The user asks which panels to install on a 60 m2 roof.",
"contentSource": "finish_tool",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"tool_call_id": "call_abc123",
"latencyMs": 1045,
"messageTokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"inputCachedTokens": 123,
"inputCacheWriteTokens": 123,
"outputCachedTokens": 123,
"reasoningOutputTokens": 123,
"totalTokens": 123,
"provider": "<string>",
"model": "<string>"
},
"messageCost": {
"inputCost": 123,
"outputCost": 123,
"inputCachedCost": 123,
"inputCacheWriteCost": 123,
"outputCachedCost": 123,
"reasoningOutputCost": 123,
"totalCost": 123,
"currency": "USD",
"calculatedAt": 123
}
}
],
"status": "processing",
"lastUpdatedAt": 1706000000000,
"queuedMessages": 0,
"pendingUserMessages": [
{
"uid": "75ecbcfc-a3be-43ba-8da6-b3e16e8d7280",
"chatUid": "550e8400-e29b-41d4-a716-446655440000",
"role": "user",
"content": {
"message": "I would recommend a 450 W monocrystalline panel.",
"data": {},
"files": [
{
"name": "invoice.pdf",
"donwloadUrl": "https://files.devic.ai/uploads/invoice.pdf",
"fileType": "DOCUMENT"
}
]
},
"timestamp": 1706000000000,
"userUID": "api-key:42",
"summary": "The user asks which panels to install on a 60 m2 roof.",
"contentSource": "finish_tool",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"tool_call_id": "call_abc123",
"latencyMs": 1045,
"messageTokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"inputCachedTokens": 123,
"inputCacheWriteTokens": 123,
"outputCachedTokens": 123,
"reasoningOutputTokens": 123,
"totalTokens": 123,
"provider": "<string>",
"model": "<string>"
},
"messageCost": {
"inputCost": 123,
"outputCost": 123,
"inputCachedCost": 123,
"inputCacheWriteCost": 123,
"outputCachedCost": 123,
"reasoningOutputCost": 123,
"totalCost": 123,
"currency": "USD",
"calculatedAt": 123
}
}
],
"pendingToolCalls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"handedOffSubThreadId": "64f5a5b8c123456789abcdef",
"stopReason": "max_chat_messages_reached",
"recalledMemories": [
"<string>"
],
"limitExceeded": {}
}Get real-time chat history
Retrieves the real-time chat history from Redis cache. Use this endpoint to poll for results when using async mode. Returns status indicating if processing is still in progress.
curl --request GET \
--url https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime', 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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime",
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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime"
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.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devic.ai/v1/assistants/{identifier}/chats/{chatUid}/realtime")
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{
"chatUID": "550e8400-e29b-41d4-a716-446655440000",
"clientUID": "client-123",
"chatHistory": [
{
"uid": "75ecbcfc-a3be-43ba-8da6-b3e16e8d7280",
"chatUid": "550e8400-e29b-41d4-a716-446655440000",
"role": "user",
"content": {
"message": "I would recommend a 450 W monocrystalline panel.",
"data": {},
"files": [
{
"name": "invoice.pdf",
"donwloadUrl": "https://files.devic.ai/uploads/invoice.pdf",
"fileType": "DOCUMENT"
}
]
},
"timestamp": 1706000000000,
"userUID": "api-key:42",
"summary": "The user asks which panels to install on a 60 m2 roof.",
"contentSource": "finish_tool",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"tool_call_id": "call_abc123",
"latencyMs": 1045,
"messageTokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"inputCachedTokens": 123,
"inputCacheWriteTokens": 123,
"outputCachedTokens": 123,
"reasoningOutputTokens": 123,
"totalTokens": 123,
"provider": "<string>",
"model": "<string>"
},
"messageCost": {
"inputCost": 123,
"outputCost": 123,
"inputCachedCost": 123,
"inputCacheWriteCost": 123,
"outputCachedCost": 123,
"reasoningOutputCost": 123,
"totalCost": 123,
"currency": "USD",
"calculatedAt": 123
}
}
],
"status": "processing",
"lastUpdatedAt": 1706000000000,
"queuedMessages": 0,
"pendingUserMessages": [
{
"uid": "75ecbcfc-a3be-43ba-8da6-b3e16e8d7280",
"chatUid": "550e8400-e29b-41d4-a716-446655440000",
"role": "user",
"content": {
"message": "I would recommend a 450 W monocrystalline panel.",
"data": {},
"files": [
{
"name": "invoice.pdf",
"donwloadUrl": "https://files.devic.ai/uploads/invoice.pdf",
"fileType": "DOCUMENT"
}
]
},
"timestamp": 1706000000000,
"userUID": "api-key:42",
"summary": "The user asks which panels to install on a 60 m2 roof.",
"contentSource": "finish_tool",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"tool_call_id": "call_abc123",
"latencyMs": 1045,
"messageTokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"inputCachedTokens": 123,
"inputCacheWriteTokens": 123,
"outputCachedTokens": 123,
"reasoningOutputTokens": 123,
"totalTokens": 123,
"provider": "<string>",
"model": "<string>"
},
"messageCost": {
"inputCost": 123,
"outputCost": 123,
"inputCachedCost": 123,
"inputCacheWriteCost": 123,
"outputCachedCost": 123,
"reasoningOutputCost": 123,
"totalCost": 123,
"currency": "USD",
"calculatedAt": 123
}
}
],
"pendingToolCalls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"handedOffSubThreadId": "64f5a5b8c123456789abcdef",
"stopReason": "max_chat_messages_reached",
"recalledMemories": [
"<string>"
],
"limitExceeded": {}
}Authorizations
An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.
Path Parameters
The unique identifier of the assistant specialization
The unique identifier of the chat conversation
Response
Real-time chat history retrieved successfully
"550e8400-e29b-41d4-a716-446655440000"
"client-123"
Show child attributes
Show child attributes
processing, completed, error, handed_off, buffering, waiting_for_tool_response, limit_exceeded "processing"
1706000000000
0
Show child attributes
Show child attributes
Pending tool calls awaiting client-side execution
Show child attributes
Show child attributes
Subagent thread ID (when status is handed_off)
"64f5a5b8c123456789abcdef"
System stop reason (e.g. max_chat_messages_reached, error)
"max_chat_messages_reached"
Memory-recall events of the in-flight run (source, query, facts/entities surfaced)
Usage-limit details (when status is limit_exceeded)