# Retrieves computers where the specified user is logged on, with resource IDs, for chat initiation Returns a list of computers associated with the given login name and domain name, along with their resource IDs, used to identify the target computer when initiating a chat session with a specific user. ## Endpoint `GET /dcapi/tools/chat/computerNames` ## Request URL `https://{serverurl}/dcapi/tools/chat/computerNames` [{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.Tools.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** `application/json` ### Query Parameters - **loginName** `string` — Optional Login name (username) of the user to look up. Used to find computers where this user is currently logged on - **domainName** `string` — Optional Domain name of the user account. Used with loginName to uniquely identify the user across domains ## Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/tools/chat/computerNames \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body — application/json `JSON Object` - **computers** `array` Array of computer objects with resourceId, userResourceId, computerName, domainName, and isOnline for chat session targeting ## Sample Response: HTTP 200 ```json { "computers": [ { "resourceId": 101, "computerName": "WIN-DESKTOP-01", "userResourceId": 5001, "domainName": "CORP", "isOnline": true } ] } ``` ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.