The Get Teams API is part of Voiso's User Management APIs. Use it to obtain a list of all team names and IDs.

Please refer to the detailed API endpoint specification: Get teams

User management

To build integrations, you may want to retrieve the list of the objects and their parameters programmatically before calling other APIs.

For example, when you want to get calls filtered for individual users or specific teams using the Get CDR, you need to specify the user IDs or team IDs to filter data.

The following APIs allow you to retrieve all the details (including IDs) for your contact center users and teams:

  • Get all users associated with your contact center : Get users
  • Get all deleted users associated with your contact center : Get deleted users
  • Get all teams associated with your contact center : Get teams

Making requests

Authentication

The teams API requires the Base URL and the API key of a specific user.

Request parameters

The teams API uses the key parameter: the API key of a specific user representing the user making the request. Based on the user's permissions configured, Voiso provides the data allowed for that particular user.

HTTP request example:

https://cluster1.voiso.com/api/v2/cdr/teams
    ?key=cc7c76b8987a27a...b00ab6c3

JSON request example:

{
  "method": "GET",
  "url": "https://cluster1.voiso.com/api/v2/cdr/teams",
  "params": {
    "key": "cc7c76b8987a27ab5...b89b00ab6c3"
  }
}

Response

The following table describes the elements of the response.

ElementDescriptionTypeNotes
nameThe name of the team.string
idThe ID the system assigns when the team is created.number

Response sample

[
    {
        "name": "Dayshift",
        "id": 5915
    },
    {
        "name": "Nightshift",
        "id": 6045
    },
    {
        "name": "Marketing",
        "id": 8530
    },
    {
        "name": "Support team",
        "id": 8413
    }
]

$# Troubleshooting

The following issues are sometimes encountered:

Invalid User API Key

The teams API requires the user API key to validate the request. If you see this error, "error": "Invalid User API Key", check that you use the correct user API key. For more information about API keys, refer to Authentication.