History module
Endpoints
Endpoints for managing Call Details Reports, Call Recordings, Chats and Voicemessages
GET
/chats Returns collection of Chat resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/chats HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 2279, "created_at": "2017-05-16 20:44:05", "customer_id": 8235, "duration": 3335, "operator_id": 1372, "operator_ua": "value", "state": 2, "visitor_city": "value", "visitor_country": "value", "visitor_email": "value", "visitor_geo": "value", "visitor_id": "value", "visitor_ip": "value", "visitor_name": "value", "visitor_referer": "value", "visitor_ua": "value", "website_id": 444 } ], "total": 59 }
GET
/chats/{id} Returns Chat resource for given Id
Parameters
Endpoint URL:
{id} integerChat identifier
Example Request
GET /v1.1/voipstudio/chats/29 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 7230, "created_at": "2023-06-24 18:08:49", "customer_id": 2290, "duration": 8654, "operator_id": 1681, "operator_ua": "value", "state": 1, "visitor_city": "value", "visitor_country": "value", "visitor_email": "value", "visitor_geo": "value", "visitor_id": "value", "visitor_ip": "value", "visitor_name": "value", "visitor_referer": "value", "visitor_ua": "value", "website_id": 5554 }, "links": {} }
DELETE
/chatmsgs/{ids} Deletes given chat message resources
Parameters
Endpoint URL:
{ids} comma separated list of integersResource identifiers
Example Request
DELETE /v1.1/voipstudio/chatmsgs/74,198,405 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
DELETE
/chatmsgs Deletes collection of ChatMsg resources
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/chatmsgs HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 204 OK
GET
/cdrs Returns collection of Cdr resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/cdrs HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 247, "billsec": 5331, "call_id": 2170, "calldate": "2016-06-04 21:22:21", "charge": 7.25, "clid": "value", "context": "value", "destination": 1, "disposition": 1, "dst": "44203846719", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 9899, "info": "value", "live_id": 7777, "parent_live_id": 689, "rate": 4.5, "server_id": 652, "sip_endpoint_id": 9685, "src": "32179243705", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 0, "user_id": 8703 } ], "total": 59 }
PATCH
/cdrs [BULK] Updates existing Cdr resources
Parameters
Example Request
PATCH /v1.1/voipstudio/cdrs HTTP/1.1 Host: l7api.com [ [], { "id": 7176 } ]
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1748, "billsec": 6785, "call_id": 9209, "calldate": "2023-11-04 13:43:46", "charge": 8.1, "clid": "value", "context": "value", "destination": 0, "disposition": 0, "dst": "44203846719", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 7058, "info": "value", "live_id": 5750, "parent_live_id": 8729, "rate": 5.25, "server_id": 4882, "sip_endpoint_id": 1873, "src": "12124537768", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 1, "user_id": 4613 }, "links": {} }
DELETE
/cdrs Deletes collection of Cdr resources
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/cdrs HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 204 OK
GET
/cdrs/{id}.trace Returns Cdr resource as SIP Trace for given Id
Parameters
Endpoint URL:
{id} integerCdr identifier
Example Request
GET /v1.1/voipstudio/cdrs/44.trace HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 6707, "billsec": 9715, "call_id": 8819, "calldate": "2025-04-03 05:44:14", "charge": 3.17, "clid": "value", "context": "value", "destination": 0, "disposition": 2, "dst": "12124537768", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 9847, "info": "value", "live_id": 5930, "parent_live_id": 7421, "rate": 5.14, "server_id": 139, "sip_endpoint_id": 1083, "src": "44203844711", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 0, "user_id": 7702 }, "links": {} }
GET
/cdrs/{id}.pcap Returns Cdr resource as PCAP file for given Id
Parameters
Endpoint URL:
{id} integerCdr identifier
Example Request
GET /v1.1/voipstudio/cdrs/67.pcap HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 7074, "billsec": 8810, "call_id": 1454, "calldate": "2019-03-09 03:28:52", "charge": 7.14, "clid": "value", "context": "value", "destination": 2, "disposition": 3, "dst": "13103345244", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 6345, "info": "value", "live_id": 1998, "parent_live_id": 2242, "rate": 5.1, "server_id": 7209, "sip_endpoint_id": 6748, "src": "12124537768", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 0, "user_id": 5714 }, "links": {} }
GET
/cdrs/calltracking Returns collection of Call Tracking Cdr resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/cdrs/calltracking HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 545, "billsec": 8736, "call_id": 9109, "calldate": "2024-10-07 16:31:19", "charge": 4.25, "clid": "value", "context": "value", "destination": 1, "disposition": 0, "dst": "44203844711", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 1913, "info": "value", "live_id": 2940, "parent_live_id": 356, "rate": 3.17, "server_id": 7095, "sip_endpoint_id": 8311, "src": "32179243705", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 1, "user_id": 3621 } ], "total": 59 }
GET
/cdrs/{id} Returns Cdr resource for given Id
Parameters
Endpoint URL:
{id} integerCdr identifier
Example Request
GET /v1.1/voipstudio/cdrs/18 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 7046, "billsec": 6294, "call_id": 387, "calldate": "2020-02-09 14:28:57", "charge": 3.5, "clid": "value", "context": "value", "destination": 1, "disposition": 0, "dst": "44203846719", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 7377, "info": "value", "live_id": 7461, "parent_live_id": 3508, "rate": 2.17, "server_id": 5303, "sip_endpoint_id": 8174, "src": "44779243705", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 2, "user_id": 7603 }, "links": {} }
GET
/cdrs/dictionaries Returns Dictionary for Cdr resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/cdrs/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Unknown
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 2686, "billsec": 3198, "call_id": 3258, "calldate": "2017-08-19 23:34:07", "charge": 6.25, "clid": "value", "context": "value", "destination": 0, "disposition": 1, "dst": "32179243705", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 2875, "info": "value", "live_id": 126, "parent_live_id": 4716, "rate": 8.5, "server_id": 436, "sip_endpoint_id": 3812, "src": "12124537768", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 1, "user_id": 6195 } ], "total": 59 }
GET
/cdrs/{id}/notes Returns Notes for give CDR resource
Parameters
Endpoint URL:
{id} integerCdr identifier
Example Request
GET /v1.1/voipstudio/cdrs/59/notes HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1367, "billsec": 3198, "call_id": 1512, "calldate": "2024-10-10 19:21:49", "charge": 2.1, "clid": "value", "context": "value", "destination": 2, "disposition": 3, "dst": "44779243705", "dst_codec": "value", "dst_id": "value", "dst_name": "value", "dst_ua": "value", "duration": 8558, "info": "value", "live_id": 8059, "parent_live_id": 9428, "rate": 5.5, "server_id": 3997, "sip_endpoint_id": 3013, "src": "44779243705", "src_codec": "value", "src_id": "value", "src_name": "value", "src_ua": "value", "t_cause": "value", "type": 2, "user_id": 3175 }, "links": {} }
GET
/monitors/{id}.mp3 Returns Monitor resource for given Id as MP3 audio file
Parameters
Endpoint URL:
{id} integerMonitor identifier
Example Request
GET /v1.1/voipstudio/monitors/87.mp3 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1561, "called": "44779243705", "caller": "44779243705", "context": "value", "dst_id": "value", "dst_name": "value", "duration": 4797, "live_id": 2798, "sentiment": 2, "sip_endpoint_id": 549, "size": 9175, "src_id": "value", "summary": "value", "timestamp": "2021-01-15 08:22:53", "transcript": "value", "type": "value", "user_id": 8828 }, "links": {} }
GET
/monitors Returns collection of Monitor resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/monitors HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 8719, "called": "44203844711", "caller": "44203844711", "context": "value", "dst_id": "value", "dst_name": "value", "duration": 5586, "live_id": 5147, "sentiment": 1, "sip_endpoint_id": 3709, "size": 2889, "src_id": "value", "summary": "value", "timestamp": "2024-09-14 09:02:16", "transcript": "value", "type": "value", "user_id": 4637 } ], "total": 59 }
DELETE
/monitors Deletes all Monitor resources for given customer
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/monitors HTTP/1.1 Host: l7api.com
Responses
202 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 202 OK
GET
/monitors/{id} Returns Monitor resource for given Id
Parameters
Endpoint URL:
{id} integerMonitor identifier
Example Request
GET /v1.1/voipstudio/monitors/5 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 6553, "called": "44203844711", "caller": "44203846719", "context": "value", "dst_id": "value", "dst_name": "value", "duration": 1017, "live_id": 5894, "sentiment": 0, "sip_endpoint_id": 3179, "size": 9493, "src_id": "value", "summary": "value", "timestamp": "2019-09-10 16:54:40", "transcript": "value", "type": "value", "user_id": 5729 }, "links": {} }
PATCH
/monitors/{id} Updates existing Monitor resource
Parameters
Endpoint URL:
{id} integerMonitor identifier
JSON body attributes:
transcript string
transcript_speakers string
summary string
sentiment string
cx_score integer
metadata undefined
Example Request
PATCH /v1.1/voipstudio/monitors/58 HTTP/1.1 Host: l7api.com { "transcript": "abcd", "transcript_speakers": "abcd", "summary": "abcd", "sentiment": "abcd", "cx_score": 333, "metadata": "abcd" }
Responses
200 Success
400 Validation error
404 Resource not found
400 Validation error
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 449, "called": "44779243705", "caller": "44203846719", "context": "value", "dst_id": "value", "dst_name": "value", "duration": 8313, "live_id": 1376, "sentiment": 2, "sip_endpoint_id": 5333, "size": 7115, "src_id": "value", "summary": "value", "timestamp": "2017-09-07 02:56:56", "transcript": "value", "type": "value", "user_id": 8098 }, "links": {} }
DELETE
/monitors/{ids} Deletes given Monitor resources
Parameters
Endpoint URL:
{ids} comma separated list of integersMonitor identifiers
Example Request
DELETE /v1.1/voipstudio/monitors/46,175,416 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/msdrs/{id}.trace Returns Msdr resource as SIP Trace for given Id
Parameters
Endpoint URL:
{id} integerMsdr identifier
Example Request
GET /v1.1/voipstudio/msdrs/38.trace HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 8320, "call_id": "value", "created_at": "2019-11-24 08:18:39", "dst": "12124537768", "dst_id": "value", "dst_ua": "value", "duration": 475, "media_session_id": 6765, "src": "44203846719", "src_id": "value", "src_ua": "value", "t_cause": "value", "type": "value", "user_id": 4237 }, "links": {} }
GET
/msdrs/{id}.pcap Returns Msdr resource as PCAP file for given Id
Parameters
Endpoint URL:
{id} integerMsdr identifier
Example Request
GET /v1.1/voipstudio/msdrs/76.pcap HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 5518, "call_id": "value", "created_at": "2024-06-11 04:30:54", "dst": "12124537768", "dst_id": "value", "dst_ua": "value", "duration": 4899, "media_session_id": 4420, "src": "44779243705", "src_id": "value", "src_ua": "value", "t_cause": "value", "type": "value", "user_id": 2344 }, "links": {} }
GET
/msdrs Returns collection of Msdr resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/msdrs HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 9950, "call_id": "value", "created_at": "2021-07-02 15:31:03", "dst": "13103345244", "dst_id": "value", "dst_ua": "value", "duration": 6114, "media_session_id": 4464, "src": "44203844711", "src_id": "value", "src_ua": "value", "t_cause": "value", "type": "value", "user_id": 1090 } ], "total": 59 }
GET
/msdrs/{id} Returns Msdr resource for given Id
Parameters
Endpoint URL:
{id} integerMsdr identifier
Example Request
GET /v1.1/voipstudio/msdrs/16 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1827, "call_id": "value", "created_at": "2024-11-08 20:19:38", "dst": "13103345244", "dst_id": "value", "dst_ua": "value", "duration": 7189, "media_session_id": 7483, "src": "32179243705", "src_id": "value", "src_ua": "value", "t_cause": "value", "type": "value", "user_id": 3513 }, "links": {} }
GET
/msdrs/dictionaries Returns Dictionary for Msdr resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/msdrs/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Unknown
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 6207, "call_id": "value", "created_at": "2022-01-13 10:50:10", "dst": "32179243705", "dst_id": "value", "dst_ua": "value", "duration": 1830, "media_session_id": 3987, "src": "44779243705", "src_id": "value", "src_ua": "value", "t_cause": "value", "type": "value", "user_id": 4758 } ], "total": 59 }
DELETE
/statements Deletes collection of Statement resources
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/statements HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 204 OK
GET
/voicemessages/{id}.mp3 Returns Voicemessage MP3 file for given Id
Parameters
Endpoint URL:
{id} integerVoicemessage identifier
Example Request
GET /v1.1/voipstudio/voicemessages/10.mp3 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1504, "caller": "32179243705", "callerid": "13103345244", "dialled": "32179243705", "duration": 1422, "extension_id": 4423, "folder": 0, "is_new": true, "live_id": 5998, "origtime": "2020-08-12 13:03:47", "parent_live_id": 9034, "transcript": "value" }, "links": {} }
GET
/voicemessages Returns collection of Voicemessage resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/voicemessages HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 9753, "caller": "32179243705", "callerid": "44203846719", "dialled": "13103345244", "duration": 4592, "extension_id": 8218, "folder": 2, "is_new": true, "live_id": 6455, "origtime": "2024-12-09 14:46:12", "parent_live_id": 2632, "transcript": "value" } ], "total": 59 }
PATCH
/voicemessages [BULK] Updates folder of existing Voicemessage resources
Parameters
JSON body attributes:
id integer
folder string
Example Request
PATCH /v1.1/voipstudio/voicemessages HTTP/1.1 Host: l7api.com [ { "id": 473, "folder": "abcd" }, { "id": 1478, "folder": "abcd" } ]
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 5647, "caller": "44779243705", "callerid": "44779243705", "dialled": "44203846719", "duration": 4415, "extension_id": 7736, "folder": 1, "is_new": true, "live_id": 7281, "origtime": "2024-08-13 01:04:18", "parent_live_id": 7266, "transcript": "value" }, "links": {} }
DELETE
/voicemessages Deletes collection of Voicemessage resources
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/voicemessages HTTP/1.1 Host: l7api.com
Responses
202 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 202 OK
GET
/voicemessages/{id} Returns Voicemessage resource for given Id
Parameters
Endpoint URL:
{id} integerVoicemessage identifier
Example Request
GET /v1.1/voipstudio/voicemessages/47 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 3274, "caller": "32179243705", "callerid": "44779243705", "dialled": "44203844711", "duration": 563, "extension_id": 1384, "folder": 2, "is_new": true, "live_id": 5751, "origtime": "2023-10-10 20:44:13", "parent_live_id": 9398, "transcript": "value" }, "links": {} }
DELETE
/voicemessages/{ids} Deletes given voicemessage resources
Parameters
Endpoint URL:
{ids} comma separated list of integersVoicemessage identifiers
Example Request
DELETE /v1.1/voipstudio/voicemessages/23,164,461 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/sms/dictionaries Returns Dictionary for SMS resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/sms/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Unknown
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 4484, "created_at": "2019-12-02 07:12:53", "from": "44203846719", "from_id": "value", "from_name": "value", "message": "value", "result": "value", "to": "13103345244", "to_id": "value", "to_name": "value", "type": "value", "user_id": 1579 } ], "total": 59 }
GET
/calltracking/cdrs Returns collection of Call Tracking Cdr resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/calltracking/cdrs HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 8827, "cli_hide": true, "cli_prefix": 8525, "created_at": "2017-10-23 19:07:03", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 1, "has_fax_password": true, "info": "value", "name": "value", "rate": 5.33, "sms_email": "value", "sms_enabled": true, "status": 1, "target_id": 9340, "target_type": 7, "tel_verified": true, "uri": "value" } ], "total": 59 }
GET
/users/{id}/cdrs.csv Exports collection of Cdr resources to .csv file for given user
Parameters
Endpoint URL:
{id} integerUser identifier
Example Request
GET /v1.1/voipstudio/users/20/cdrs.csv HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 8734, "active": true, "created_at": "value", "customer": 9297, "email": "value", "first_name": "value", "is_initial": true, "is_root": true, "last_name": "value", "roles": "value", "two_factor_auth": 1, "visited_apps": "value" }, "links": {} }
GET
/mediasessions/dictionaries Returns Dictionary for Media Session resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/mediasessions/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Unknown
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 3729, "call_id": "value", "created_at": "2024-10-06 14:14:58", "dst_id": "value", "dst_ua": "value", "duration": 5251, "src_id": "value", "src_ua": "value", "status": "value", "type": "value", "updated_at": "2024-10-06 14:23:13", "user": 5651 } ], "total": 59 }
Models
CDR
Attribute | Data type | Description |
id | integer | Object ID |
duration | integer | Call duration in seconds |
live_id | integer | The identifier of the Live Call that generated this CDR record. It can be used to look up related records, such as call recordings. |
parent_live_id | integer | The identifier of parent (previous) Live Call that generated this CDR record. |
user_id | integer | The identifier of the User who made the call. |
sip_endpoint_id | integer | The identifier of the SIP Endpoint which made or received the call. |
server_id | integer | The identifier of the Media Server which handled the call. |
type | string | Call type: O (outbound), I (inbound), M (missed) |
calldate | string | Date and time of the call in format YYYY-MM-DD H:I:S in UTC timezone |
clid | string | Caller ID (if available) with number; |
src_id | string | The identified of the Source of the call, for example User ID 10002 or Contact ID contact:3423 |
src_name | string | String representation of Source of the call, for example Contact name |
src | string | Telephone number associated with the Source of the call |
src_ua | string | User agent of the Source of the call |
src_codec | string | Audio Codec of the Source of the call |
dst_id | string | The identified of the Destination of the call, for example User ID 10002 , Contact ID contact:3423 an IVR IVR324 or a Queue Queue12443 |
dst | string | Telephone number associated with the Destination of the call |
dst_name | string | String representation of Destination of the call, for example Contact name or a Queue name |
dst_ua | string | User agent of the Destination of the call |
dst_codec | string | Audio Codec of the Source of the call |
billsec | integer | Billable (connected) time of the call |
disposition | string | Outcome of the call, one of: INITIAL , RINGING , CONNECTED , ON_HOLD or VM (Voicemail) |
destination | string | Call direction: in (inbound), out (outbound), webcall (Web Call) or callmeback (Call Me Back) |
context | string | Call context: PSTN_CALL , USER_LOCAL , IVR , FOLLOW_ME , TEST_CALL etc. |
rate | number | The per-minute rate of the call. |
charge | number | The cost of the call. |
t_cause | string | Call termination reason, for example: Normal Clearing , User busy , No user responding etc. |
info | string | Additional information about the call. |
call_id | integer | Depreciated |