{"_id":"55b8f3b28fd1a02b00f4958c","category":{"_id":"55aacfca3be8f60d00041d8a","version":"55aa7d983be8f60d00041d45","__v":17,"pages":["55b78741568be2230092ba73","55b79032568be2230092ba91","55b79144568be2230092ba94","55b79738aea7c8190058b972","55b7aa36aea7c8190058b9bf","55b7e64b568be2230092bbe9","55b7e66a31bccb190081c0fa","55b8f2a7146ef121002157c7","55b8f3b28fd1a02b00f4958c","55b8f4378fd1a02b00f4959f","55b91058146ef1210021583f","55b928c3146ef1210021589c","55b9290f8fd1a02b00f49694","55bbe8b7b72bad0d00c0d5dd","56548c8e9c4c6d0d00aeda0f","5654a2a9892a0d2b00cedc0c","5654a46e0af52835008e77a2"],"project":"55aa7d973be8f60d00041d42","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-18T22:14:34.596Z","from_sync":false,"order":7,"slug":"contacts","title":"Contacts"},"githubsync":"","project":"55aa7d973be8f60d00041d42","user":"55aa7d625d3abb0d0012f3da","parentDoc":null,"editedParams":true,"editedParams2":true,"version":{"_id":"55aa7d983be8f60d00041d45","__v":20,"project":"55aa7d973be8f60d00041d42","createdAt":"2015-07-18T16:23:52.273Z","releaseDate":"2015-07-18T16:23:52.273Z","categories":["55aa7d983be8f60d00041d46","55aacf4e3be8f60d00041d89","55aacfaae2bdcb0d00c7466e","55aacfb3e2bdcb0d00c7466f","55aacfca3be8f60d00041d8a","55b67da3f8105a2f00c351ab","55b7cae4aea7c8190058ba5b","55b9218afeef5135009b7db3","55c182616d7d2921006da013","5631407afa40240d007c8c60","56548b9c9c4c6d0d00aeda0c","572b9137ff3ba10e00b4abb4","572b9150ff3ba10e00b4abb5","581b83288ca41f0f007e4fb6","585065fa70cbe00f00835bb8","58641eba0355f31900380492","58861760b4816e19005c9941","58a316cb254c401b00a049ce","58ac80dbd5e1570f00d1c328","59f72b4991121a00104f036e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":2,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-29T15:39:30.534Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[{"name":"","code":"curl -X POST 'https://api.cliengo.com/1.0/contacts/phone-calls'  --data \"callStatus=&callerName=John Doe&event=&to=&callUUID=&recordingURL=&totalCost=&answerTime=&direction=&billRate=&hangupCause=&duration=&endTime=&startTime=&from=&api_key=YOURAPIKEY\"","language":"curl"}]},"method":"post","results":{"codes":[{"name":"","code":"{\nid: \"null\"\ncreationDate: \"2015-07-29T16:23:03.761-03:00\"\nanswerTime: \"\"\nduration: \"\"\nendTime: \"\"\nfrom: \"541155555551\"\nstartTime: \"\"\nto: \"541155555555\"\n}","language":"json","status":200}]},"auth":"required","params":[{"_id":"55b8f3b28fd1a02b00f4958d","ref":"","in":"body","required":true,"desc":"From cal","default":"","type":"string","name":"from"},{"_id":"55b8f3b28fd1a02b00f49599","ref":"","in":"body","required":true,"desc":"To call","default":"","type":"string","name":"to"},{"_id":"55b8f3b28fd1a02b00f4959c","ref":"","in":"body","required":false,"desc":"Call status","default":"","type":"string","name":"callStatus"},{"_id":"55b8f3b28fd1a02b00f4959b","ref":"","in":"body","required":false,"desc":"Caller name","default":"","type":"string","name":"callerName"},{"_id":"55b8f3b28fd1a02b00f4959a","ref":"","in":"body","required":false,"desc":"Event","default":"","type":"string","name":"event"},{"_id":"55b8f3b28fd1a02b00f49598","ref":"","in":"body","required":false,"desc":"Call ID","default":"","type":"string","name":"callUUID"},{"_id":"55b8f3b28fd1a02b00f49597","ref":"","in":"body","required":false,"desc":"Recording URL","default":"","type":"string","name":"recordingURL"},{"_id":"55b8f3b28fd1a02b00f49596","ref":"","in":"body","required":false,"desc":"Total cost","default":"","type":"string","name":"totalCost"},{"_id":"55b8f3b28fd1a02b00f49595","ref":"","in":"body","required":false,"desc":"Answer Time","default":"","type":"string","name":"answerTime"},{"_id":"55b8f3b28fd1a02b00f49594","ref":"","in":"body","required":false,"desc":"Direction call","default":"","type":"string","name":"direction"},{"_id":"55b8f3b28fd1a02b00f49593","ref":"","in":"body","required":false,"desc":"Bill rate","default":"","type":"string","name":"billRate"},{"_id":"55b8f3b28fd1a02b00f49592","ref":"","in":"body","required":false,"desc":"Hangup cause","default":"","type":"string","name":"hangupCause"},{"_id":"55b8f3b28fd1a02b00f49591","ref":"","in":"body","required":false,"desc":"Duration call","default":"","type":"string","name":"duration"},{"_id":"55b8f3b28fd1a02b00f49590","ref":"","in":"body","required":false,"desc":"Bill duration call","default":"","type":"string","name":"billDuration"},{"_id":"55b8f3b28fd1a02b00f4958f","ref":"","in":"body","required":false,"desc":"End time","default":"","type":"string","name":"endTime"},{"_id":"55b8f3b28fd1a02b00f4958e","ref":"","in":"body","required":false,"desc":"Start time","default":"","type":"string","name":"startTime"},{"_id":"585044632272620f002835e2","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"contactId"}],"url":"/contacts/:contactId/phone-calls"},"isReference":false,"order":9,"body":"","excerpt":"Add contact phone calls","slug":"contactscontactidcalls","type":"endpoint","title":"/contacts/:contactId/phone-calls"}

post/contacts/:contactId/phone-calls

Add contact phone calls

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

contactId:
required
string

Body Params

from:
required
string
From cal
to:
required
string
To call
callStatus:
string
Call status
callerName:
string
Caller name
event:
string
Event
callUUID:
string
Call ID
recordingURL:
string
Recording URL
totalCost:
string
Total cost
answerTime:
string
Answer Time
direction:
string
Direction call
billRate:
string
Bill rate
hangupCause:
string
Hangup cause
duration:
string
Duration call
billDuration:
string
Bill duration call
endTime:
string
End time
startTime:
string
Start time

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}