Calls
GET /api/v1/users/:user_uid/calls
Пример запроса:
/api/v1/users/8e2c803a-eefd-4507-ae76-0703e8c6b2f4/calls?end_datetime=2023-06-30T20%3A59%3A59Z&provider_auth_token=d1aa55599790c220f8f5ebaf577927fbd316f9d6db1e164a625878a189d064ea&provider_name=Brown+and+Sons&start_datetime=2023-06-29T21%3A00%3A00Z&tracker_ids=1%2C2
Ruby
Ruby
Пример ответа:
{
"status_code": 200,
"status": "Created",
"payload": [
"caller_number": "+375123121212",
"transfer_number": ,
"receiver_number": ,
"pbx_id":
"answered": true,
"duration": 5,
"wait_duration": 1,
"start_time": <iso8601>,
"answered_time": <iso8601>,
"end_time": <iso8601>,
"sip_status": "ok",
"dynamic_call_source_info": {
"time": <iso8601>,
"session_id": '12432424',
"ct_client_id": '534654132324',
"device_type": "desktop",
"landing_url": "http://example.com/test"
"ip": "192.168.0.2",
"ip6": "",
"user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion
",
"utm_source": "google",
"utm_medium": "",
"utm_campaign": "",
"utm_content": "",
"utm_term": "",
"user_params_keys": ["search"],
"user_params_values": ["testsearch"],
"referrer": "https://google.com",
"robot": false,
"dynamic": true,
"analytic_ids": {"google_id": "2332412412", "yandex_id": "435454"}
}
]
}
Ruby
Ruby