Place a browser playground call
const url = 'https://api.pingram.io/voice/browser-call';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"config":{"type":"script","steps":[{"verb":"Say","text":"example"}],"voicemailAction":"hangup","voicemailMessage":"example","stream":{"audio":true,"transcript":"single"},"privacy":{"record":true,"transcript":"single"}},"variables":{"additionalProperty":"example"},"direction":"inbound"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pingram.io/voice/browser-call \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "config": { "type": "script", "steps": [ { "verb": "Say", "text": "example" } ], "voicemailAction": "hangup", "voicemailMessage": "example", "stream": { "audio": true, "transcript": "single" }, "privacy": { "record": true, "transcript": "single" } }, "variables": { "additionalProperty": "example" }, "direction": "inbound" }'Place a browser playground call. Script calls use POST /voice/call.
Authorizations
Request Bodyrequired
object
object
One spoken line.
object
What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue.
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue.
Speech-to-speech block shared by inbound and outbound agent calls.
object
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
Transfer the caller to a phone number.
object
Transfer the live call to one of destinations.
Numbers the agent can transfer to. Set a condition on each when there is more than one.
object
E.164 number to transfer the caller to.
When the model should choose this number. Required when more than one destination is set.
Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
builtin:soft-piano, builtin:calm, builtin:bright, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why.
Let the agent send keypad tones.
object
Send DTMF keypad tones during the call.
Let the agent hang up.
object
End the call after saying goodbye.
Look up the current weather for a city.
object
Current weather for a city the caller names.
Call an HTTPS webhook from the conversation.
object
Invoke an HTTPS webhook when the model calls this tool.
Function name the model calls.
When the model should use this tool.
JSON Schema for the arguments the model passes.
object
HTTPS webhook invoked when the model calls this tool during a call.
Spoken before the webhook when this turn has not spoken yet.
Wait this many seconds, then speak slowSpeech if the webhook is still running.
Spoken once when the webhook is still running after slowSpeechAfterSeconds.
Load tools from a remote MCP server.
object
Connect a remote MCP server and use its tools.
MCP server URL.
Optional name shown in the dashboard.
Answer from uploaded documents.
object
Search uploaded documents during the call.
Files the agent can search.
object
Opaque identifier for an uploaded knowledge document.
File name shown to the agent and in the dashboard.
File size in bytes.
object
Placeholder name used inside {{name}} tags.
What the value means. Passed to the model with the filled value.
Used when the call does not pass this variable.
Turn-taking and call limits. Each omitted field uses its default.
object
How the agent decides the caller has finished speaking. Default: semantic.
Silence before the agent treats the turn as finished, in milliseconds. Default: 500.
Whether the caller can interrupt the agent. Default: true.
How long the caller must speak to count as an interruption, in milliseconds. Default: 300.
Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30.
Maximum call length in seconds. Default: 600.
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
The customer’s websocket is the application side. No script and no agent.
object
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Dial the destination, then SIP-transfer the answered call to ElevenLabs at the from number.
object
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
One spoken line.
object
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
Speech-to-speech block shared by inbound and outbound agent calls.
object
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
object
Which realtime model processes the call.
How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
Maximum length of one reply, in tokens. Default: 4096.
Transfer the caller to a phone number.
object
Transfer the live call to one of destinations.
Numbers the agent can transfer to. Set a condition on each when there is more than one.
object
E.164 number to transfer the caller to.
When the model should choose this number. Required when more than one destination is set.
Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
builtin:soft-piano, builtin:calm, builtin:bright, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why.
Let the agent send keypad tones.
object
Send DTMF keypad tones during the call.
Let the agent hang up.
object
End the call after saying goodbye.
Look up the current weather for a city.
object
Current weather for a city the caller names.
Call an HTTPS webhook from the conversation.
object
Invoke an HTTPS webhook when the model calls this tool.
Function name the model calls.
When the model should use this tool.
JSON Schema for the arguments the model passes.
object
HTTPS webhook invoked when the model calls this tool during a call.
Spoken before the webhook when this turn has not spoken yet.
Wait this many seconds, then speak slowSpeech if the webhook is still running.
Spoken once when the webhook is still running after slowSpeechAfterSeconds.
Load tools from a remote MCP server.
object
Connect a remote MCP server and use its tools.
MCP server URL.
Optional name shown in the dashboard.
Answer from uploaded documents.
object
Search uploaded documents during the call.
Files the agent can search.
object
Opaque identifier for an uploaded knowledge document.
File name shown to the agent and in the dashboard.
File size in bytes.
object
Placeholder name used inside {{name}} tags.
What the value means. Passed to the model with the filled value.
Used when the call does not pass this variable.
Turn-taking and call limits. Each omitted field uses its default.
object
How the agent decides the caller has finished speaking. Default: semantic.
Silence before the agent treats the turn as finished, in milliseconds. Default: 500.
Whether the caller can interrupt the agent. Default: true.
How long the caller must speak to count as an interruption, in milliseconds. Default: 300.
Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30.
Maximum call length in seconds. Default: 600.
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
builtin:soft-piano, builtin:calm, builtin:bright, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
Spoken to the person who answers, before the caller is connected.
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.
object
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
object
The customer’s websocket is the application side. No script and no agent.
object
What the call socket carries. Omitted means the socket is open and carries neither.
object
Live call audio. Omitted means off.
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Omitted record and transcript mean both are off.
object
Single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
Optional per-call {{variable}} overrides for browser playground.
object
Inbound speaks the greeting. outbound speaks the opener. Omitted means outbound.
Responses
200
Successful response
object
Examplegenerated
{ "trackingId": "example", "websocket": "example", "token": "example"}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}