The Feedback Management APIs provide near real-time access to survey data collected in CXone. They enable administrators and developers to search, retrieve, and export survey responses, invitation records, and survey metadata for integration with internal CXone components and external systems such as reporting, analytics, and business intelligence tools.
The Feedback Management APIs are available for CXone customers with Feedback Management (survey) capabilities enabled.
To use any Feedback Management API, first, you need to authenticate users.
Use the bearer token-based authentication method to authenticate users for the Feedback Management APIs. This method uses the OAuth2.0 method for advanced security.
To authenticate APIs using this method, you need to include an access token within the Authorization header of each request while making an API call. To obtain the access token, follow the steps provided below in the Generating your access token section.
To generate your access token, you need to perform the following steps:
First, you must register your enterprise with NICE. Then, obtain the API key at the user level. See the API Key section of your user profile to get your API key.
To obtain your access key ID and access secret key, you must send your API key and your enterprise identifier to NICE Feedback Management in your HTTPS request header.
For example:
Pass the following header parameters to retrieve your access token:
| Header Parameter | Description |
|---|---|
token |
The API key you generated in step 1. |
tenantId |
Your enterprise identifier. You can get the enterprise identifier from the Admin > Advanced Admin > System Settings > Company tab > Enterprise ID field. |
Sample Response Body
{
"accessKey": {
"accessKeyId": "xxxxxxxxxxxxxxxxxxxxxxxxx",
"accessKeySecret": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
}
Once you have your access keys obtained from step 2, send an HTTPS request to our token service, including the access keys and your enterprise identifier, to receive your access token.
For example:
Pass the following header parameters to retrieve your access keys:
| Header Parameter | Description |
|---|---|
accessKeyId |
The access key ID you generated in step 2. |
accessKeySecret |
The access key secret you generated in step 2. |
tenantId |
Your enterprise identifier. You can get the enterprise identifier from the Admin > Advanced Admin > System Settings > Company tab > Enterprise ID field. |
Sample Response Body
{
"accessToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"expiresIn": 3600,
"tokenType": "bearer"
}