Config
Get partner configuration
Returns the current partner configuration including webhook endpoints, telephony setup, agent limits, and allowed voices/languages. Sensitive values are masked.
GET
/
config
Get partner configuration
curl --request GET \
--url https://api.vocobase.com/api/v2/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/config', 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.vocobase.com/api/v2/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vocobase.com/api/v2/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"name": "acme-corp",
"display_name": "Acme Corporation",
"agent_limit": 10,
"current_agent_count": 3,
"allowed_voices": [
"voice-id-1",
"voice-id-2"
],
"allowed_languages": [
"en",
"hi",
"es"
],
"status": "active",
"webhook": {
"configured": true,
"url": "https://example.com/webhook",
"secret": "****"
},
"webhooks": [
{
"id": "12345678-abcd-1234-abcd-123456789012",
"label": "prod",
"url": "https://example.com/webhooks/vocobase",
"enabled": true,
"last_delivery_at": "2026-05-25T10:30:00.000Z",
"last_delivery_status": 200,
"created_at": "2026-05-25T10:00:00.000Z",
"updated_at": "2026-05-25T10:30:00.000Z"
}
],
"allowed_telephony_providers": [
"twilio",
"exotel"
],
"telephony": {
"twilio": {
"configured": true,
"account_sid": "conf****ured",
"from_number": "+14155551234"
},
"mcube": {
"configured": false,
"exe_number": null
},
"exotel": {
"configured": true,
"account_sid": "conf****ured",
"subdomain": "api.exotel.com",
"caller_id": "+919876543210",
"applet_id": "app_****"
},
"plivo": {
"configured": false,
"auth_id": null,
"from_number": null
},
"vobiz": {
"configured": false,
"auth_id": null,
"from_number": null
}
},
"created_at": "2025-01-15T10:30:00.000Z"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}Previous
Set or update the legacy default webhook URLLegacy compatibility endpoint. Creates or replaces the reserved `default` webhook endpoint used by older integrations. A new webhook secret is generated on each call. New integrations should use `POST /config/webhooks` to create labeled endpoints.
Next
⌘I
Get partner configuration
curl --request GET \
--url https://api.vocobase.com/api/v2/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/config', 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.vocobase.com/api/v2/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vocobase.com/api/v2/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"name": "acme-corp",
"display_name": "Acme Corporation",
"agent_limit": 10,
"current_agent_count": 3,
"allowed_voices": [
"voice-id-1",
"voice-id-2"
],
"allowed_languages": [
"en",
"hi",
"es"
],
"status": "active",
"webhook": {
"configured": true,
"url": "https://example.com/webhook",
"secret": "****"
},
"webhooks": [
{
"id": "12345678-abcd-1234-abcd-123456789012",
"label": "prod",
"url": "https://example.com/webhooks/vocobase",
"enabled": true,
"last_delivery_at": "2026-05-25T10:30:00.000Z",
"last_delivery_status": 200,
"created_at": "2026-05-25T10:00:00.000Z",
"updated_at": "2026-05-25T10:30:00.000Z"
}
],
"allowed_telephony_providers": [
"twilio",
"exotel"
],
"telephony": {
"twilio": {
"configured": true,
"account_sid": "conf****ured",
"from_number": "+14155551234"
},
"mcube": {
"configured": false,
"exe_number": null
},
"exotel": {
"configured": true,
"account_sid": "conf****ured",
"subdomain": "api.exotel.com",
"caller_id": "+919876543210",
"applet_id": "app_****"
},
"plivo": {
"configured": false,
"auth_id": null,
"from_number": null
},
"vobiz": {
"configured": false,
"auth_id": null,
"from_number": null
}
},
"created_at": "2025-01-15T10:30:00.000Z"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}