--- title: NotifyClient - Client description: The NotifyClient API provides methods that enable you to use Notify telephony functionality, such as making and receiving calls from a web browser.Instantiates a new Notify WebRTC Client object.Registers an event handler to listen for changes in a Notify client.Calls the specified phone number or the phone number associated with a specified user.Kills the current Notify client, rendering it unusable.Forwards an ongoing incoming or outgoing phone call to either a different phone number or a different WebRTC client.Returns a list of clients available to accept calls.Returns the parent call identifier for a specified call identifier, if one exists.Returns the normalized status of the current call.End the current call.Initializes the client driver.Mute or unmute the current client.Answers and connects to an incoming call from a WebRTC client.Send one or more DTMF-valid digits over the current call.Sets the caller ID for the current client session.Sets the availability of an active WebRTC client agent. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/c\_Notify2WebRTCClient.html release: australia product: API Reference classification: api-reference topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 10 breadcrumb: [Client API reference, API reference, API implementation and reference] --- # NotifyClient- Client The NotifyClient API provides methods that enable you to use Notify telephony functionality, such as making and receiving calls from a web browser. Several NotifyClient methods take a callback function as a parameter. Because NotifyClient method calls are made asynchronously, these methods can't return a value directly. Use the callback function to parse the returned data, such as by assigning variables or making other API calls. **Parent Topic:**[Client API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/api-client.md) ## NotifyClient - Client\(Object notifyConfig, Boolean initializeVendorClientLazily\) Instantiates a new Notify WebRTC Client object.
| Name | Type | Description |
|---|---|---|
| initializeVendorClientLazily | Boolean | Flag that indicates whether to use the autoSelectVendorCallback function passed in the setCallerId\(\) method to automatically set the caller's associated vendor \(**notifyConfig.vendor** does not need to be defined in the constructor\).- false: Default. Do not use the autoSelectVendorCallback function to set the caller's vendor. The vendor must be set in the constructor. - true: Use the autoSelectVendorCallback function to define the vendor when the caller ID is set. |
| notifyConfig | Object | JSON object that contains the configuration settings for the Notify WebRTC Client. |
| notifyConfig.autoLoadScriptResources | Boolean | Flag that indicates how to load the core JS library needed by the vendor client.- false: Default. Use vendor specific codes to load the required vendor JS library \(enables backwards compatibility\). - true: Use notifyClient.js to load the core JS library. |
| notifyConfig.callerId | Number | Registered Notify number to use. Do not directly set this value. Use the method notifyClient.setCallerID\(\) to set this value. |
| notifyConfig.forceRefreshToken | Boolean | Flag that indicates whether to auto-renew expired client tokens.- false: Do not automatically renew client tokens when they expire. - true: Default. Automatically renew client tokens when they expire. |
| notifyConfig.skipParentId | Boolean |
Flag that indicates whether to immediately invoke the onIncoming caller for incoming calls.- false: Default. Do not immediately invoke the onIncoming event handler.
- true: Immediately invoke the onIncoming event handler. By setting this flag, if there is another call, where the ` |
| notifyConfig.vendor | Constant | Vendor to which the caller belongs.- SNC.Notify.Vendor.TWILIO\_DIRECT - SNC.Notify.Vendor.TWILIO \(older, deprecated Twilio driver\) |
| Name | Type | Description |
|---|---|---|
| event | String | Name of the event to listen for. Instead of passing strings, use the constants defined in `SNC.Notify.STD_EVENTS`. - CALL\_START: call has started and is in progress. - CALL\_CANCEL: caller canceled the call. - CALL\_INIT: WebRTC connected to a call \(incoming or outgoing\). - CALL\_DISCONNECT: current call has been disconnected. - ERROR: Error occurred. Parameters: `message(string), errCode(string)` - `message`: error message to display. - `errCode`: Optional. Associated error code. - INCOMING\_CALL: Call is coming in. Parameters: `from(string), to(string), callId(string), parentId(string), sysId(string), isFromClient(boolean)` - `from`: caller's phone number. - `to`: called phone number. - `callId`: SID of the call. - `parentId`: parent notify\_call reference. If skipParentId is set to true, this parameter should not be passed. - `sysId`: WebRTC-to-WebRTC calls only. Unique identifier \(sys\_id\) of the caller. - `isFromClient`: WebRTC-to-WebRTC calls only. Flag that indicates whether the call is from another WebRTC client. - CALL\_MUTE: client is muted. - CALL\_UNMUTE: client is unmuted. - OFFLINE: WebRTC session is not active. - ONLINE: WebRTC session is ready. Must be set after calling the init\(\) method. |
| Name | Type | Description |
|---|---|---|
| identifier | Object | JSON object that contains either a phone number to call or the sys\_id of a WebRTC user. Passing a user sys\_id causes the call to be made through browser-to-browser communication.You can obtain the user sys\_id from the Notify WebRTC Session table. **Note:** If you provide both a phone number and user sys\_id, the method only uses the phone number. |
| Name | Type | Description |
|---|---|---|
| callback | Function | Function to use to parse the list of clients. This function accepts a single parameter, an array of JSON objects with the following format:``` [{ sys_id: "...", // user's sys_id name: "..." // user's name }] ``` |
| Name | Type | Description |
|---|---|---|
| muted | Boolean | Mutes or unmutes the current call.- false: \(or any non-true value\) unmutes the current call. - true: mutes the current call. |
| Name | Type | Description |
|---|---|---|
| value | String | Phone number to use to make and receive calls. |
| autoSelectVendorCallback | Function | **Optional.** **initializeVendorClientLazily** must be set to "true" in the constructor to use this function, otherwise an error is thrown. Name of the callback function to call once the vendor is automatically set for the specified phone number. With this option, the vendor does not need to be specified in the constructor \(**notifyConfig.vendor**\). Auto vendor selection is an asynchronous operation. Therefore, this callback is required to indicate when it is safe to call notifyConfig.init\(\), as this method requires that the vendor be set before it is called. In addition, you must also check if **notifyConfig.vendor** has been set in the callback to ensure that a vendor has been specified. |
| Name | Type | Description |
|---|---|---|
| available | boolean | Flag that indicates whether an active WebRTC client wants to receive calls.- false: client does not want to receive calls. - true: client does want to receive calls. |