Place Voice Test Call
(v2)POST
Places a test call to a voice connection, listens for its greeting, and returns the log of how the call went. The connection is marked verified when the agent answers and unverified otherwise. The request stays open for the length of the call.
curl -X POST "https://api.confident-ai.com/v2/voice-connections/{voiceConnectionId}/calls" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<VOICE-CONNECTION-LOG-ID>",
"createdAt": "2026-10-08T16:40:00.000Z",
"voiceConnectionId": "<VOICE-CONNECTION-ID>",
"voiceConnectionName": "Support line",
"source": "ping",
"sourceName": "support-goldens",
"testRunId": null,
"transport": "PHONE",
"address": "+14155550100",
"status": "ANSWERED",
"connectMs": 3200,
"durationMs": 9400,
"transcript": "Hi, thanks for calling. How can I help?",
"error": null,
"audioUrl": null
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/voice-connections/<VOICE-CONNECTION-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
voiceConnectionIdstringRequiredThe id of the voice connection.
Response
Place Voice Test Call succeeded.
successbooleanIndicates if the request was successful.
dataobjectA call placed to a voice connection.
Show 15 propertiesHide 15 properties
idstringThe id of the log.
createdAtstringWhen the call started, as an ISO 8601 timestamp.
voiceConnectionIdstringThe id of the voice connection that was called.
voiceConnectionNamestringThe name of the voice connection when the call was placed.
sourceenumWhat placed the call:
pingfor a test call,dataset_evaluationfor a call made while evaluating a dataset.Show 2 enum valuesHide 2 enum values
pingdataset_evaluation
sourceNamestringThe alias of the dataset that was evaluated, or an empty string for test calls.
testRunIdstring | nullThe id of the test run the call belongs to, or null for test calls.
transportenumHow Confident AI reaches your voice agent:
PHONEdials a phone number,SIPcalls a SIP address directly, andWEBRTCjoins a WebRTC session.Show 3 enum valuesHide 3 enum values
PHONESIPWEBRTC
addressstringThe number, sip: address or URL that was called.
statusenumHow the call ended:
ANSWEREDwhen your agent picked up,NO_ANSWERwhen nobody picked up in time,FAILEDwhen the call could not be placed.Show 3 enum valuesHide 3 enum values
ANSWEREDNO_ANSWERFAILED
connectMsnumber | nullMilliseconds until your agent answered or the stream opened, or null when it never did.
durationMsnumberHow long the call lasted, in milliseconds.
transcriptstring | nullFor test calls, what your agent said first. Null when nothing was transcribed.
errorstring | nullWhy the call did not connect, or null when it did.
audioUrlstring | nullA signed URL to the call audio, valid for one hour: the greeting for test calls and the full recording for evaluation calls. Null when no audio was recorded.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.