Status

Retrieves user current status

Retrieves current status of given user.

GEThttp://127.0.0.1:8888/api/users/{id}/status
Path parameters
id*all of

The unique ID of user.

Response

OK

Body
statusenum

Status of extension:

  • ONLINE
  • ON_CALL
  • OFFLINE
ONLINEON_CALLOFFLINE
presenceenum

The current status of extension:

  • DO_NOT_DISTURB:
  • AVAILABLE:
  • AWAY:
  • BUSINESS_TRIP:
  • LUNCH:
DO_NOT_DISTURBAVAILABLEAWAYBUSINESS_TRIPLUNCH
presence_notestring

The presence note.

registrationarray of object

Collection of registration information.

enable_dndboolean

Do Not Disturb enabled or not.

enable_acbboolean

Automatic Callback enabled or not.

Request
const response = await fetch('http://127.0.0.1:8888/api/users/{id}/status', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "status": "ONLINE",
  "presence": "DO_NOT_DISTURB",
  "presence_note": "text",
  "registration": [
    {
      "instance_id": "text",
      "user_agent": "text",
      "application": "text",
      "ip": "text",
      "enable_push": false,
      "contact_address": "text"
    }
  ],
  "enable_dnd": false,
  "enable_acb": false
}