Get All Profiles
API: getAllProfiles
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
Note: Replace DOMAIN with the specific domain you want to query.
📝 Required Parameters
| Parameter | Value | Description |
| goAction | getAllProfiles | Action to perform. |
| goUser | MyUser | API authorized user. |
| goPass | MyPass | Password for the API authorized user. |
| responsetype | json/xml | Format of the response (json recommended). |
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/goUsers/goAPI.php?goAction=getAllProfiles&goUser=MyUser&goPass=MyPass&responsetype=json"
POST:
If you prefer to send the data as form parameters:
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
{
"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>"
}
]
}
}
No Comments