POST
/
voiceai
/
sendcall
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

x-api-key
string
required

Your Api Key

Body

Make a phone call from agent

phone_number
number
required

The phone number to be called.

agentId
number
required

Agent id which will initiate the outbound call

from_phone_number
string
required

Phone number of the sender default value is internal

Response

response
array