Business Data API
Business data are custom fields that can be associated with the call's metadata. Using the Business Data API, you can update the values for the existing business data fields for any closed interactions. You cannot add new business data fields using this API.
The Update Business Data API is available in the DEVone Developer Community portal.
For more information about domains and URLs, see Getting Started in the DEVone Developer Community portal.
You can write scripts to call the API periodically instead of retrieving the data manually each time. At any given time, only one user per tenant can call an API. You can only call the API once in a 30 second period.
Before You Start
Before you can start using the Business Data API, you must set up permissions and generate an access token.

-
Set up permissions
Make sure you have the appropriate permissions enabled in Admin > Security > Roles and Permissions to use the Business Data Update API.
-
Access keys:
-
If you're generating access keys for other users, then you need the Admin > General Permissions > Access Key: Create permission.
-
If you're generating access keys from your own user, then you need the Admin > General Permissions > My Access Key: Create permission.
-
-
Entity:
-
To update the business data API, you need the Search & Playback > APIs > Update Business Data permission.
-
-
-
Follow the below steps to generate an access token.
To use these APIs, you must first generate an access token (to be used as an authorization bearer token when calling the Business Data APIs).
-
Go to CXone.
-
Click the app selector
and select Admin.
-
Click Employees.
-
Select the user you're going to generate the access key for.
-
Go to the Access Keys tab and generate an access key.
-
Copy both the Access Key ID and Secret Access Key and save them somewhere safe. If you don't copy the Secret Access Key or if you lose it, you'll need to create a new one.
-
Call this API:
URL: https://<enter your region, this is the subdomain (first 3 characters) of the CXone URL (for example: na1, na2, au1, eu1)>.nice-incontact.com/authentication/v1/token/access-key
Type: POST
Request body:
{
"accessKeyId": <access key>,
"accessKeySecret": <secret>
}
-
Extract the access_token from the response body. Use this string as a bearer token authorization header when calling the Business Data API.
-
Verify the entity permissions—checks are applied and may result in success or unauthorized.
-
PUT ContactID
For a closed interaction, update the existing business data field information for all the segments available for the given ACDContactId.
ACDContactId*: |
string Unique identifier for the ACD contactId segment for which the values in the business data fields to be updated. |

URL: https://na1.test.nice-incontact.com/business-data-manager/v1/business-data/contact/ACDContactID
Type: PUT
[ { "business_data_name1": "text" }, { "business_data_name2": "true/false", }, { "business_data_name3": "numeric", } ]
Response
-
Status 204 - Success.
-
Status 400 - Invalid request. Incorrect date filters, etc.
-
Status 401 - Unauthorized. Invalid credentials.
-
Status 403 - Forbidden.
-
Status 404 - Not Found.
-
Status 500 - Internal Server Error.

https://na1.test.nice-incontact.com/business-data-manager/v1/business-data/contact/70747979