Chat Message
curl --request GET \
--url https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}"
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}', 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.eu.linqalpha.com/v1/chat_messages/{chat_message_id}",
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}"
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}")
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{
"chat_message_id": "123e4567-e89b-12d3-a456-426614174000",
"message": "The company's revenue grew by 20% in the last quarter. ...",
"message_type": "assistant",
"created_at": "2025-10-30T09:11:31.667544Z"
}{
"error": {
"code": "CHAT_MESSAGE_ID_MISSING",
"msg": "chat_message_id is required",
"message": "chat_message_id is required"
},
"payload": null
}{
"error": {
"code": "API_KEY_MISSING",
"msg": "header does not contain api key",
"message": "header does not contain api key"
},
"payload": null
}Legacy endpoints
Chat Message
Legacy in the EU region. This endpoint is kept for backward compatibility and is not recommended for new EU integrations. It is the middle step of the legacy chat flow (Chat -> this endpoint -> References) and has no fetch-by-id counterpart: the Analytics V2 stream delivers the answer inline, and its chat_message_id event feeds Analytics V2 Judge instead.
Retrieves a specific chat message by its ID.
How to find chat_message_id:
Look for the event with event_name set to search_results in the Chat API response data. For detailed instructions, see search_results event response.
GET
/
v1
/
chat_messages
/
{chat_message_id}
Chat Message
curl --request GET \
--url https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}"
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}', 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.eu.linqalpha.com/v1/chat_messages/{chat_message_id}",
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}"
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://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.linqalpha.com/v1/chat_messages/{chat_message_id}")
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{
"chat_message_id": "123e4567-e89b-12d3-a456-426614174000",
"message": "The company's revenue grew by 20% in the last quarter. ...",
"message_type": "assistant",
"created_at": "2025-10-30T09:11:31.667544Z"
}{
"error": {
"code": "CHAT_MESSAGE_ID_MISSING",
"msg": "chat_message_id is required",
"message": "chat_message_id is required"
},
"payload": null
}{
"error": {
"code": "API_KEY_MISSING",
"msg": "header does not contain api key",
"message": "header does not contain api key"
},
"payload": null
}Authorizations
Path Parameters
Chat message ID