GUIDE DE DÉMARRAGE RAPIDE
Créez votre premier agent vocal IA en 5 minutes
Démarrez avec l’API VoxPria — de la génération de votre clé API à votre premier appel téléphonique propulsé par l’IA. Pas de configuration complexe, pas d’intégration interminable.
Étape 1 : générez votre clé API
Votre clé API authentifie toutes les requêtes envoyées à VoxPria
1. Connectez-vous à votre tableau de bord VoxPria
2. Accédez à l’onglet Paramètres → Développeur
3. Cliquez sur « Créer une nouvelle clé API »
4. Nommez votre clé (par exemple, « API de production »)
5. Sélectionnez les portées (autorisations) pour la clé
6. Copiez et conservez votre clé en lieu sûr
Avertissement de sécurité : conservez votre clé API en lieu sûr. Elle donne un accès complet à votre compte et ne peut pas être récupérée une fois fermée.
Format de votre clé API
vpk_live_abc123xyz789def456ghi012jkl345
Les clés commençant par vpk_test_ sont destinées aux tests. Utilisez vpk_live_ pour la production.
Étape 2 : effectuez votre premier appel API
Testez votre connexion avec un appel simple pour déclencher un agent vocal IA
🐚 Utiliser cURL
curl -X POST "https://api.voxpria.com/api/v1/calls" \
-H "Authorization: Bearer vpk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+14155551234",
"agentId": "agent_abc123",
"engine": "elevenlabs"
}'
🧩 Utiliser C#
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer vpk_live_YOUR_API_KEY");
var payload = new {
phoneNumber = "+14155551234",
agentId = "agent_abc123",
engine = "elevenlabs"
};
var json = JsonSerializer.Serialize(payload);
var response = await client.PostAsync(
"https://api.voxpria.com/api/v1/calls",
new StringContent(json, Encoding.UTF8, "application/json")
);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
🐘 Utiliser PHP
"+14155551234",
"agentId" => "agent_abc123",
"engine" => "elevenlabs"
];
$ch = curl_init("https://api.voxpria.com/api/v1/calls");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer vpk_live_YOUR_API_KEY",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
🐍 Utiliser Python
import requests
url = "https://api.voxpria.com/api/v1/calls"
headers = {
"Authorization": "Bearer vpk_live_YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"phoneNumber": "+14155551234",
"agentId": "agent_abc123",
"engine": "elevenlabs"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
📦 Utiliser Node.js
const fetch = require('node-fetch');
const response = await fetch('https://api.voxpria.com/api/v1/calls', {
method: 'POST',
headers: {
'Authorization': 'Bearer vpk_live_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);
Étape 3 : traitez la réponse
VoxPria retourne une réponse JSON avec les détails et le statut de l’appel
Réponse de succès (200 OK)
{
"success": true,
"data": {
"id": "call_abc123xyz",
"phoneNumber": "+14155551234",
"agentId": "agent_abc123",
"status": "initiated",
"engine": "elevenlabs",
"createdAt": "2026-02-02T14:30:00Z"
}
}
Valeurs du statut d’appel :
initiated– L’appel est en cours de compositionin_progress– L’appel est actifcompleted– L’appel est terminéfailed– L’appel a échoué
Succès ! Vous avez déclenché votre premier appel vocal IA. Consultez votre tableau de bord pour l’enregistrement de l’appel et la transcription.
🎯 Et maintenant ?
Maintenant que vous avez effectué votre premier appel, découvrez ces ressources
Prêt à créer quelque chose d’extraordinaire ?
Commencez à créer des applications vocales propulsées par l’IA avec 10 $ de crédit gratuit
🎉 10 $ de crédit gratuit • Aucune carte de crédit requise • Accès complet à l’API
