# Get Specific Call Time Configuration

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

###  **Description**

This endpoint retrieves detailed information about a specific call time configurations. This includes the default call time ranges for each day of the week, any custom after-hours configurations, and comments associated with the call time settings. It is useful for understanding the permitted call windows and any specific rules applied to different days.

## 🔗 **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%; height: 179.25px;"><colgroup><col style="width: 23.0013%;"></col><col style="width: 24.0695%;"></col><col style="width: 52.9193%;"></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: 29.7167px;"><td style="height: 29.7167px;">goAction</td><td style="height: 29.7167px;">goGetAllCalltimes</td><td style="height: 29.7167px;">Action to perform</td></tr><tr style="height: 29.7167px;"><td style="height: 29.7167px;">goUser</td><td style="height: 29.7167px;">MyUser</td><td style="height: 29.7167px;">API authorized user.</td></tr><tr style="height: 29.7167px;"><td style="height: 29.7167px;">goPass</td><td style="height: 29.7167px;">MyPass</td><td style="height: 29.7167px;">Authorized user's password.</td></tr><tr style="height: 29.7167px;"><td style="height: 29.7167px;">call\_time\_id</td><td style="height: 29.7167px;">"weekdays-example"</td><td style="height: 29.7167px;">The ID of the call time configuration you want to retreive.</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>

**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=goGetCalltimeInfo&goUser=MyUser&goPass=MyPass&responsetype=json&call_time_id=weekdays-example"
```

#### **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=goGetCalltimeInfo" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json" \
  --data-urlencode "call-time-id=weekdays-example" \
```

####  **Example Response**

```json
{
    "result": "success",
    "id": 14,
    "call_time_id": "weekdays-example",
    "call_time_name": "weekdays-example",
    "call_time_comments": "weekdays-example_7am6pm_7am4pm-Saturday",
    "ct_default_start": 700,
    "ct_default_stop": 1800,
    "ct_sunday_start": 0,
    "ct_sunday_stop": 0,
    "ct_monday_start": 700,
    "ct_monday_stop": 1800,
    "ct_tuesday_start": 700,
    "ct_tuesday_stop": 1800,
    "ct_wednesday_start": 700,
    "ct_wednesday_stop": 1800,
    "ct_thursday_start": 700,
    "ct_thursday_stop": 1800,
    "ct_friday_start": 700,
    "ct_friday_stop": 1800,
    "ct_saturday_start": 700,
    "ct_saturday_stop": 1600,
    "ct_state_call_times": "",
    "default_afterhours_filename_override": "",
    "sunday_afterhours_filename_override": "",
    "monday_afterhours_filename_override": "",
    "tuesday_afterhours_filename_override": "",
    "wednesday_afterhours_filename_override": "",
    "thursday_afterhours_filename_override": "",
    "friday_afterhours_filename_override": "",
    "saturday_afterhours_filename_override": "",
    "user_group": "---ALL---",
    "ct_holidays": ""
}
```

### <span class="_fadeIn_m1hgl_8">📌 </span>**<span class="_fadeIn_m1hgl_8">Response </span><span class="_fadeIn_m1hgl_8">Fields</span>**

<table border="1" id="bkmrk-field-description-id" style="width: 94.4048%; border-collapse: collapse; border-color: rgb(206, 212, 217); height: 1001.33px;"><thead><tr style="height: 29.7167px;"><th style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**Field**</th><th style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">**Description**</th></tr></thead><tbody><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**id**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">The unique identifier for the call time entry.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**call\_time\_id**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">The ID of the call time configuration.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**call\_time\_name**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">The name of the call time configuration.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**call\_time\_comments**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Additional comments or description for the call time configuration.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_default\_start**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Default start time in military format (HHMM).</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_default\_stop**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Default stop time in military format (HHMM).</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_sunday\_start**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Call start time for Sunday (HHMM). The value 0 to use the default settings.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_sunday\_stop**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Call stop time for Sunday (HHMM). The value 0 to use the default settings.  
</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_state\_call\_times**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Custom state-specific call times, if any.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**default\_afterhours\_filename\_override**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Custom audio file for after-hours calls (default).</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**sunday\_afterhours\_filename\_override**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Custom audio file for after-hours calls on Sunday.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**user\_group**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">The user group associated with this call time configuration.</td></tr><tr style="height: 29.7167px;"><td style="width: 34.0873%; border-color: rgb(206, 212, 217); height: 29.7167px;">**ct\_holidays**</td><td style="width: 65.9022%; border-color: rgb(206, 212, 217); height: 29.7167px;">Configured holidays for the call time setting.</td></tr></tbody></table>