Create sub organization
curl --request POST \
--url https://api.callers.ai/organization/sub-organization \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"retryAttemptsMaxValue": 5.5,
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"permissions": [],
"webhooks": [
{
"url": "<string>",
"events": [
"POST_PROCESSING_FINISHED:INTERESTED",
"POST_PROCESSING_FINISHED:NOT_INTERESTED",
"POST_PROCESSING_FINISHED:CALL_ME_LATER",
"POST_PROCESSING_FINISHED:WRONG_NUMBER",
"POST_PROCESSING_FINISHED:DO_NOT_CALL"
]
}
]
}
'import requests
url = "https://api.callers.ai/organization/sub-organization"
payload = {
"name": "<string>",
"retryAttemptsMaxValue": 5.5,
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"permissions": [],
"webhooks": [
{
"url": "<string>",
"events": ["POST_PROCESSING_FINISHED:INTERESTED", "POST_PROCESSING_FINISHED:NOT_INTERESTED", "POST_PROCESSING_FINISHED:CALL_ME_LATER", "POST_PROCESSING_FINISHED:WRONG_NUMBER", "POST_PROCESSING_FINISHED:DO_NOT_CALL"]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
retryAttemptsMaxValue: 5.5,
limits: {incomingCalls: 1, outgoingContacts: 1},
permissions: [],
webhooks: [
{
url: '<string>',
events: [
'POST_PROCESSING_FINISHED:INTERESTED',
'POST_PROCESSING_FINISHED:NOT_INTERESTED',
'POST_PROCESSING_FINISHED:CALL_ME_LATER',
'POST_PROCESSING_FINISHED:WRONG_NUMBER',
'POST_PROCESSING_FINISHED:DO_NOT_CALL'
]
}
]
})
};
fetch('https://api.callers.ai/organization/sub-organization', 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.callers.ai/organization/sub-organization",
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([
'name' => '<string>',
'retryAttemptsMaxValue' => 5.5,
'limits' => [
'incomingCalls' => 1,
'outgoingContacts' => 1
],
'permissions' => [
],
'webhooks' => [
[
'url' => '<string>',
'events' => [
'POST_PROCESSING_FINISHED:INTERESTED',
'POST_PROCESSING_FINISHED:NOT_INTERESTED',
'POST_PROCESSING_FINISHED:CALL_ME_LATER',
'POST_PROCESSING_FINISHED:WRONG_NUMBER',
'POST_PROCESSING_FINISHED:DO_NOT_CALL'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.callers.ai/organization/sub-organization"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.callers.ai/organization/sub-organization")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.callers.ai/organization/sub-organization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"status": "error",
"message": "<string>",
"data": [
{}
]
}{
"status": "error",
"message": "<string>"
}Organizations
Create sub organization
Creates sub organization under the main organization associated with the API key
POST
/
organization
/
sub-organization
Create sub organization
curl --request POST \
--url https://api.callers.ai/organization/sub-organization \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"retryAttemptsMaxValue": 5.5,
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"permissions": [],
"webhooks": [
{
"url": "<string>",
"events": [
"POST_PROCESSING_FINISHED:INTERESTED",
"POST_PROCESSING_FINISHED:NOT_INTERESTED",
"POST_PROCESSING_FINISHED:CALL_ME_LATER",
"POST_PROCESSING_FINISHED:WRONG_NUMBER",
"POST_PROCESSING_FINISHED:DO_NOT_CALL"
]
}
]
}
'import requests
url = "https://api.callers.ai/organization/sub-organization"
payload = {
"name": "<string>",
"retryAttemptsMaxValue": 5.5,
"limits": {
"incomingCalls": 1,
"outgoingContacts": 1
},
"permissions": [],
"webhooks": [
{
"url": "<string>",
"events": ["POST_PROCESSING_FINISHED:INTERESTED", "POST_PROCESSING_FINISHED:NOT_INTERESTED", "POST_PROCESSING_FINISHED:CALL_ME_LATER", "POST_PROCESSING_FINISHED:WRONG_NUMBER", "POST_PROCESSING_FINISHED:DO_NOT_CALL"]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
retryAttemptsMaxValue: 5.5,
limits: {incomingCalls: 1, outgoingContacts: 1},
permissions: [],
webhooks: [
{
url: '<string>',
events: [
'POST_PROCESSING_FINISHED:INTERESTED',
'POST_PROCESSING_FINISHED:NOT_INTERESTED',
'POST_PROCESSING_FINISHED:CALL_ME_LATER',
'POST_PROCESSING_FINISHED:WRONG_NUMBER',
'POST_PROCESSING_FINISHED:DO_NOT_CALL'
]
}
]
})
};
fetch('https://api.callers.ai/organization/sub-organization', 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.callers.ai/organization/sub-organization",
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([
'name' => '<string>',
'retryAttemptsMaxValue' => 5.5,
'limits' => [
'incomingCalls' => 1,
'outgoingContacts' => 1
],
'permissions' => [
],
'webhooks' => [
[
'url' => '<string>',
'events' => [
'POST_PROCESSING_FINISHED:INTERESTED',
'POST_PROCESSING_FINISHED:NOT_INTERESTED',
'POST_PROCESSING_FINISHED:CALL_ME_LATER',
'POST_PROCESSING_FINISHED:WRONG_NUMBER',
'POST_PROCESSING_FINISHED:DO_NOT_CALL'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.callers.ai/organization/sub-organization"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.callers.ai/organization/sub-organization")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.callers.ai/organization/sub-organization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"retryAttemptsMaxValue\": 5.5,\n \"limits\": {\n \"incomingCalls\": 1,\n \"outgoingContacts\": 1\n },\n \"permissions\": [],\n \"webhooks\": [\n {\n \"url\": \"<string>\",\n \"events\": [\n \"POST_PROCESSING_FINISHED:INTERESTED\",\n \"POST_PROCESSING_FINISHED:NOT_INTERESTED\",\n \"POST_PROCESSING_FINISHED:CALL_ME_LATER\",\n \"POST_PROCESSING_FINISHED:WRONG_NUMBER\",\n \"POST_PROCESSING_FINISHED:DO_NOT_CALL\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"status": "error",
"message": "<string>",
"data": [
{}
]
}{
"status": "error",
"message": "<string>"
}Authorizations
Headers
Optional sub organization ID. Must belong to your main organization API key.
Body
application/json
Minimum string length:
1Required range:
1 < x < 10Show child attributes
Show child attributes
Available options:
permission_enable_voip_and_phones, permission_enable_manage_members, permission_enable_analytics, permission_enable_api_keys, permission_enable_twilio_integration, permission_enable_cal_com_integration, permission_enable_slack_integration, permission_enable_sip_integration, permission_enable_telnyx_integration, permission_enable_whatsapp_integration, permission_enable_limit_concurrent_calls, permission_enable_view_and_select_phone_numbers, permission_enable_scan_spam_phone_numbers, permission_enable_sensitive_content_restriction, permission_enable_studio_chat, permission_enable_mfa Show child attributes
Show child attributes
Response
Sub organization Created successfully.
⌘I