# Outbound Call Detail Records

## <span style="color: rgb(2, 106, 73);">**API: outbound\_cdr**</span>

### **Description**

Fetch detailed records of outbound calls made through the last 24 hours or a specific time given. Results include per-call information like timestamp, caller, agent, disposition, campaign, and wait time. Also includes a summary of total and handled calls by campaign.

## 🔗 **URL**

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

<p class="callout info align-left">**Note:** Replace `DOMAIN` with the specific domain you want to query.</p>

### **📝 Required Parameters**

<table border="1" id="bkmrk-parameter-value-desc" style="border-collapse: collapse; width: 100%; height: 178.667px;"><colgroup><col style="width: 22.9972%;"></col><col style="width: 20.0399%;"></col><col style="width: 57.0543%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Parameter**</td><td style="height: 29.6px;">**Value**</td><td style="height: 29.6px;">**Description**</td></tr></thead><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">goAction</td><td style="height: 29.6px;">outbound\_cdr</td><td style="height: 29.6px;">Action to perform</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">goUser</td><td style="height: 29.6px;">MyUser</td><td style="height: 29.6px;">API authorized user.</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">goPass</td><td style="height: 29.6px;">MyPass</td><td style="height: 29.6px;">Authorized user's password.</td></tr><tr style="height: 30.6667px;"><td style="height: 30.6667px;">responsetype</td><td style="height: 30.6667px;">json/xml</td><td style="height: 30.6667px;">Format of the response (`json` recommended).</td></tr></tbody></table>

### **Optional Parameters**

<table border="1" id="bkmrk-parameter-value-desc-1" style="border-collapse: collapse; width: 100%; height: 169.417px;"><colgroup><col style="width: 23.0008%;"></col><col style="width: 28.0062%;"></col><col style="width: 48.9811%;"></col></colgroup><thead><tr style="height: 29.7167px;"><td style="height: 29.7167px;">**Parameter**</td><td style="height: 29.7167px;">**Value**</td><td style="height: 29.7167px;">**Description**</td></tr></thead><tbody><tr style="height: 31.0667px;"><td style="height: 31.0667px;">tenant</td><td style="height: 31.0667px;">\['AAA', 'BBB'\]</td><td style="height: 31.0667px;"><span class="_fadeIn_m1hgl_8">A </span><span class="_fadeIn_m1hgl_8">list </span><span class="_fadeIn_m1hgl_8">of </span><span class="_fadeIn_m1hgl_8">tenants </span><span class="_fadeIn_m1hgl_8">to </span><span class="_fadeIn_m1hgl_8">filter </span><span class="_fadeIn_m1hgl_8">the </span><span class="_fadeIn_m1hgl_8">results. (Three characters only)</span></td></tr><tr style="height: 31.0667px;"><td style="height: 31.0667px;">profile</td><td style="height: 31.0667px;">\['LOANS', 'COLLECTIONS'\]</td><td style="height: 31.0667px;"><span class="_fadeIn_m1hgl_8">A </span><span class="_fadeIn_m1hgl_8">list </span><span class="_fadeIn_m1hgl_8">of </span><span class="_fadeIn_m1hgl_8">profiles </span><span class="_fadeIn_m1hgl_8">to </span><span class="_fadeIn_m1hgl_8">filter </span><span class="_fadeIn_m1hgl_8">the </span><span class="_fadeIn_m1hgl_8">results.</span></td></tr><tr style="height: 46.5px;"><td style="height: 46.5px;">fromDate</td><td style="height: 46.5px;">`YYYY-MM-DD`</td><td style="height: 46.5px;"><span class="_fadeIn_m1hgl_8">The </span><span class="_fadeIn_m1hgl_8">start </span><span class="_fadeIn_m1hgl_8">date </span><span class="_fadeIn_m1hgl_8">for </span><span class="_fadeIn_m1hgl_8">the </span><span class="_fadeIn_m1hgl_8">report. </span><span style="color: rgb(22, 145, 121);"><span class="_fadeIn_m1hgl_8">If </span><span class="_fadeIn_m1hgl_8">no </span><span class="_fadeIn_m1hgl_8">date </span><span class="_fadeIn_m1hgl_8">range </span><span class="_fadeIn_m1hgl_8">is </span><span class="_fadeIn_m1hgl_8">provided, </span><span class="_fadeIn_m1hgl_8">the </span><span class="_fadeIn_m1hgl_8">endpoint </span><span class="_fadeIn_m1hgl_8">defaults </span><span class="_fadeIn_m1hgl_8">to </span><span class="_fadeIn_m1hgl_8">returning </span><span class="_fadeIn_m1hgl_8">records </span><span class="_fadeIn_m1hgl_8">from </span><span class="_fadeIn_m1hgl_8">the </span><span class="_fadeIn_m1hgl_8">last </span><span class="_fadeIn_m1hgl_8">24 </span><span class="_fadeIn_m1hgl_8">hours.</span></span></td></tr><tr style="height: 31.0667px;"><td style="height: 31.0667px;">toDate</td><td style="height: 31.0667px;">`YYYY-MM-DD`</td><td style="height: 31.0667px;">The end date for the report.</td></tr></tbody></table>

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

### **Request Examples:**

#### **GET:** 

```bash
curl -X GET "https://DOMAIN.croco-dial.net/goAPIv2/goReports/goAPI.php?goAction=outbound_cdr&goUser=MyUser&goPass=MyPass&responsetype=json"
```

#### **POST (Form Data):**

If you prefer to send the data as form parameters:

```bash
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" \
  --data-urlencode "goUser=MyUSer" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json"

```

####  **Example Response**

```json
{
    "result": "success",
    "data": {
        "rows": [
            {
                "call_date": "2025-05-02 06:58:53",
                "src": "8888888888",
                "dst": "3333333333",
                "agent": "Agent.Example",
                "campaign": "CAMPAIGN-1",
                "call_type": "Dialer",
                "disposition": "Voicemail",
                "carrier_disposition": "Answer",
                "term_reason": "AGENT",
                "queue_time": "0",
                "portfolio": "AAA",
                "vendor_lead_code": "11111111-22222222...",
                "lead_id": "11111111",
                "list_id": "222222222222222",
                "entry_date": "2025-05-02 06:55:08"
            },
            {
                "call_date": "2025-05-02 06:58:54",
                "src": "2222222222",
                "dst": "4444444444",
                "agent": "Agent.Example",
                "campaign": "CAMPAIGN-2",
                "call_type": "Dialer",
                "disposition": "Voicemail",
                "carrier_disposition": "Answer",
                "term_reason": "AGENT",
                "queue_time": "37",
                "portfolio": "BBB",
                "vendor_lead_code": "22222222-33333333...",
                "lead_id": "222222222",
                "list_id": "33333333333333",
                "entry_date": "2025-05-02 06:55:08"
            },
          ...
       ],
        "headers": [
          ...
        ],
        "summary_headers": [
          ...
        ],
        "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
            },
          ...
        ]
    }
}
```