Retrieve all Users

This function retrieves all users

from the client account.

URL

GET {baseURL}/users

Parameters

None

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the following fields:

FieldTypeData
filterStringThe applied filter. This is reserved for future use.
limitStartIntegerThe first record index. Currently 0, reserved for future use.
limitPageSizeIntegerThe number of records. -1 indicates all records. Reserved for future use.
recordsUsers []An array of users.
countIntegerThe number of records returned.
orderByStringThe field used to sort the records. 
ascendingBooleanWhether the array of records is sorted ascending or descending.
statusIntegerThe return code (also provided by the http status code).

Example

Note, the records array has been shortened for readability.

{
    "filter": "",
    "limitStart": 0,
    "limitPageSize": -1,
    "records": [
        {
            "bTelCallsForwarding": false,
            "bUseWebMail": false,
            "dtPBXTelephoneStatus": null,
...
            "ResellersID": 1,
            "TelStatusID": 0,
            "AgentStatusAfterLogoutRejectedID": null
        }
    ],
    "count": 22,
    "orderBy": "UID",
    "ascending": true,
    "status": 200
}

Retrieve a specific User by ID

This function retrieves a specific user by ID.

URL

GET {baseURL}/users/user/{UsersID}

Parameters

ParameterWhereTypeData
UsersIDURLIntegerThe ID of the user.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the returned data.

FieldTypeData
recordsUsers []An array of users, containing one user.
countInteger1
statusIntegerThe return code (also provided by the http status code).

Example

Note, the record array has been shortened for readability.

{
    "records": [
        {
            "bTelCallsForwarding": false,
            "bUseWebMail": true,
            "dtPBXTelephoneStatus": "2020-07-07T06:20:14.558",
            "bUseWebEmail": true,
...
            "ResellersID": 1,
            "TelStatusID": 0,
            "AgentStatusAfterLogoutRejectedID": null
        }
    ],
    "count": 1,
    "status": 200
}

Retrieve User by UID

This function retrieves one or more users depending on the passed UID. If more than one user is available which matches the UID passed (partial match), then all corresponding users will be returned.

URL

GET {baseURL}/users/user?uid={UID}

Parameters

ParameterWhereTypeData
UIDQueryStringThe UID of the user(s) to retrieve.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the returned users.

FieldTypeData
recordsUser []

An array of users.

countIntegerThe number of records returned.
statusIntegerThe return code (also provided by the http status code).

Example

Note, the records array has been shortened for readability.

{
    "records": [
        {
            "bTelCallsForwarding": false,
            "bUseWebMail": true,
            "dtPBXTelephoneStatus": "2020-07-07T06:20:14.558",
...
            "ResellersID": 1,
            "TelStatusID": 0,
            "AgentStatusAfterLogoutRejectedID": null
        }
    ],
    "count": 2,
    "status": 200
}
  • No labels