Skip to main content

Inbound Call Detail Records

API: inbound_cdr

Description

Fetchprovides detailed recordsinformation ofabout outboundinbound calls madehandled throughby thecrocodial. lastIt 24includes hours.timestamps, Results include per-call information like timestamp, caller, agent, disposition, campaign,caller and waitdestination time.numbers, Also includes a summary of totalqueue and handledcampaign callsmetadata, byagent campaign.assignments, and call outcomes. This API is useful for analyzing call flow, queue behavior, and agent performance in inbound call operations.

๐Ÿ”— URL

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

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

๐Ÿ“ Required Parameters

Parameter Value Description
goAction outbound_cdrinbound_cdr API's name. Action to performperform.
goUser MyUser API authorized user.
goPass MyPass Authorized user's password.
responsetype json/xml Format of the response (json recommended).

Optional Parameters

Parameter Value Description
user['example.user1', 'example.user2']A list of specific users to include in the report.
tenant ['AAA', 'BBB'] A list of tenants to filter the results. (Three characters only)
profile ['SERVERS'LOANS', 'COLLECTIONS'] A list of profiles to filter the results.
fromDate YYYY-MM-DD The start date for the report. If no date range is provided, the endpoint defaults to returning records from the last 24 hours.
toDate YYYY-MM-DD The end date for the report.

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/goAPI.php?goAction=outbound_cdrinbound_cdr&goUser=MyUser&goPass=MyPass&responsetype=json"

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=outbound_cdr"inbound_cdr" \
  --data-urlencode "goUser=MyUSer" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json" \
  --data-urlencode "tenant[]=CCC" \
  --data-urlencode "profile[]=COLLECTIONS" \

  Example Response

{
    "result": "success",
    "data": {
        "rows": [
            {
                "call_date": "2025-05-0229 06:58:53"22:23:05",
                "enter_on_queue": "2025-05-29 22:23:33",
                "src": "8888888888"5551234567",
                "dst": "3333333333"5559876543",
                "carrier": "SIP/EXAMPLE1-00000001",
                "uniq1": "1234567890.000001",
                "queue": "EXAMPLE_QUEUE_1",
                "agent": "Agent.Example"Agent001",
                "campaign": "CAMPAIGN-1",
                "call_type": "Dialer"EXAMPLE_CAMPAIGN_A",
                "disposition": "Voicemail",Live "carrier_disposition": "Answer"Disconnect",
                "term_reason": "AGENT"CALLER",
                "queue_time": "0",
                "call_duration": "34",
                "queue_position": "1",
                "portfolio": "AAA"PORTFOLIO_A",
                "lead_id": "10000001",
                "list_id": "Example List",
                "vendor_lead_code": "11111111-22222222...",John "lead_id": "11111111",
                "list_id": "222222222222222",
                "entry_date": "2025-05-02 06:55:08"Doe"
            },
            {
                "call_date": "2025-05-0229 06:58:54"20:07:06",
                "enter_on_queue": "2025-05-29 20:07:15",
                "src": "2222222222"5557654321",
                "dst": "4444444444"5552468135",
                "carrier": "SIP/EXAMPLE2-00000002",
                "uniq1": "1234567890.000002",
                "queue": "EXAMPLE_QUEUE_2",
                "agent": "Agent.Example"Agent002",
                "campaign": "CAMPAIGN-2",
                "call_type": "Dialer"EXAMPLE_CAMPAIGN_B",
                "disposition": "Voicemail",
                "carrier_disposition": "Answer"Denied",
                "term_reason": "AGENT"CALLER",
                "queue_time": "37"0",
                "call_duration": "140",
                "queue_position": "1",
                "portfolio": "BBB"PORTFOLIO_B",
                "lead_id": "10000002",
                "list_id": "Example List",
                "vendor_lead_code": "22222222-33333333...",Jane "lead_id": "222222222",
                "list_id": "33333333333333",
                "entry_date": "2025-05-02 06:55:08"Smith"
            },
          ...
        ],
        "headers": [
            {
                "title": "Call Date",
                "field": "call_date",
                "formatter": "html"
            },
            {
                "title": "Source",
                "field": "src",
                "formatter": "html"
            },
          ...
        ],
        "summary_headers": [
            {
                "title": "Campaign",
                "field": "campaign_name"
            },
            {
                "title": "Total Leads",
                "field": "total_leads"
            },
          ...
        ],
        "summary_rows": [
            {
                "campaign_name": "CAMPAIGN-1",
                "total_leads": 296,
                "dialable": 296,
                "pending": 0,
                "total_calls": 651,
                "dialer": 526,
                "dialed": 651,
                "manual_calls": 125,
                "handled_calls": 285,
                "total_removed": 0,
                "removed": 127,
                "remove_all_period": 127
            },
            {
                "campaign_name": "CAMPAIGN-2",
                "total_leads": 3031,
                "dialable": 3031,
                "pending": 2018,
                "total_calls": 1013,
                "dialer": 1010,
                "dialed": 1013,
                "manual_calls": 3,
                "handled_calls": 661,
                "total_removed": 0,
                "removed": 11,
                "remove_all_period": 11
            },
          ...
        ]
    }
}

 

๐Ÿ“Œ Response Fields

Field NameDescription
call_dateDate and time when the call started.
enter_on_queueTimestamp when the caller entered the queue.
srcCallerโ€™s phone number.
dstDestination phone number (usually the DID or agent extension).
carrierThe SIP carrier or trunk that handled the call.
uniq1Unique call identifier. Often used for logging and tracking.
queueQueue name where the call was routed.
agentAgent who handled the call.
campaignCampaign associated with the call.
dispositionFinal status of the call (e.g., Answered, Denied, Live Disconnect).
term_reasonCall termination reason (e.g., AGENT, CALLER, QUEUE_TIMEOUT).
queue_timeTime in seconds the caller spent in queue.
call_durationTotal duration of the call in seconds.
queue_positionPosition of the caller in the queue at entry.
portfolioPortfolio or business unit associated with the call.
lead_idIdentifier of the lead/contact associated with the call.
list_idName or ID of the list from which the lead came.
vendor_lead_codeLead code from the vendor (usually the customer's name or tag).