Introduction

The LiveVox Context Data API provides methods that allow for the manipulation of client-specific key-value pairs; these key-value pairs can be associated with different elements (For Example, a call and an account, etc.) in LiveVox depending on the method used. This will provide Clients with a method to attach information that may not be in an account when the file is loaded but is important to assessing things like customer satisfaction or missing account information.

For a general overview of the LiveVox APIs, include security aspects, see the LiveVox API Overview.

Prerequisites

  • To obtain a valid Session ID, you must have successfully logged into the LiveVox platform. See Generating a Session ID for more information.
  • To obtain an Access Token that is used in API requests, you must have an active subscription to the Configuration API. See Access Tokens for details.
  • All messages in this API may be subject to rate limits and other restrictions.

User Roles

Unless otherwise specified in this documentation, for a user to be able to access any data through the Context Data API, the user must belong to either the Sysadmin, Superuser, or Agent role. These roles are defined in the LiveVox Configuration Manager and correspond to users who can access LiveVox configuration data through the LiveVox user interfaces.

API Methods

Call Context Data

The Call Context Data methods allow for the attachment of data to a specific call. Currently, the Read, Update, and Delete methods are available; with options to Read/Delete all key-value pairs or individual key-value pairs. The Create functionality is contained within the Update method, if a key passed in a request does not exist then it will be created.

Delete Context Data

Description:  Deletes all Context Data for a Call.

Method: DELETE /context/call/{session}/{txId}/{account}[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)No

The ID of the Client the call is associated to

sessionsessionIdStringYesThe Session ID of the call to have its Context Data deleted
txIdtransactionIdIntegerYesThe Transaction ID of the call to have its Context Data deleted
accountaccountStringYesThe Account of the call to have its Context Data deleted

Body:

None

Response Code: 204 No Content

Body:

None

Delete Call Context Data

#Request (JSON)
DELETE /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
204 No Content
Content-Type: application/json
CODE

Attempt to delete Call Context Data when none exists

#Request (JSON)
DELETE /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
404 Not Found
Content-Type: application/json
CODE

Delete Context Key

Description:  Deletes a single key value pair from a Calls Context Data.

Method: DELETE /context/call/{session}/{txId}/{account}/{key}[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)No

The ID of the Client the call is associated to

sessionsessionIdStringYesThe Session ID of the call
txIdtransactionIdIntegerYesThe Transaction ID of the call
accountaccountStringYesThe Account of the call
keykeyString

Yes

The key to be deleted

The key is case sensitive.

Body:

None

Response Code: 204 No Content

Body:

None

Delete a single key value pair of a Calls Context Data

#Request (JSON)
DELETE /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1/key1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
204 No Content
Content-Type: application/json
CODE

Read Context Data

Description:  Reads all Context Data for a Call.

Method: GET /context/call/{session}/{txId}/{account}[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)No

The ID of the Client the call is associated to

sessionsessionIdStringYesThe Session ID of the call to be read
txIdtransactionIdIntegerYesThe Transaction ID of the call to be read
accountaccountStringYesThe Account of the call to be read

Body:

None

Response Code: 200 OK

Body:

KeyTypeMandatory?Description
entryArrayNo

The key value pairs associated with a Call.

KeyTypeMandatory?Description
keyStringYes

The unique identifier for the value

The key is case sensitive.

valueStringNoThe value associated to the key

Read Call Context Data

#Request (JSON)
GET /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
200 Ok
Content-Type: application/json
 
{"entry": [
      {
      "key": "Documentatin",
      "value": "testers"
   },
      {
      "key": "Key1",
      "value": "Value1"
   },
      {
      "key": "Key2",
   },
      {
      "key": "Key3",
      "value": "Value3"
   },
      {
      "key": "random",
      "value": "testing"
   }
]}
CODE

Attempt to read Call Context Data when none exists

#Request (JSON)
GET /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
204 Not Found
Content-Type: application/json
 
CODE

Read Context Key

Description:  Reads a single key value pair of a Calls Context Data.

Method: GET /context/call/{session}/{txId}/{account}/{key}[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)No

The ID of the Client the call is associated to

sessionsessionIdStringYesThe Session ID of the call to be read
txIdtransactionIdIntegerYesThe Transaction ID of the call to be read
accountaccountStringYesThe Account of the call to be read
keykeyString

Yes

The key to read

The key is case sensitive.

Body:

None

Response Code: 200 Ok

Body:

Key or AttributeTypeMandatory?Description
valueStringYesThe value associated to the supplied key

Read a single key value pair of a Calls Context Data

#Request (JSON)
GET /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1/Documentation?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
200 Ok
Content-Type: application/json
 
{"value": "testers"}
 
CODE

Update Context Data

Description: Adds/Updates the Context Data associated to a Call. If a  key  included in the request already exists, the  value  associated to the  key  will be updated, but if the  key  does not exist, the key-value pair will be created. 

Method: POST /context/call/{session}/{txId}/{account}[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)No

The ID of the Client the call is associated to

sessionsessionIdStringYesThe Session ID of the call to be updated
txIdtransactionIdIntegerYesThe Transaction ID of the call to be updated
accountaccountStringYesThe Account of the call to be updated

Body:

KeyTypeMandatory?Description
entryArrayYes

The key value pairs will be updated or added.

KeyTypeMandatory?Description
keyStringYes

The unique identifier for the value

The key is case sensitive.

valueStringNoThe value associated to the key

Response Code: 204 No Content

Body:

None

Update/Add Call Context Data

#Request (JSON)
POST /context/call/U70D91T533151E6@10.40.88.32/28479905424/ARB_WSAPI_1?client=7419
Host: localhost.com
Content-Type: application/json
Accept: application/json
 
{"entry":[
{"key":"Key1","value":"Value1"}
,
{"key":"Key2","value":"Value2"}
,
{"key":"Key3","value":"Value3"}
]}

#Response
204 No Content
Content-Type: application/json
 
CODE

Errors

For more information, see the Errors topic on the REST APIs page.

Top of Page