# Get All Profiles

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

###  **Description**

This endpoint retrieves a list of all available profiles configured in the system. Each profile is represented with its unique identifier (`profile_id`) and its display name (`profile_name`). This endpoint also provides additional data for profiles, such as disposition sets and the option to edit each profile.

## 🔗 **URL**

#### https://**DOMAIN**.croco-dial.net/goAPIv2/goUsers/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: 23.0031%;"></col><col style="width: 20.0234%;"></col><col style="width: 56.9715%;"></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;">**getAllProfiles**</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;">Password for the API authorized user.</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/goUsers/goAPI.php?goAction=getAllProfiles&goUser=MyUser&goPass=MyPass&responsetype=json"
```

#### **POST:**

If you prefer to send the data as form parameters:

```bash
curl -X POST "https://DOMAIN.croco-dial.net/goAPIv2/goUsers/goAPI.php" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "goAction=getAllProfiles" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json" 
```

####  **Example Response**

```json
{
  "result": "success",
  "data": [
    {
      "profile_id": "COLLECTIONS",
      "profile_name": "COLLECTIONS"
    },
    {
      "profile_id": "CUSTOMER_SERVICE",
      "profile_name": "CUSTOMER_SERVICE"
    },
    {
      "profile_id": "SALES_SUPPORT",
      "profile_name": "SALES_SUPPORT"
    }
  ],
  "use_profile": 1,
  "profiles": {
    "headers": [ ... ],
    "rows": [
      {
        "id": 1,
        "profile_id": "COLLECTIONS",
        "profile_name": "COLLECTIONS",
        "disposition_set": "PAYMENT FOLLOW-UP",
        "action": "<button class=\"btn btn-success btn-normal edit_profile\" profile=\"COLLECTIONS_TEAM\" profile_type=\"profile\" profile_id=\"1\" title=\"Edit\"><i class=\"fa fa-pencil\"></i></button>"
      },
      {
        "id": 2,
        "profile_id": "CUSTOMER_SERVICE",
        "profile_name": "CUSTOMER_SERVICE",
        "disposition_set": "GENERAL INQUIRIES",
        "action": "<button class=\"btn btn-success btn-normal edit_profile\" profile=\"CUSTOMER_SERVICE\" profile_type=\"profile\" profile_id=\"2\" title=\"Edit\"><i class=\"fa fa-pencil\"></i></button>"
      },
      {
        "id": 3,
        "profile_id": "SALES_SUPPORT",
        "profile_name": "SALES_SUPPORT",
        "disposition_set": "NEW LEADS",
        "action": "<button class=\"btn btn-success btn-normal edit_profile\" profile=\"SALES_SUPPORT\" profile_type=\"profile\" profile_id=\"3\" title=\"Edit\"><i class=\"fa fa-pencil\"></i></button>"
      }
    ]
  }
}

```