# Resolves the computer resource ID from a user resource ID for chat initiation Resolves the computer resource ID from the given user resource ID and optional computer name. Used to target the correct endpoint when initiating a chat session for a specific user. ## Endpoints **GET** `/dcapi/tools/chat/{userId}/resourceID` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/tools/chat/{userId}/resourceID` ## Scope `DesktopCentralCloud.Tools.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory**: `application/json` ### Path Parameters - **userId** `string` — **Mandatory** The unique identifier of the user ### Query Parameters - **computerName** `string` — Optional Name of the computer to resolve the resource ID for. If omitted, returns the first matching computer for the user. ## Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/tools/chat/{userId}/resourceID \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body: `application/json` `JSON Object` - **computerResourceId** `long` Resource identifier of the computer associated with the session - **computerName** `string` Name of the computer ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 ```json { "computerName": "WIN-DESKTOP-01", "computerResourceId": 101 } ``` ![ ](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.