cURL
Python
JavaScript
PHP
Go
Java
curl --request POST \
--url https://svalync.com/api/voiceai/sendcall \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"phone_number": 123,
"agentId": 123,
"from_phone_number": "<string>"
}'
{
"response" : [
{
"agent" : "<string>" ,
"userId" : "<string>" ,
"phoneNumber" : "<string>" ,
"fromPhoneNumber" : "<string>" ,
"currentDateTime" : "<string>" ,
"callDirection" : "<string>" ,
"userData" : { }
}
]
}
Authorization
Body
Make a phone call from agent
The phone number to be called.
Agent id which will initiate the outbound call
Phone number of the sender default value is internal
Response
ID of the agent handling the call.
The user identifier associated with the call.
The phone number associated with the call.
The originating phone number of the call.
The timestamp representing the current date and time.
The direction of the call (e.g., INBOUND or OUTBOUND).
Additional user data associated with the call.