cURL
curl --request POST \
--url https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"texts": [
{
"id": "message_001",
"text": "Can you text me your business name?"
}
]
}'import requests
url = "https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages"
payload = { "texts": [
{
"id": "message_001",
"text": "Can you text me your business name?"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({texts: [{id: 'message_001', text: 'Can you text me your business name?'}]})
};
fetch('https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/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([
'texts' => [
[
'id' => 'message_001',
'text' => 'Can you text me your business name?'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages"
payload := strings.NewReader("{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"texts": [],
"deliveredTo": "text"
}
}Send TFU Live chat test messages
Send one or more lead texts to the test conversation. Stable message ids prevent duplicate delivery on retry. Uses real routing: an active voice session receives them, otherwise the chat backend replies. Read the test thread after an uncertain result before retrying.
Required scope: agents:write.
Required API key scope: agents:write.
POST
/
api
/
tfu-live-agents
/
{id}
/
chat-tests
/
{sessionId}
/
messages
cURL
curl --request POST \
--url https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"texts": [
{
"id": "message_001",
"text": "Can you text me your business name?"
}
]
}'import requests
url = "https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages"
payload = { "texts": [
{
"id": "message_001",
"text": "Can you text me your business name?"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({texts: [{id: 'message_001', text: 'Can you text me your business name?'}]})
};
fetch('https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/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([
'texts' => [
[
'id' => 'message_001',
'text' => 'Can you text me your business name?'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages"
payload := strings.NewReader("{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/tfu-live-agents/{id}/chat-tests/{sessionId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"texts\": [\n {\n \"id\": \"message_001\",\n \"text\": \"Can you text me your business name?\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"texts": [],
"deliveredTo": "text"
}
}Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Path Parameters
TFU Live agent id. Never use an ordinary provider agent id.
Pattern:
^[A-Za-z0-9_-]{1,100}$Query Parameters
Sub-account belonging to the authenticated agency and any narrower credential location binding.
Body
application/json
The complete TFU Live authored agent or an explicit draft.
Required array length:
1 - 20 elementsShow child attributes
Show child attributes
⌘I
