Data Pass API

The purpose of the DataPassAPI is to send custom data to the agent about the context of the engagement or the customer's experience.

You should not directly instantiate the DataPassAPI class. Instead, use the DataPassBuilder builder class

  1. Using DataPassBuilder
  2. DataPassAPI methods
  3. Accessing Response
  4. Code Example
Public Methods

You can use the Builder public methods to add data pass properties and value. The properties and values are then sent to the Nuance Messaging System. At least one property and value are required to invoke the Builder instance build method.

To create a DataPassAPI object, you must invoke the Builder instance build method.

Public Methods
Public Methods
  • public int getStatusCode()

    getStatusCode method returns following values which denotes the status of this request.


    200: Message was accepted by server

    400: Request has incorrect parameters.

    401: There is no such chat on server, chat should be started anew

    403: The user does not have sufficient privileges to use the API or to access the requested site.

    500: Server error.



	DataPassAPI dataPass = DataPassAPI.builder().add("Test","tesing")
	.add("Test1","testing1")
    .build();
	dataPass.sendDataPassToAgent();