Skip to main content

Get Customer Informacion

API: Get Customer Informationsagent_summary_stats 


Description

ThisThe endpointAPI retrievesis aresponsible summaryfor of agent activity and performance statistics overretrieving the last day. It is useful for supervisors and managers to monitor agent productivity, call handling metrics, and time distribution across various call and pause states. This returns detailed data per agent, including call counts (manual, inbound, dialer), time spent in login, pause, talk, and break statuses, as well as call outcomes and user profileclient’s information.

đź”— URL

https://DOMAIN.croco-dial.net/goAPIv2/goAgent/goAPI.php

Note: Replace DOMAIN with the specific domain you want to query.

📝 Required Parameters

    
Parameter Value Description
goAction agent_summary_stats Action to perform
goUser MyUser API authorized user.
goPass MyPass Authorized user's password.
responsetype json/xml Format of the response (json recommended).
phone numberPhone_NumberInsert the client’s phone number.
leed idleed_idCall ID.

Note: This endpoint uses body parameters for authentication instead of tokens or headers.

Request Examples:

GET:

curl -X GET "https://DOMAIN.croco-dial.net/goAPIv2/goReports/goAgent/goAPI.php?goAction=agent_summary_stats&goUser=MyUser&goPass=MyPass&goAction=goGetCustomerInfo&responsetype=json"json&phone_number=PhoneNumer&lead_id=MyLeadID"

POST (Form Data)

If you prefer to send the data as form parameters:

curl -X POST "https://DOMAIN.croco-dial.net/goAPIv2/goReports/goAPI.php" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "goAction=agent_summary_stats" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json"\
  --data-urlencode "phone number=Phone_Number"

  Example Response

{
    "result": "success",
    "lead_info": {
        "lead_id": 14246,
        "list_id": 22799125,
        "title": ""Lic",
        "first_name": ""Bruno",
        "middle_initial": ""M",
        "last_name": ""Macias",
        "phone_number": "8004321000",
        "alt_phone": ""5587654321",
        "email": ""brunoramiro@email.com",
        "address1": ""Av. Reforma 123",
        "address2": ""Interior 4B",
        "address3": ""Col. Centro",
        "city": ""Guadalajara",
        "state": ""Jalisco",
        "province": ""Ontario",
        "postal_code": ""44100",
        "country_code": ""MX",
        "gender": "U",
        "date_of_birth": "1825-10-23",
        "status": "PU",
        "user": "Bruno",
        "comments": "Additional information was requested."
    },
    "custom_info": null,
    "is_customer": 0
}


Data Fields per Agent

Field Description
Lead_idresult InternalIndicates customerthe identifieroverall status of the API operation (e.g., success, error, validation_failed).
calls_handledlead_info TotalContainer numberobject ofthat callsholds handledthe structured information related to the lead.
manual_callslead_id OutboundUnique manualidentifier callsassigned to the lead within the system. Used as the primary reference for subsequent operations.
inbound_callslist_id CallsIdentifier receivedof fromthe inboundcampaign queuesor list to which the lead is assigned, enabling segmentation and organization.
dialer_callstitle CallsHonorific initiatedor byprofessional title associated with the dialerlead (e.g., Mr., Ms., Dr.).
xfer_outfirst_name CallsGiven transferredname out byof the agentlead.
xfer_inmiddle_initial CallsMiddle transferredname toinitial of the agentlead, if available.
voicemaillast_name VoicemailsFamily leftname or receivedsurname of the lead.
deniedphone_number CallsPrimary deniedcontact phone number used for outbound or blockedinbound communication.
noaalt_phone NotSecondary answeredor (Noalternative Answer)contact phone number.
salesemail CallsEmail markedaddress asassociated saleswith the lead for electronic correspondence.
WITaddress1 CallsPrimary markedstreet withaddress “WIT”including dispositionstreet name and number.
login_timeaddress2 TotalAdditional loginaddress timedetails (insuch seconds)as apartment, suite, or unit number.
pauseaddress3 TotalOptional pauseextended timeaddress (infield seconds)depending on system configuration.
breakcity TotalCity breakof timeresidence (inassociated seconds)with the lead’s address.
talkstate TotalState talkor timeadministrative (inregion seconds)of the lead’s address.
most_dispoprovince MostProvince frequentor callterritorial dispositiondivision, used when applicable based on country standards.
portfoliopostal_code AssociatedZIP portfoliocode nameor postal code corresponding to the lead’s address.
profilecountry_code Agent'Two-letter country code compliant with ISO 3166-1 alpha-2 standards (e.g., US, MX, CA).
genderGender classification of the lead (M = Male, F = Female, U = Unknown).
date_of_birthLead’s roledate of birth formatted according to the ISO 8601 standard (YYYY-MM-DD).
statusOperational status code assigned to the lead within the system, determined by internal business logic.
userSystem user or functionagent profilecurrently assigned to manage the lead.
commentsFree-text field used to store notes or annotations related to the lead.
custom_infoObject containing configurable custom fields defined by the system; may return null if no custom fields are present.
is_customerLogical indicator specifying whether the lead has been converted into a customer (1) or remains a prospect (0).