# Polls the current connection status of an active or recently initiated chat session Returns the current connection state of the specified chat session. Accepts an optional `'userID'` query parameter to scope the response. This is a polling endpoint with a higher throttle threshold. ## Endpoint `GET /dcapi/tools/chat/{sessionId}/chatStatus` ## Request ### Request URL https://[serverurl](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/tools/chat/{sessionId}/chatStatus ### Scope `DesktopCentralCloud.Tools.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (`string`, Mandatory): `application/json` #### Path Parameters - **sessionId** (`string`, Mandatory): The unique identifier of the session #### Query Parameters - **userID** (`long`, Optional): User resource ID to scope the chat status response to a specific user in a multi-user session ### Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/tools/chat/{sessionId}/chatStatus \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 Response body: `application/json` - JSON Object - **sessionId** (`long`): Unique identifier of the chat session - **connectionStatus** (`string`): Current connection state: connected, disconnected, or pending - **agentStatus** (`string`): Agent availability status: active or inactive ### Sample Response ```json { "connectionStatus": "connected", "sessionId": 998877665544, "agentStatus": "active" } ``` ### Possible Response Codes - **200**: HTTP code ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **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.