Test Dispositions API
Test all dispositions linked to an agent against a transcript to preview results before live calls.
curl --request POST \
--url https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.",
"call_date": "2026-04-01T10:00:00Z"
}
'import requests
url = "https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test"
payload = {
"transcript": "Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.",
"call_date": "2026-04-01T10:00:00Z"
}
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({
transcript: 'Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.',
call_date: '2026-04-01T10:00:00Z'
})
};
fetch('https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test', 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.bolna.ai/v2/agent/{agent_id}/dispositions/test",
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([
'transcript' => 'Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.',
'call_date' => '2026-04-01T10:00:00Z'
]),
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.bolna.ai/v2/agent/{agent_id}/dispositions/test"
payload := strings.NewReader("{\n \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\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.bolna.ai/v2/agent/{agent_id}/dispositions/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test")
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 \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"extracted_data": {
"Lead Quality": {
"Call Outcome": {
"subjective": "Customer expressed strong interest and asked about enterprise pricing.",
"objective": "interested"
}
},
"Escalation": {
"Agent Handover Needed": {
"subjective": "",
"objective": "No"
}
}
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}extracted_data is grouped by category and disposition name, in the same format as post-call execution data.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The agent whose dispositions will be evaluated.
Body
Transcript to evaluate against the agent's dispositions.
Request body for testing an agent's dispositions against a transcript.
The call transcript to run dispositions against.
50000"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing."
Optional ISO 8601 date/datetime string for temporal context.
"2026-04-01T10:00:00Z"
Response
Grouped disposition results
Grouped disposition results in the same format as post-call execution data.
Results grouped by category and disposition name. Each leaf contains subjective (free-text) and/or objective (pre-defined value) fields.
Show child attributes
Show child attributes
{
"Lead Quality": {
"Call Outcome": {
"subjective": "Customer expressed strong interest and asked about enterprise pricing.",
"objective": "interested"
}
},
"Escalation": {
"Agent Handover Needed": { "subjective": "", "objective": "No" }
}
}
Was this page helpful?
curl --request POST \
--url https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transcript": "Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.",
"call_date": "2026-04-01T10:00:00Z"
}
'import requests
url = "https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test"
payload = {
"transcript": "Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.",
"call_date": "2026-04-01T10:00:00Z"
}
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({
transcript: 'Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.',
call_date: '2026-04-01T10:00:00Z'
})
};
fetch('https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test', 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.bolna.ai/v2/agent/{agent_id}/dispositions/test",
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([
'transcript' => 'Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.',
'call_date' => '2026-04-01T10:00:00Z'
]),
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.bolna.ai/v2/agent/{agent_id}/dispositions/test"
payload := strings.NewReader("{\n \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\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.bolna.ai/v2/agent/{agent_id}/dispositions/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bolna.ai/v2/agent/{agent_id}/dispositions/test")
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 \"transcript\": \"Agent: Hi, how can I help you today? Customer: I am interested in your enterprise plan and would like to know more about pricing.\",\n \"call_date\": \"2026-04-01T10:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"extracted_data": {
"Lead Quality": {
"Call Outcome": {
"subjective": "Customer expressed strong interest and asked about enterprise pricing.",
"objective": "interested"
}
},
"Escalation": {
"Agent Handover Needed": {
"subjective": "",
"objective": "No"
}
}
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}
