# Get All Predefined Call Time Settings

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

###  **Description**

This endpoint retrieves all predefined call time configurations in the system. Each configuration defines allowed call time ranges for each day of the week, typically used for campaign scheduling or restrictions.

## 🔗 **URL**

#### https://**DOMAIN**.croco-dial.net/goAPIv2/goCalltimes/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%;"><colgroup> <col style="width: 23%;"></col> <col style="width: 20%;"></col> <col style="width: 57%;"></col> </colgroup><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td>goAction</td><td>goGetAllCalltimes</td><td>Action to perform</td></tr><tr><td>goUser</td><td>MyUser</td><td>API authorized user.</td></tr><tr><td>goPass</td><td>MyPass</td><td>Authorized user's password.</td></tr><tr><td>responsetype</td><td>json/xml</td><td>Format of the response (`json` recommended).</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/goCalltimes/goAPI.php?goAction=goGetAllCalltimes&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/goCalltimes/goAPI.php" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "goAction=goGetAllCalltimes" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json"
```

####  **Example Response**

```json
{
    "result": "success",
    "call_time_id": [
        "24hrs",
        "7am6pm",
        "CLOSED",
        "7am6pmMF",
        "7am8pmMF",
        "24hours"
    ],
    "call_time_name": [
        "24 Hours",
        "7am6pm",
        "CLOSED",
        "7am6pm M to F",
        "7am8pmMF",
        "24 Hours"
    ],
    "ct_default_start": [
        0,
        700,
        2400,
        700,
        700,
        0
    ],
    "ct_default_stop": [
        2400,
        1800,
        2400,
        1800,
        2000,
        2400
    ],
    "ct_sunday_start": [
        0,
        0,
        0,
        0,
        900,
        0
    ],
    "ct_sunday_stop": [
        0,
        0,
        0,
        0,
        1700,
        0
    ],
    "ct_monday_start": [
        0,
        700,
        0,
        700,
        700,
        0
    ],
    "ct_monday_stop": [
        0,
        1800,
        0,
        1800,
        2000,
        0
    ],
    "ct_tuesday_start": [
        0,
        700,
        0,
        700,
        700,
        0
    ],
    "ct_tuesday_stop": [
        0,
        1800,
        0,
        1800,
        2000,
        0
    ],
    "ct_wednesday_start": [
        0,
        700,
        0,
        700,
        700,
        0
    ],
    "ct_wednesday_stop": [
        0,
        1800,
        0,
        1800,
        2000,
        0
    ],
    "ct_thursday_start": [
        0,
        700,
        0,
        700,
        700,
        0
    ],
    "ct_thursday_stop": [
        0,
        1800,
        0,
        1800,
        2000,
        0
    ],
    "ct_friday_start": [
        0,
        700,
        0,
        700,
        700,
        0
    ],
    "ct_friday_stop": [
        0,
        1800,
        0,
        1800,
        2000,
        0
    ],
    "ct_saturday_start": [
        0,
        700,
        0,
        0,
        700,
        0
    ],
    "ct_saturday_stop": [
        0,
        1600,
        0,
        0,
        1600,
        0
    ],
    "user_group": [
        "---ALL---",
        "---ALL---",
        "---ALL---",
        "---ALL---",
        "---ALL---",
        "---ALL---"
    ]
}

```