Get My Registration Status

Retrieves the registration status of the current extension user across all clients.

Request URL

GET {base_url}/uc-cconfig/api/v1/users/current-status

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Registration_Status> The registration status of the current user.
Registration_Status
Parameter Type Description
extension String The extension number of the user.
tenantCode String The tenant code that the user belongs to.
onlineStatus Object<Online_Status> The online status of the user across all clients.
Online_Status
Parameter Type Description
sip Object<Client_Status> The registration status of the SIP client.
mobile Object<Client_Status> The registration status of the mobile client.
desktop Object<Client_Status> The registration status of the desktop client.
web Object<Client_Status> The registration status of the web client.
userOnlineStatus String

The overall online status of the user:

  • USER_ONLINE: The user is online.
  • USER_OFFLINE: The user is offline.
Client_Status
Parameter Type Description
status String

The registration status of the client:

  • SIP_ONLINE
  • SIP_OFFLINE
  • SIP_UNAVAILABLE
  • MOBILE_ONLINE
  • MOBILE_OFFLINE
  • DESKTOP_ONLINE
  • DESKTOP_OFFLINE
  • WEB_ONLINE
  • WEB_OFFLINE
source Array<Register_Source> The list of the registration sources of the client.
isRegistered Boolean

Whether the client is registered.

  • true: Registered.
  • false: Not registered.
Register_Source
Parameter Type Description
address String The IP address of the registration source.
platform String The platform of the registration source, such as IOS.
isRegistered Boolean

Whether the registration source is registered.

  • true: Registered.
  • false: Not registered.
regCallId String The registration call ID of the registration source.

Example

Request example

GET /uc-cconfig/api/v1/users/current-status HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcm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tKV7wR_8jpaKxa6Djkf_x1sA
x-tenant-code: jint

Response example

HTTP/1.1 200 OK
{
  "requestId": "20357d00c33b2efd6ea2f88f34919bff",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "extension": "1000",
    "tenantCode": "jint",
    "onlineStatus": {
      "sip": {
        "status": "SIP_OFFLINE",
        "source": [],
        "isRegistered": false
      },
      "mobile": {
        "status": "MOBILE_ONLINE",
        "source": [
          {
            "address": "112.48.19.183",
            "platform": "IOS",
            "isRegistered": false,
            "regCallId": ""
          }
        ],
        "isRegistered": false
      },
      "desktop": {
        "status": "DESKTOP_OFFLINE",
        "source": [],
        "isRegistered": false
      },
      "web": {
        "status": "WEB_OFFLINE",
        "source": [],
        "isRegistered": false
      },
      "userOnlineStatus": "USER_ONLINE"
    }
  }
}