cURL
curl --request POST \
--url https://api.teamfollowup.ai/api/call-history/transcript-search \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"query": {
"any": [
{
"phrase": "are you AI"
},
{
"phrase": "are you a robot"
}
]
},
"speaker": "lead",
"durationMin": 121,
"limit": 25,
"countMode": "none",
"includeCoverage": false
}'import requests
url = "https://api.teamfollowup.ai/api/call-history/transcript-search"
payload = { "query": { "any": [{ "phrase": "are you AI" }, { "phrase": "are you a robot" }] } }
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({query: {any: [{phrase: 'are you AI'}, {phrase: 'are you a robot'}]}})
};
fetch('https://api.teamfollowup.ai/api/call-history/transcript-search', 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/call-history/transcript-search",
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([
'query' => [
'any' => [
[
'phrase' => 'are you AI'
],
[
'phrase' => 'are you a robot'
]
]
]
]),
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/call-history/transcript-search"
payload := strings.NewReader("{\n \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\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/call-history/transcript-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/call-history/transcript-search")
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 \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"results": [
{
"recordId": "record-example",
"recordIdType": "string",
"callId": "call-example",
"contactId": "contact-example",
"referenceNotes": [],
"recordedAtUTC": null,
"durationSeconds": 153,
"excerpts": [
{
"speaker": "lead",
"sourcePart": "primary",
"text": "Wait, are you AI?",
"notes": []
}
],
"evidenceTruncated": false
}
],
"page": {
"nextCursor": null,
"budgetLimited": false,
"staleCandidatesOmitted": 0
},
"count": null,
"corpus": {
"generation": "generation-example",
"consistency": "eventual",
"historicalBackfillComplete": true,
"observedAt": "2026-10-04T00:00:00.000Z",
"coverage": null
}
}
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_INVALID_CURSOR",
"message": "Invalid or expired transcript search cursor. Start a new search."
}{
"success": false,
"error": "Unauthorized",
"message": "Authentication required."
}{
"success": false,
"error": "Forbidden",
"message": "You do not have access to this project."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_REQUEST_TOO_LARGE",
"message": "Transcript search requests must fit within 32 KiB."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_INVALID_QUERY",
"message": "Invalid transcript search query or filters."
}{
"success": false,
"error": "TooManyRequests",
"message": "Too many requests, please try again later."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_UNAVAILABLE",
"message": "Transcript search is unavailable. Try again later."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_TIMEOUT",
"message": "Transcript search exceeded its time limit. Narrow the query and try again."
}Search call transcripts
Search authorised stored call transcripts for literal words and phrases with AND/OR groups. Returns short verbatim excerpts and typed call record IDs, with native continuation. No full transcripts or provider fetches. Requires calls:read. Counts and coverage describe an eventually consistent index, not unique leads or a live lifetime census. Saved older voice-platform transcripts participate. See /calls/transcript-search for matching rules, filters, coverage and limits.
Required API key scope: calls:read.
POST
/
api
/
call-history
/
transcript-search
cURL
curl --request POST \
--url https://api.teamfollowup.ai/api/call-history/transcript-search \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"query": {
"any": [
{
"phrase": "are you AI"
},
{
"phrase": "are you a robot"
}
]
},
"speaker": "lead",
"durationMin": 121,
"limit": 25,
"countMode": "none",
"includeCoverage": false
}'import requests
url = "https://api.teamfollowup.ai/api/call-history/transcript-search"
payload = { "query": { "any": [{ "phrase": "are you AI" }, { "phrase": "are you a robot" }] } }
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({query: {any: [{phrase: 'are you AI'}, {phrase: 'are you a robot'}]}})
};
fetch('https://api.teamfollowup.ai/api/call-history/transcript-search', 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/call-history/transcript-search",
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([
'query' => [
'any' => [
[
'phrase' => 'are you AI'
],
[
'phrase' => 'are you a robot'
]
]
]
]),
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/call-history/transcript-search"
payload := strings.NewReader("{\n \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\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/call-history/transcript-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/call-history/transcript-search")
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 \"query\": {\n \"any\": [\n {\n \"phrase\": \"are you AI\"\n },\n {\n \"phrase\": \"are you a robot\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"results": [
{
"recordId": "record-example",
"recordIdType": "string",
"callId": "call-example",
"contactId": "contact-example",
"referenceNotes": [],
"recordedAtUTC": null,
"durationSeconds": 153,
"excerpts": [
{
"speaker": "lead",
"sourcePart": "primary",
"text": "Wait, are you AI?",
"notes": []
}
],
"evidenceTruncated": false
}
],
"page": {
"nextCursor": null,
"budgetLimited": false,
"staleCandidatesOmitted": 0
},
"count": null,
"corpus": {
"generation": "generation-example",
"consistency": "eventual",
"historicalBackfillComplete": true,
"observedAt": "2026-10-04T00:00:00.000Z",
"coverage": null
}
}
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_INVALID_CURSOR",
"message": "Invalid or expired transcript search cursor. Start a new search."
}{
"success": false,
"error": "Unauthorized",
"message": "Authentication required."
}{
"success": false,
"error": "Forbidden",
"message": "You do not have access to this project."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_REQUEST_TOO_LARGE",
"message": "Transcript search requests must fit within 32 KiB."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_INVALID_QUERY",
"message": "Invalid transcript search query or filters."
}{
"success": false,
"error": "TooManyRequests",
"message": "Too many requests, please try again later."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_UNAVAILABLE",
"message": "Transcript search is unavailable. Try again later."
}{
"success": false,
"error": "TRANSCRIPT_SEARCH_TIMEOUT",
"message": "Transcript search exceeded its time limit. Narrow the query and try again."
}Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Body
application/json
Structured literal query and optional filters. Maximum 32 KiB UTF-8 JSON.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Available options:
any, lead Required string length:
1 - 256Required string length:
1 - 256Pattern:
^\d{4}-\d{2}-\d{2}$Pattern:
^\d{4}-\d{2}-\d{2}$Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
1 <= x <= 50Required string length:
1 - 8192Available options:
none, lower_bound, exact ⌘I
