Create a call with inline configuration
curl --request POST \
--url https://api.omnia-voice.com/api/v1/calls/inline \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"systemPrompt": "<string>",
"voice": "Mark",
"language": "en"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({systemPrompt: '<string>', voice: 'Mark', language: 'en'})
};
fetch('https://api.omnia-voice.com/api/v1/calls/inline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.omnia-voice.com/api/v1/calls/inline"
payload = {
"systemPrompt": "<string>",
"voice": "Mark",
"language": "en"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"websocketUrl": "<string>",
"status": "<string>",
"connectionType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Calls
Create a call with inline configuration
Run a call without a saved agent — the whole configuration travels in the request. Nothing is stored and nothing is reused.
Use it for per-user personas, generated agents, or testing a prompt without leaving a record behind. If the same configuration is used repeatedly, create a real agent instead: you gain version history, tool assignment, a phone number, corpora, and the dashboard.
POST
/
calls
/
inline
Create a call with inline configuration
curl --request POST \
--url https://api.omnia-voice.com/api/v1/calls/inline \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"systemPrompt": "<string>",
"voice": "Mark",
"language": "en"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({systemPrompt: '<string>', voice: 'Mark', language: 'en'})
};
fetch('https://api.omnia-voice.com/api/v1/calls/inline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.omnia-voice.com/api/v1/calls/inline"
payload = {
"systemPrompt": "<string>",
"voice": "Mark",
"language": "en"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"websocketUrl": "<string>",
"status": "<string>",
"connectionType": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Body
application/json
Which transport the returned websocketUrl is prepared for.
twilio / telnyx / plivo — carrier media streams, G.711 audio.
websocket — your own client; you choose the sample rates and codec.
webrtc — browser transport, normally reached through the SDK.
Any other value returns 400.
Available options:
twilio, telnyx, plivo, websocket, webrtc