Hey Freshworks,
I am trying to use the API of manual call logging, I am able to send a valid request but the call it self is not logged in my account.
This is my reqeust:
curl --location --request POST ‘Freshworks’
–header ‘Authorization: Token token=09yXXXXXXXX’
–header ‘Content-Type: application/json’
–data-raw ‘{
“phone_call”: {
“call_direction”: true,
“targetable_type”: “contact”,
“targetable”: {
“id”: “16017065699”,
“first_name”: “וויסנטר בדיקה”,
“email”: “api@voicenter.com”,
"work_number ": “0527903511”,
"mobile_number ": “0722776772”
},
“user”: [
{
“id”: 16000014617,
“display_name”: “GUY MIZINSKI”,
“email”: “guy@octgroup.co.il”,
“is_active”: true
}
],
"note ": {
“description”: “Sample note”
},
“phone_calls”: {
“id”: 1,
“call_duration”: “14”,
“call_direction”: true,
“recording_duration”: 14,
“status”: “incoming Answered”,
“recording”: "https://cpanel.voicenter.co.il/CallsHistory/PlayRecord/2022061916331502463359186d8ab5f5-aws-Rojxp5aE-972544766469.mp3 ",
“conversation_time”: “2016-09-12T08:23:43Z”,
“cost”: 35,
“targetable”: {
“type”: “contact”,
“id”: 1
}
}
}
}’
This is my body:
{
"phone_call": {
"call_direction": true,
"targetable_type": "contact",
"targetable": {
"id": "16017065699",
"first_name": "וויסנטר בדיקה",
"email": "api@voicenter.com",
"work_number ": "0527903511",
"mobile_number ": "0722776772"
},
"user": [
{
"id": 16000014617,
"display_name": "GUY MIZINSKI",
"email": "guy@octgroup.co.il",
"is_active": true
}
],
"note ": {
"description": "Sample note"
},
"phone_calls": {
"id": 1,
"call_duration": "14",
"call_direction": true,
"recording_duration": 14,
"status": "incoming Answered",
"recording": "https://cpanel.voicenter.co.il/CallsHistory/PlayRecord/2022061916331502463359186d8ab5f5-aws-Rojxp5aE-972544766469.mp3 ",
"conversation_time": "2016-09-12T08:23:43Z",
"cost": 35,
"targetable": {
"type": "contact",
"id": 1
}
}
}
}
In the interface I am seeing a newly created record, but not seeing the info of the call I put in our request:
Thanks a lot.