GET /api/call/{id}
Retrieve detailed information for a single call. Result Code
200 | OK |
---|---|
401 | Unauthorized |
404 | Call not found |
406 | SSL must be used |
500 | Server Error |
Result Body
id | The unique call id. This will be needed when calling other api functions. |
---|---|
startdatetime | The time that the call began. The time is reported in the timezone configured for the authenticated user. |
startdatetimeutc | The time that the call began. The time is reported as UTC. |
durationseconds | The duration of the call in seconds. |
direction | The direction of the call. Either incoming, outgoing or internal. |
callerphonenumber | The caller party phone number. |
callername | The caller party name. |
destinationphonenumber | The destination party phone number. |
destinationname | The destination party name. |
subject | The subject of the call. |
rating | The rating of the call. Values are in the range of 0 – 5. |
audiomd5hash | The md5 hash of the call audio. This can be used to compare a reproduction at a later time for authenticity. |
audiolengthbytes | The length of the audio recording in bytes. |
tags | An array of selected tags. |
Example request
Example;- GET https://api.calln.com/api/call/4277 Result;- 200 (OK) {"id":4277, "startdatetime":"2009-04-27 18:08:56", "startdatetimeutc":"2009-04-27 8:08:56", "durationseconds":11, "direction":"internal", "callerphonenumber":"103", "callername":"", "destinationphonenumber":"101", "destinationname":"", "notes":"", "rating":0, "audiomd5hash":"3bda687cf44e791da62fcdc9184e2ee0", "audiolengthbytes":35784}
Using Curl
curl "https://api.calln.com/api/call/{id}" -H "Authorization: Basic username:password | base64" -X GET