List calls
curl --request GET \
--url https://api.prod.peerlogic.com/api/calls/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/calls/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/calls/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/calls/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/calls/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prod.peerlogic.com/api/calls/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/calls/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"call_start_time": "2023-11-07T05:31:56Z",
"duration_seconds": "<string>",
"practice": "<string>",
"id": "<string>",
"notes": [
{
"id": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"created_at": "2023-11-07T05:31:56Z",
"modified_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"modified_at": "2023-11-07T05:31:56Z",
"call_id": "<string>",
"note": "<string>"
}
],
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"engaged_in_calls": "<string>",
"assigned_agent": [
{
"call": "<string>",
"id": "<string>",
"agent": {
"id": "<string>",
"practice": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
}
}
],
"call_purposes": "<string>",
"conversations": [
{
"caller_name": "<string>",
"current_type": "static",
"end_time": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"most_recent_inbound_message_time": "2023-11-07T05:31:56Z",
"most_recent_message_time": "2023-11-07T05:31:56Z",
"opportunity_id": "<string>",
"origination_type": "static",
"patient_phone_number": "<string>",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"practice_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"responsive_outreach_escalation_type": "aimee_initiated",
"responsive_outreach_resolution_type": "booked",
"responsive_outreach_status": "working_aimee",
"start_time": "2023-11-07T05:31:56Z",
"status": "open",
"system_phone_number": "<string>",
"resolutions": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolution_type": "booked",
"appointment": {
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
},
"resolver_type": "aimee"
}
],
"escalations": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_type": "aimee_initiated"
}
],
"action_required": true,
"is_action_required": "<string>",
"is_webchat": true,
"is_voicechat": true
}
],
"opportunities": [
{
"conversations": [
{
"caller_name": "<string>",
"current_type": "static",
"end_time": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"most_recent_inbound_message_time": "2023-11-07T05:31:56Z",
"most_recent_message_time": "2023-11-07T05:31:56Z",
"opportunity_id": "<string>",
"origination_type": "static",
"patient_phone_number": "<string>",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"practice_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"responsive_outreach_escalation_type": "aimee_initiated",
"responsive_outreach_resolution_type": "booked",
"responsive_outreach_status": "working_aimee",
"start_time": "2023-11-07T05:31:56Z",
"status": "open",
"system_phone_number": "<string>",
"resolutions": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolution_type": "booked",
"appointment": {
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
},
"resolver_type": "aimee"
}
],
"escalations": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_type": "aimee_initiated"
}
],
"action_required": true,
"is_action_required": "<string>",
"is_webchat": true,
"is_voicechat": true
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"followed_up_at": "2023-11-07T05:31:56Z",
"is_open": true,
"status": "success",
"trigger_type": "missed_call",
"first_follow_up_call_id": "<string>",
"originating_call_id": "<string>",
"originated_at": "2023-11-07T05:31:56Z",
"has_any_follow_up": true,
"follow_ups": [
{
"id": 123,
"call_id": "<string>",
"call_direction": "<string>",
"call_connection": "<string>",
"call_start_time": "2023-11-07T05:31:56Z"
}
]
}
],
"precedent_opportunities": "<string>",
"mentioned_companies": "<string>",
"mentioned_insurances": "<string>",
"mentioned_procedures": "<string>",
"mentioned_products": "<string>",
"mentioned_symptoms": "<string>",
"has_audio": "<string>",
"has_transcript": "<string>",
"latest_audio_waveform_data": "<string>",
"call_sentiments": [
{
"callee_sentiment_score": "positive",
"id": "<string>",
"overall_sentiment_score": "positive",
"caller_sentiment_score": "positive"
}
],
"total_value": "<string>",
"domain": "<string>",
"booking_status": "<string>",
"reasons_not_booked": "<string>",
"marketing_campaign_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"call_end_time": "2023-11-07T05:31:56Z",
"connect_duration_seconds": "<string>",
"progress_time_seconds": "<string>",
"hold_time_seconds": "<string>",
"call_direction": "inbound",
"sip_caller_extension": "<string>",
"sip_caller_number": "<string>",
"sip_caller_name": "<string>",
"sip_callee_extension": "<string>",
"sip_callee_number": "<string>",
"sip_callee_name": "<string>",
"sip_term_number": "<string>",
"checked_voicemail": true,
"went_to_voicemail": true,
"call_connection": "missed",
"who_terminated_call": "caller",
"referral_source": "patient_referral",
"caller_type": "agent",
"callee_type": "agent",
"is_routed_to_aimee_voice": true,
"created_by": "<string>",
"modified_by": "<string>",
"practice_telecom": "<string>",
"caller_id": "<string>",
"callee_id": "<string>"
}
],
"next": "<string>",
"previous": "<string>"
}{
"sort": [
"Select a valid choice."
]
}{
"detail": "'Authorization' header is required"
}{
"message": "No permissions assigned to permit access to this endpoint."
}Authorizations
Bearer access token issued by Peerlogic.
Query Parameters
id
practice__id
call_direction__in
call_direction
inbound, outbound, internal call_connection
missed, connected duration_seconds__gte
duration_seconds__lte
went_to_voicemail
checked_voicemail
call_sentiments__overall_sentiment_score__in
call_sentiments__overall_sentiment_score
positive, neutral, negative, not_applicable mentioned_companies__keyword
3m_oral_care, amazon, benco_dental, biteline, biolase, carestream, collaborativecare, colgate_palmolive_company, crest, darby_dental_supplies, dental_intel, google, henry_schein, kerr, metrex, microsoft, midwest_dental_equipment_supplies, mydent, nexhealth, noble_dental_supplies, opencare, overjet, peerlogic, patient_prism, patterson_dental, pearson_dental_supply, philips, relu, safeco, septodont, smile_direct, sultan_healthcare, vyne, weave, zocdoc mentioned_insurances__keyword
aarp_dental_insurance, aetna, aetna_better_health, aetna_vital_savings, aflac, ahcccs_dental, alabama_medicaid, alaska_medicaid, alohacare, allstate, altus_dental, always_care, ambetter, amerigroup, amerihealth_caritas, ameritas, anthem, anthem_healthkeepers_plus, arkansas_medicaid, assurant, avesis, beam_dental, benecare_dental, best_life_dental, blue_cross_blue_shield, blue_cross_complete, blue_cross_idaho, bmc_healthnet_plan, bravo_health, capital_blue_cross, careington, caresource, cigna, colorado_medicaid, common_ground_healthcare, coventry, cypress_dental, dearborn_national, delaware_medicaid, deltacare_usa, delta_dental, delta_dental_fedvip, denali, dentalplans_dot_com, dental_health_and_wellness, dentaquest, denti_cal, dominion_national, elderplan, emblem_health, emi_health, envolve_dental, equitable, excellus_bcbs, fallon_health, fidelis_care, first_health, geha, guardian, guardian_dental_exchange, harvard_pilgrim, hawaii_dental_service, hawaii_medicaid, healthfirst, healthpartners_dental, healthy_ny, health_choice_access, health_net_dental, health_new_england, health_plan_of_nevada, humana, husky_health, idaho_medicaid, illinois_medicaid, independence_bcbs, indiana_medicaid, iowa_medicaid, kancare, kentucky_medicaid, liberty_dental_plan, lincoln_financial, livewell_dental_access, louisiana_dental_bayou_health, mainecare, maryland_healthy_smiles, masshealth, mcna_dental, medicaid, medicare, medstar_family_choice, mercy_care, meritain, metlife, metlife_fedvip, metroplushealth, michigan_healthy_kids_dental, minnesota_medicaid, mississippi_medicaid, missouri_medicaid, moda_health, molina_healthcare, montana_medicaid, mutual_of_omaha, nationwide, nc_healthy_opportunities, nebraska_medicaid, nevada_check_up, nj_familycare, nm_medicaid, north_dakota_medicaid, ohio_medicaid, oklahoma_soonercare, oregon_dental_services_companies, oregon_health_plan, oscar_health, pacificsource, peach_state_health, pennsylvania_chip, physicians_mutual, premera_blue_cross, premier_access, principal, principal_dental, regence_blueshield, reliance_standard, renaissance_dental, rhode_island_medicaid, safeguard, secure_care_dental, security_health_plan, seiu_1199_nbf, select_health, sierra_health_and_life, solstice_dental, southwest_service, south_carolina_medicaid, south_dakota_medicaid, spirit_dental, standard_insurance, state_insurance, sunshine_health, sun_life_dental, sun_life_financial, tenncare, texas_medicaid_dental, the_loomis_company, transamerica, tricare, trustmark, tufts_health_plan, uhc_community_plan, uhc_dual_completion, united_concordia, united_healthcare, unum_dental, utah_medicaid, vermont_medicaid, virginia_smiles_for_children, vsp_global, washington_apple_health, wellcare, wellpoint, west_virginia_chip, wisconsin_badgercare, wyoming_medicaid, ameriben, benefit_admin_solution, dmba, ebms, group_administrators, health_ez, health_west_administrators, ninety_degree_benefits, sisco, tall_tree_admin, total_dental_admin, umr, web_tpa, access_dental, advanced_benefit_solution, alaska_teamster, altius, apwu, colonial_life, dental_select, dentamax, direct_care, educators_mutual_emi, employee_painters_trust, freedom_fountain_life, guarantee_trust_life, ironworkers, kansas_city_life, laborers_trust_utah, line_co, mailhandlers, motiv_health, navajo_nation_employee_benefits, nwsm, painter_welfare_trust, pipe_trades_ironworkers_utah, teamsters_security_fund_utah, wcf_insurance, welfare_trust_fund, cdcp, nihb, ifhp, odsp, healthy_smiles_ontario, ontario_works, ontario_seniors_dental_care, cinot, ramq, aish, alberta_adult_health_benefit, alberta_child_health_benefit, bc_healthy_kids, bc_income_assistance_dental, manulife, canada_life, desjardins_insurance, green_shield_canada, alberta_blue_cross, pacific_blue_cross, medavie_blue_cross, manitoba_blue_cross, saskatchewan_blue_cross, beneva, ia_financial_group, empire_life, equitable_life_canada, co_operators, chambers_plan, grouphealth, claimsecure, gms mentioned_procedures__keyword
abutment, bonding, braces, bridge, cleaning, cone_beam, crown, dentures, exam, extraction, filling, filling_amalgam, filling_composite, implant, polishing, repair, root_canal, screw, sedation, tmj, x_ray, veneer, whitening, biopsy_organ, bloat, catheterization_urinary, dental, disease_disc, dystocia, extraction, surgery_ostectomy_head_femoral, injections_allergy, minimally_invasive_procedure, mri_post, neuter, removal_mass, repair_acl, repair_jawline, replacement_hip_total, retrieval_body_foreign, scoping, sedation_ultrasound, spay, surgery_back, surgery_spinal, surgery_tissue_soft, tap_joint, testing_allergy, treatment_chemotherapy, treatment_gastric_dilation_volvulus, treatment_laceration, treatment_pyometra, treatment_stem_cell, vaccine_oncological mentioned_products__keyword
aligner, at_home_whitening, axium, carestack, crest_whitestrips, curve_hero, denticon, dentrix, dentrix_ascend, eaglesoft, floss, invisalign, modento, night_guard, open_dental, patientpop, retainer, sonicare, solutionreach, sure_smile_aligner, toothbrush, toothbrush_electric, toothpaste, zoom_whitening, waterpik mentioned_symptoms__keyword
breath_bad, bleeding, blood, bruising, dry_socket, dysphagia, excessive_drooling, headache, jaw_soreness, lesion, mouth_dry, numbness, pain, snoring, swelling, throat_soreness, tooth_chipped, tooth_cracked, tooth_loss, tooth_sensitivity, toothache, overbite, underbite sip_caller_extension
sip_caller_number__startswith
sip_callee_number__startswith
extension_any
phone_number_any
name_any
has_notes
notes_search
Return calls on or after this date (YYYY-MM-DD).
Return calls before this date (YYYY-MM-DD).
marketing_campaign_id
has_patients__appointments
call_purposes__call_purpose_type
new_appointment, reschedule, confirm_appointment, cancel_appointment, inquiry_administrative, inquiry_patient_education, inquiry_er, pricing, request_referral, request_medical_records, request_prescription, billing, transfer_care, administrative, employment, personal, others, insurance_authorization, insurance_verification, insurance_claim call_purposes__outcome_results__call_outcome_type
success, failure, not_applicable call_purposes__outcome_results__outcome_reason_results__call_outcome_reason_type
not_enough_information_possesed_by_patient_or_agent, patient_lacks_information_to_complete_request, practice_lacks_information_to_complete_request, procedure_not_offered, treatment_not_offered, patient_ineligible_for_treatment, caller_indifference, insurance, insurance_not_taken, pricing, financial, lost, too_expensive, scheduling, day_or_time_not_available, call_interrupted, call_not_connected, others, not_applicable, incorrect_dental_code, incomplete_information_on_claim, insurance_coverage_limit_annual, insurance_coverage_limit_lifetime, insurance_coverage_time_limit, insurance_incorrect_beneficiary_information, insurance_coverage_expired, insurance_coordination_of_benefits, insurance_preauthorization_not_obtained, insurance_procedure_not_covered engaged_in_calls__non_agent_engagement_persona_type
new_patient, existing_patient, contractor_vendor, insurance_provider, not_applicable, not_applicable_internal, others patients__appointments__status
SCHEDULED, COMPLETED, CANCELLED, DELETED, CONFIRMED Which field to use when ordering the results.
A page number within the paginated result set.
Number of results to return per page.
Was this page helpful?
curl --request GET \
--url https://api.prod.peerlogic.com/api/calls/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/calls/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/calls/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/calls/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/calls/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prod.peerlogic.com/api/calls/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/calls/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"call_start_time": "2023-11-07T05:31:56Z",
"duration_seconds": "<string>",
"practice": "<string>",
"id": "<string>",
"notes": [
{
"id": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"created_at": "2023-11-07T05:31:56Z",
"modified_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"modified_at": "2023-11-07T05:31:56Z",
"call_id": "<string>",
"note": "<string>"
}
],
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"engaged_in_calls": "<string>",
"assigned_agent": [
{
"call": "<string>",
"id": "<string>",
"agent": {
"id": "<string>",
"practice": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
}
}
],
"call_purposes": "<string>",
"conversations": [
{
"caller_name": "<string>",
"current_type": "static",
"end_time": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"most_recent_inbound_message_time": "2023-11-07T05:31:56Z",
"most_recent_message_time": "2023-11-07T05:31:56Z",
"opportunity_id": "<string>",
"origination_type": "static",
"patient_phone_number": "<string>",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"practice_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"responsive_outreach_escalation_type": "aimee_initiated",
"responsive_outreach_resolution_type": "booked",
"responsive_outreach_status": "working_aimee",
"start_time": "2023-11-07T05:31:56Z",
"status": "open",
"system_phone_number": "<string>",
"resolutions": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolution_type": "booked",
"appointment": {
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
},
"resolver_type": "aimee"
}
],
"escalations": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_type": "aimee_initiated"
}
],
"action_required": true,
"is_action_required": "<string>",
"is_webchat": true,
"is_voicechat": true
}
],
"opportunities": [
{
"conversations": [
{
"caller_name": "<string>",
"current_type": "static",
"end_time": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"most_recent_inbound_message_time": "2023-11-07T05:31:56Z",
"most_recent_message_time": "2023-11-07T05:31:56Z",
"opportunity_id": "<string>",
"origination_type": "static",
"patient_phone_number": "<string>",
"patients": [
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
}
],
"practice_id": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"responsive_outreach_escalation_type": "aimee_initiated",
"responsive_outreach_resolution_type": "booked",
"responsive_outreach_status": "working_aimee",
"start_time": "2023-11-07T05:31:56Z",
"status": "open",
"system_phone_number": "<string>",
"resolutions": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolution_type": "booked",
"appointment": {
"id": 123,
"appointment_start_at": "2023-11-07T05:31:56Z",
"appointment_end_at": "2023-11-07T05:31:56Z",
"approximate_total_amount": "<string>",
"approximate_total_currency": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z",
"did_patient_miss": true,
"is_active": true,
"is_new_patient": true,
"note": "<string>",
"patient_id": "<string>",
"booked_by_patient_id": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"practice": "<string>",
"procedures": "<string>",
"status": "SCHEDULED",
"appointment_type": {
"id": "<string>",
"name": "<string>",
"duration_in_minutes": 123,
"practice": "<string>",
"descriptors": [
{
"name": "<string>",
"code": "<string>",
"id": "<string>",
"active": true
}
],
"peerlogic_appointment_types": "<string>",
"mappings": "<string>",
"is_bookable_online": true,
"is_disabled_in_peerlogic": true,
"effective_is_bookable_online": "<string>",
"has_availability_schedule": true
},
"booked_peerlogic_appointment_type": {
"id": "<string>",
"name": "Consultation",
"display_name": "<string>"
},
"patient": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"date_of_birth": "2023-12-25",
"email": "jsmith@example.com",
"id": "<string>",
"is_active": true,
"name": "<string>",
"name_first": "<string>",
"name_last": "<string>",
"name_middle": "<string>",
"phone_fax": "<string>",
"phone_home": "<string>",
"phone_mobile": "<string>",
"phone_number": "<string>",
"phone_work": "<string>",
"placeholder": "<string>",
"pms_created_at": "2023-11-07T05:31:56Z",
"zip_code": "<string>"
},
"provider": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"is_active": true
},
"operatory": {
"name": "<string>",
"id": "<string>",
"display_name": "<string>"
}
},
"resolver_type": "aimee"
}
],
"escalations": [
{
"notes": [
{
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"id": "<string>",
"is_from_escalation": true,
"note": "<string>",
"note_type": "system"
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"escalation_type": "aimee_initiated"
}
],
"action_required": true,
"is_action_required": "<string>",
"is_webchat": true,
"is_voicechat": true
}
],
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"followed_up_at": "2023-11-07T05:31:56Z",
"is_open": true,
"status": "success",
"trigger_type": "missed_call",
"first_follow_up_call_id": "<string>",
"originating_call_id": "<string>",
"originated_at": "2023-11-07T05:31:56Z",
"has_any_follow_up": true,
"follow_ups": [
{
"id": 123,
"call_id": "<string>",
"call_direction": "<string>",
"call_connection": "<string>",
"call_start_time": "2023-11-07T05:31:56Z"
}
]
}
],
"precedent_opportunities": "<string>",
"mentioned_companies": "<string>",
"mentioned_insurances": "<string>",
"mentioned_procedures": "<string>",
"mentioned_products": "<string>",
"mentioned_symptoms": "<string>",
"has_audio": "<string>",
"has_transcript": "<string>",
"latest_audio_waveform_data": "<string>",
"call_sentiments": [
{
"callee_sentiment_score": "positive",
"id": "<string>",
"overall_sentiment_score": "positive",
"caller_sentiment_score": "positive"
}
],
"total_value": "<string>",
"domain": "<string>",
"booking_status": "<string>",
"reasons_not_booked": "<string>",
"marketing_campaign_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"call_end_time": "2023-11-07T05:31:56Z",
"connect_duration_seconds": "<string>",
"progress_time_seconds": "<string>",
"hold_time_seconds": "<string>",
"call_direction": "inbound",
"sip_caller_extension": "<string>",
"sip_caller_number": "<string>",
"sip_caller_name": "<string>",
"sip_callee_extension": "<string>",
"sip_callee_number": "<string>",
"sip_callee_name": "<string>",
"sip_term_number": "<string>",
"checked_voicemail": true,
"went_to_voicemail": true,
"call_connection": "missed",
"who_terminated_call": "caller",
"referral_source": "patient_referral",
"caller_type": "agent",
"callee_type": "agent",
"is_routed_to_aimee_voice": true,
"created_by": "<string>",
"modified_by": "<string>",
"practice_telecom": "<string>",
"caller_id": "<string>",
"callee_id": "<string>"
}
],
"next": "<string>",
"previous": "<string>"
}{
"sort": [
"Select a valid choice."
]
}{
"detail": "'Authorization' header is required"
}{
"message": "No permissions assigned to permit access to this endpoint."
}