Hi Team,
Hope you all safe and healthy…!
I need to attach the playable audio while creating a call log in contacts.
Am having audio in the form of url.
For this I referred a link from our community (embed-iframe-call-recording).
While executing this curl am getting 404 error.
You can recommend me any other alternate way to do this as well.
Please help me out of this.
curl -X POST \
'https://arbaan.freshsales.io/api/cti_phone_calls' \
-H 'Authorization: Token token=XXXXXXXXXXXXXXXXXXXXXXX' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'content-type: multipart/form-data;boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F 'phone_call=
{
"call_direction": true,
"targetable_type":"Contact",
"number":"9999999999",
"user_id":”123”,
"source":"CTICOMPANYNAME",
"targetable": {
"id": "9",
"first_name": "Jane",
"last_name":"Sampleton (sample)",
"work_number ":"5304915427",
"mobile_number ":"11919457004"
},
"note": {
"description": "Sample note123"
}
}' \
-F 'file=@/Users/Admin/Downloads/SampleAudio.mp3'