Media Playback APIs

Use the Media Playback APIs to access Recording Management (CXone) media and metadata when extracting call segments and contacts.

  • Use of these APIs may require additional fees. Consult your contract or contact your NiCE CXoneAccount Representative for more information.

  • Default API performance is set to 150 requests per five minutes. If you require a different performance rate, contact your NiCE CXone Technical Account Representative to request an update. There may be an additional fee.

  • When extracting an interaction:

    • For voice-only and voice-and-screen media types, the API provides the interaction metadata. The link to the media file can be found under the fileToPlayUrl field in the Success response.

    • For chat and email media types, the API provides the interaction metadata and the transcript. In the Success response, you can find the transcript under the messages field and the link to the media file under the filetoplayurl field.

      If the media type is set to all (and not specifically set to chat or email), then if there is a screen recording, you will also get a link to the media file for digital interactions. You can use this API to access CXone Recording media and metadata.

  • When downloading, the API transfers a link to the media file.

The Media Playback APIs are available in the DEVone Developer Community portal.

Before You Start

Before you can start using the Media Playback API, you must set up user permissions, generate an access key, and follow the registration and authentication process explained on the developer portal. Required permissions:

  • If you're searching for recordings that are not under your account, then you need the Search & Playback > Player > Play/download recordings: Play Any permission.

  • If you want the request to return Sentiments and Categories, then you also need the Search & Playback > Player > View sentiments and categories permission.

GET Contacts

Access the full contact (the entire interaction with all segments) based on ACD Call ID. The ACD Call ID depends on the ACD solution, for example, this is the same as the NiCE CXone Master Contact ID.

You can find the correct ACD Call ID in the following ways:

  • Use the Master Contact ID from the Contact History Report.

  • Use the ACD Call ID from the output of Data Extraction API Metadata entity.

Keep in mind that using the ACD Call ID GET method, you can play back or download interactions recorded from December 13, 2018. Accessing an interaction recorded before December 13, 2018 will give an Interaction Not Found error.

GET Statements

Access a recording statement based on ACD Contact ID and Statement ID. The ACD Contact ID depends on the ACD solution, for example, here the acdContactId is the Master Contact IDClosed The master or parent ID for one or more related contacts. A new master contact ID is assigned if a contact is transferred three or more times..

The URL returned by the API is valid for 30 minutes or the duration of the call, whichever is longer.

GET Segment IDs

Access a recording segment using the Segment ID, independent of the associated contact ID. Segment IDs can be found in Interaction Search or by using the Data Extract API. Only segments in active storage can be accessed. Segments in long-term storage must be moved to active storage before they can be accessed.

Responses

  • Status 200—Successful operation.

  • Status 202—Operation is in process.

  • Status 400—Bad request.

  • Status 401—The requesting user failed to authenticate.

  • Status 403—The requesting user is not authorized to perform the operation.

  • Status 404—Not found. No active interactions were found.

  • Status 425—The interaction is locked while processing a previous request.

  • Status 500—Internal server error.

  • Status 504—The request timed out.