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": [
{}
],
"status": "processing",
"lastUpdatedAt": 1706000000000,
"queuedMessages": 0,
"pendingUserMessages": [
{}
],
"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": [
{}
],
"status": "processing",
"lastUpdatedAt": 1706000000000,
"queuedMessages": 0,
"pendingUserMessages": [
{}
],
"pendingToolCalls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_user_location",
"arguments": "{}"
}
}
],
"handedOffSubThreadId": "64f5a5b8c123456789abcdef",
"stopReason": "max_chat_messages_reached",
"recalledMemories": [
"<string>"
],
"limitExceeded": {}
}Authorizations
Use JWT token for 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"
processing, completed, error, handed_off, buffering, waiting_for_tool_response, limit_exceeded "processing"
1706000000000
0
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)