Send agent message (sync)
Synchronously sends a message to the agent’s published version and blocks until the agent finishes (or timeoutSeconds expires). Auto-creates a conversation when conversationId is omitted. Response includes token usage and cost.
curl --request POST \
--url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"attachments": [
{
"base64": "<string>",
"filename": "<string>",
"mediaType": "<string>",
"url": "<string>"
}
],
"content": "Hi, can you summarize my latest invoices?",
"conversationId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21",
"externalUserId": "user_42",
"isTest": false,
"metadata": {},
"timeoutSeconds": 60
}
'import requests
url = "https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages"
payload = {
"attachments": [
{
"base64": "<string>",
"filename": "<string>",
"mediaType": "<string>",
"url": "<string>"
}
],
"content": "Hi, can you summarize my latest invoices?",
"conversationId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21",
"externalUserId": "user_42",
"isTest": False,
"metadata": {},
"timeoutSeconds": 60
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
attachments: [
{
base64: '<string>',
filename: '<string>',
mediaType: '<string>',
url: '<string>'
}
],
content: 'Hi, can you summarize my latest invoices?',
conversationId: '9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21',
externalUserId: 'user_42',
isTest: false,
metadata: {},
timeoutSeconds: 60
})
};
fetch('https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages', 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.gennia.ai/public/api/v1/agents/{agentPublicId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'attachments' => [
[
'base64' => '<string>',
'filename' => '<string>',
'mediaType' => '<string>',
'url' => '<string>'
]
],
'content' => 'Hi, can you summarize my latest invoices?',
'conversationId' => '9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21',
'externalUserId' => 'user_42',
'isTest' => false,
'metadata' => [
],
'timeoutSeconds' => 60
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages"
payload := strings.NewReader("{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.gennia.ai/public/api/v1/agents/{agentPublicId}/messages")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}Autorizações
Parâmetros de caminho
Agent public ID
Corpo
Body for sending a message to an agent (sync or streaming).
Optional attachments to include with this message (max 10).
10Show child attributes
Show child attributes
Message text. May be empty when at least one attachment is provided.
32000"Hi, can you summarize my latest invoices?"
Continue this conversation. Omit to create a new conversation or reuse one for the externalUserId.
"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"
Stable end-user identifier. Auto-generated UUID if omitted on a new conversation.
255"user_42"
Only honored when CREATING a new conversation. true excludes the conversation from the Studio inbox. Ignored when continuing an existing conversation.
false
Arbitrary JSON metadata; stored on the conversation (first message only).
Show child attributes
Show child attributes
Sync-only: max wall-clock seconds to block before returning 408. Ignored by the stream endpoint.
1 <= x <= 30060
Esta página foi útil?
curl --request POST \
--url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"attachments": [
{
"base64": "<string>",
"filename": "<string>",
"mediaType": "<string>",
"url": "<string>"
}
],
"content": "Hi, can you summarize my latest invoices?",
"conversationId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21",
"externalUserId": "user_42",
"isTest": false,
"metadata": {},
"timeoutSeconds": 60
}
'import requests
url = "https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages"
payload = {
"attachments": [
{
"base64": "<string>",
"filename": "<string>",
"mediaType": "<string>",
"url": "<string>"
}
],
"content": "Hi, can you summarize my latest invoices?",
"conversationId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21",
"externalUserId": "user_42",
"isTest": False,
"metadata": {},
"timeoutSeconds": 60
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
attachments: [
{
base64: '<string>',
filename: '<string>',
mediaType: '<string>',
url: '<string>'
}
],
content: 'Hi, can you summarize my latest invoices?',
conversationId: '9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21',
externalUserId: 'user_42',
isTest: false,
metadata: {},
timeoutSeconds: 60
})
};
fetch('https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages', 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.gennia.ai/public/api/v1/agents/{agentPublicId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'attachments' => [
[
'base64' => '<string>',
'filename' => '<string>',
'mediaType' => '<string>',
'url' => '<string>'
]
],
'content' => 'Hi, can you summarize my latest invoices?',
'conversationId' => '9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21',
'externalUserId' => 'user_42',
'isTest' => false,
'metadata' => [
],
'timeoutSeconds' => 60
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages"
payload := strings.NewReader("{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.gennia.ai/public/api/v1/agents/{agentPublicId}/messages")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"attachments\": [\n {\n \"base64\": \"<string>\",\n \"filename\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"content\": \"Hi, can you summarize my latest invoices?\",\n \"conversationId\": \"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21\",\n \"externalUserId\": \"user_42\",\n \"isTest\": false,\n \"metadata\": {},\n \"timeoutSeconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}{
"conversation": {
"agentPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"externalUserId": "<string>",
"isEnded": true,
"isPaused": true,
"isTest": true,
"lastMessageAt": "2023-11-07T05:31:56Z",
"messageCount": 123,
"metadata": {},
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z"
},
"durationMs": 123,
"message": {
"content": "<string>",
"conversationPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costOps": 123,
"costUsd": 123,
"model": "<string>",
"publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"tokenUsage": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123
}
}
}
