Skip to main content

Get All Portfolios

API: getAllPortfolios


Description

This endpoint retrieves a list of all available portfolios and their corresponding names. Portfolios represent different business segments or client groups in the call center system. Each portfolio is associated with a unique code and a descriptive name.

🔗 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 getAllPortfolios 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=getAllPortfolios&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=getAllPortfolios" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json" 

  Example Response

{
    "result": "success",
    "data": [
        {
            "portfolio": "ABC",
            "portfolio_name": "Alpha Business Corp"
        },
        {
            "portfolio": "XYZ",
            "portfolio_name": "Xylon Technologies"
        },
        {
            "portfolio": "MNO",
            "portfolio_name": "Monolith Solutions"
        },
        {
            "portfolio": "PQR",
            "portfolio_name": "Pioneer Realty Group"
        }
    ]
}