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 | API's name. Action to |
|
| 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 |
| tenant | ['AAA', 'BBB'] | A list of tenants to filter the results. (Three characters only) |
| profile | [' |
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 Name | Description |
|---|---|
call_date |
Date and time when the call started. |
enter_on_queue |
Timestamp when the caller entered the queue. |
src |
Callerโs phone number. |
dst |
Destination phone number (usually the DID or agent extension). |
carrier |
The SIP carrier or trunk that handled the call. |
uniq1 |
Unique call identifier. Often used for logging and tracking. |
queue |
Queue name where the call was routed. |
agent |
Agent who handled the call. |
campaign |
Campaign associated with the call. |
disposition |
Final status of the call (e.g., Answered, Denied, Live Disconnect). |
term_reason |
Call termination reason (e.g., AGENT, CALLER, QUEUE_TIMEOUT). |
queue_time |
Time in seconds the caller spent in queue. |
call_duration |
Total duration of the call in seconds. |
queue_position |
Position of the caller in the queue at entry. |
portfolio |
Portfolio or business unit associated with the call. |
lead_id |
Identifier of the lead/contact associated with the call. |
list_id |
Name or ID of the list from which the lead came. |
vendor_lead_code |
Lead code from the vendor (usually the customer's name or tag). |