Dispositions
Bulk Create Dispositions API
Atomically create and link multiple dispositions to an agent in a single request.
POST
/
dispositions
/
bulk
cURL
curl --request POST \
--url https://api.bolna.ai/dispositions/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispositions": [
{
"name": "Agent Handover Needed",
"question": "Did the customer explicitly ask to speak with a human agent?",
"category": "Escalation",
"system_prompt": "<string>",
"model": "gpt-4.1-mini",
"is_subjective": false,
"is_objective": false,
"subjective_type": "text",
"subjective_type_config": {
"pattern": "^\\d{10}$",
"description": "10-digit phone number"
},
"objective_options": [
{
"value": "interested",
"condition": "Customer expressed genuine interest and agreed to a next step",
"sub_options": "<array>"
}
]
}
]
}
'import requests
url = "https://api.bolna.ai/dispositions/bulk"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispositions": [
{
"name": "Agent Handover Needed",
"question": "Did the customer explicitly ask to speak with a human agent?",
"category": "Escalation",
"system_prompt": "<string>",
"model": "gpt-4.1-mini",
"is_subjective": False,
"is_objective": False,
"subjective_type": "text",
"subjective_type_config": {
"pattern": "^\d{10}$",
"description": "10-digit phone number"
},
"objective_options": [
{
"value": "interested",
"condition": "Customer expressed genuine interest and agreed to a next step",
"sub_options": "<array>"
}
]
}
]
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dispositions: [
{
name: 'Agent Handover Needed',
question: 'Did the customer explicitly ask to speak with a human agent?',
category: 'Escalation',
system_prompt: '<string>',
model: 'gpt-4.1-mini',
is_subjective: false,
is_objective: false,
subjective_type: 'text',
subjective_type_config: {pattern: '^\d{10}$', description: '10-digit phone number'},
objective_options: [
{
value: 'interested',
condition: 'Customer expressed genuine interest and agreed to a next step',
sub_options: '<array>'
}
]
}
]
})
};
fetch('https://api.bolna.ai/dispositions/bulk', 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/dispositions/bulk",
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([
'agent_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dispositions' => [
[
'name' => 'Agent Handover Needed',
'question' => 'Did the customer explicitly ask to speak with a human agent?',
'category' => 'Escalation',
'system_prompt' => '<string>',
'model' => 'gpt-4.1-mini',
'is_subjective' => false,
'is_objective' => false,
'subjective_type' => 'text',
'subjective_type_config' => [
'pattern' => '^\\d{10}$',
'description' => '10-digit phone number'
],
'objective_options' => [
[
'value' => 'interested',
'condition' => 'Customer expressed genuine interest and agreed to a next step',
'sub_options' => '<array>'
]
]
]
]
]),
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/dispositions/bulk"
payload := strings.NewReader("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\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.bolna.ai/dispositions/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bolna.ai/dispositions/bulk")
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 \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Dispositions created successfully",
"ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"7cb91a23-1234-4321-b2fc-1c963f11bde4"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Use bulk create when setting up a new agent with a complete set of dispositions, or when importing a disposition configuration from another source. Either all dispositions are created and linked, or none are — partial results are not possible.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Bulk-create dispositions for an agent.
Response
Dispositions created successfully
Response returned after a successful bulk-create. The ids array preserves the input order.
Was this page helpful?
Previous
Update DispositionUpdate a disposition. When scoped to an agent, shared dispositions are copied before editing to protect other agents.
Next
⌘I
cURL
curl --request POST \
--url https://api.bolna.ai/dispositions/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispositions": [
{
"name": "Agent Handover Needed",
"question": "Did the customer explicitly ask to speak with a human agent?",
"category": "Escalation",
"system_prompt": "<string>",
"model": "gpt-4.1-mini",
"is_subjective": false,
"is_objective": false,
"subjective_type": "text",
"subjective_type_config": {
"pattern": "^\\d{10}$",
"description": "10-digit phone number"
},
"objective_options": [
{
"value": "interested",
"condition": "Customer expressed genuine interest and agreed to a next step",
"sub_options": "<array>"
}
]
}
]
}
'import requests
url = "https://api.bolna.ai/dispositions/bulk"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispositions": [
{
"name": "Agent Handover Needed",
"question": "Did the customer explicitly ask to speak with a human agent?",
"category": "Escalation",
"system_prompt": "<string>",
"model": "gpt-4.1-mini",
"is_subjective": False,
"is_objective": False,
"subjective_type": "text",
"subjective_type_config": {
"pattern": "^\d{10}$",
"description": "10-digit phone number"
},
"objective_options": [
{
"value": "interested",
"condition": "Customer expressed genuine interest and agreed to a next step",
"sub_options": "<array>"
}
]
}
]
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dispositions: [
{
name: 'Agent Handover Needed',
question: 'Did the customer explicitly ask to speak with a human agent?',
category: 'Escalation',
system_prompt: '<string>',
model: 'gpt-4.1-mini',
is_subjective: false,
is_objective: false,
subjective_type: 'text',
subjective_type_config: {pattern: '^\d{10}$', description: '10-digit phone number'},
objective_options: [
{
value: 'interested',
condition: 'Customer expressed genuine interest and agreed to a next step',
sub_options: '<array>'
}
]
}
]
})
};
fetch('https://api.bolna.ai/dispositions/bulk', 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/dispositions/bulk",
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([
'agent_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dispositions' => [
[
'name' => 'Agent Handover Needed',
'question' => 'Did the customer explicitly ask to speak with a human agent?',
'category' => 'Escalation',
'system_prompt' => '<string>',
'model' => 'gpt-4.1-mini',
'is_subjective' => false,
'is_objective' => false,
'subjective_type' => 'text',
'subjective_type_config' => [
'pattern' => '^\\d{10}$',
'description' => '10-digit phone number'
],
'objective_options' => [
[
'value' => 'interested',
'condition' => 'Customer expressed genuine interest and agreed to a next step',
'sub_options' => '<array>'
]
]
]
]
]),
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/dispositions/bulk"
payload := strings.NewReader("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\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.bolna.ai/dispositions/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bolna.ai/dispositions/bulk")
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 \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dispositions\": [\n {\n \"name\": \"Agent Handover Needed\",\n \"question\": \"Did the customer explicitly ask to speak with a human agent?\",\n \"category\": \"Escalation\",\n \"system_prompt\": \"<string>\",\n \"model\": \"gpt-4.1-mini\",\n \"is_subjective\": false,\n \"is_objective\": false,\n \"subjective_type\": \"text\",\n \"subjective_type_config\": {\n \"pattern\": \"^\\\\d{10}$\",\n \"description\": \"10-digit phone number\"\n },\n \"objective_options\": [\n {\n \"value\": \"interested\",\n \"condition\": \"Customer expressed genuine interest and agreed to a next step\",\n \"sub_options\": \"<array>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Dispositions created successfully",
"ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"7cb91a23-1234-4321-b2fc-1c963f11bde4"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}
