curl --request POST \
--url https://api.example.com/api/v1/enrichment-chat/start \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/enrichment-chat/start"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/enrichment-chat/start', 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.example.com/api/v1/enrichment-chat/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.example.com/api/v1/enrichment-chat/start"
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/v1/enrichment-chat/start")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/enrichment-chat/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"message": {
"role": "<string>",
"content": "<string>",
"id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"metadata": {}
},
"action": "<string>",
"suggested_fields": [
"<string>"
],
"processing_status": {},
"credits_estimated": 123,
"rate_limit_remaining": 123,
"response_time_ms": 123
}Start Enrichment Chat
Start a new enrichment chat interface with enhanced initialization.
Enhanced version with performance monitoring, better error handling, and optimized welcome message generation.
Features:
- Performance monitoring and timing
- Enhanced error handling and logging
- Optimized agent integration
- Response time tracking
Returns: EnrichmentChatResponse: Initial chat message with timing information
Raises: HTTPException: If authentication fails or system error occurs
curl --request POST \
--url https://api.example.com/api/v1/enrichment-chat/start \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/enrichment-chat/start"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/enrichment-chat/start', 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.example.com/api/v1/enrichment-chat/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.example.com/api/v1/enrichment-chat/start"
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/v1/enrichment-chat/start")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/enrichment-chat/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"message": {
"role": "<string>",
"content": "<string>",
"id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"metadata": {}
},
"action": "<string>",
"suggested_fields": [
"<string>"
],
"processing_status": {},
"credits_estimated": 123,
"rate_limit_remaining": 123,
"response_time_ms": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
Enhanced response model for enrichment chat interactions.
Session identifier
Assistant's response message
Show child attributes
Show child attributes
Action to trigger in frontend (e.g., 'requestUpload', 'startProcessing')
Suggested fields to enrich based on user query
Status of ongoing enrichment processing
Estimated credits required for suggested operations
Remaining rate limit for user
Response time in milliseconds