Official VoxPria SDKs – Coming Soon
Pre-built libraries for Python, Node.js, PHP, Ruby, Java, and C#. While we finalize our SDKs, you can use our REST API directly – it’s simple and works with any language.
π οΈ SDK Development Status
We’re actively developing official SDKs for all major programming languages
π» Use the REST API Directly
While we build the SDKs, you can use our REST API from any language. Here are examples:
π Python Example
import requests
# Trigger an AI voice call
url = "https://api.voxpria.com/api/v1/calls"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"phoneNumber": "+14155551234",
"agentId": "agent_abc123",
"engine": "elevenlabs"
}
response = requests.post(url, json=payload, headers=headers)
call = response.json()
print(f"Call ID: {call['data']['id']}")
print(f"Status: {call['data']['status']}")
π¦ Node.js Example
const fetch = require('node-fetch');
// Trigger an AI voice call
async function makeCall() {
const response = await fetch('https://api.voxpria.com/api/v1/calls', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phoneNumber: '+14155551234',
agentId: 'agent_abc123',
engine: 'elevenlabs'
})
});
const call = await response.json();
console.log(`Call ID: ${call.data.id}`);
console.log(`Status: ${call.data.status}`);
}
makeCall();
π PHP Example
'+14155551234',
'agentId' => 'agent_abc123',
'engine' => 'elevenlabs'
]));
$response = curl_exec($ch);
$call = json_decode($response, true);
echo "Call ID: " . $call['data']['id'] . "n";
echo "Status: " . $call['data']['status'] . "n";
curl_close($ch);
π Ruby Example
require 'net/http'
require 'json'
# Trigger an AI voice call
uri = URI('https://api.voxpria.com/api/v1/calls')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
request['Content-Type'] = 'application/json'
request.body = {
phoneNumber: '+14155551234',
agentId: 'agent_abc123',
engine: 'elevenlabs'
}.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
call = JSON.parse(response.body)
puts "Call ID: #{call['data']['id']}"
puts "Status: #{call['data']['status']}"
β Java Example
import java.net.http.*;
import java.net.URI;
import org.json.*;
// Trigger an AI voice call
public class VoxPriaExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
JSONObject payload = new JSONObject();
payload.put("phoneNumber", "+14155551234");
payload.put("agentId", "agent_abc123");
payload.put("engine", "elevenlabs");
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.voxpria.com/api/v1/calls"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload.toString()))
.build();
HttpResponse response = client.send(request,
HttpResponse.BodyHandlers.ofString());
JSONObject call = new JSONObject(response.body())
.getJSONObject("data");
System.out.println("Call ID: " + call.getString("id"));
System.out.println("Status: " + call.getString("status"));
}
}
# C# Example
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
// Trigger an AI voice call
class Program
{
static async Task Main()
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
var payload = new
{
phoneNumber = "+14155551234",
agentId = "agent_abc123",
engine = "elevenlabs"
};
var json = JsonSerializer.Serialize(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync(
"https://api.voxpria.com/api/v1/calls",
content
);
var responseBody = await response.Content.ReadAsStringAsync();
var call = JsonSerializer.Deserialize(responseBody);
Console.WriteLine($"Call ID: {call.GetProperty("data").GetProperty("id")}");
Console.WriteLine($"Status: {call.GetProperty("data").GetProperty("status")}");
}
}
Get Notified When SDKs Launch
Sign up for early access and be the first to know when we release official SDKs
