---
schema_version: "1"
id: 864fad4114f590e46998a03face72aea12c6bf08609d3e2351c2884d3264d38c
title: Analyze Conversation Transcripts Using Data 360 Public APIs
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/conversation_transcript_api.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0a3192b1ce6ad36fa25b2aa2a2e92d496280f2b3a4d4abe2d2956c1aed366ffb
description: As an alternative to Data 360 reports, analyze conversation transcripts using Data 360 public APIs. We’ve provided sample API requests and responses to help you get started.
products:
  - Service Cloud
release: "264"
---
# Analyze Conversation Transcripts Using Data 360 Public APIs

As an alternative to Data 360 reports, analyze conversation transcripts using Data 360 public APIs. We’ve provided sample API requests and responses to help you get started.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support-264-0-0-production-enus/dd14551c-a772-4db6-9a1d-d84df8df2980/images/icon_important.png)

Important Connected app creation is restricted as of Spring ‘26. You can continue to use existing connected apps during and after Spring ‘26. However, we recommend using [external client apps](https://help.salesforce.com/s/articleView?id=xcloud.external_client_apps.htm&language=en_US) instead. If you must continue creating connected apps, contact Salesforce Support.

See [New connected apps can no longer be created in Spring ‘26](https://help.salesforce.com/s/articleView?id=005228017&type=1&language=en_US) for more details.

In the sample APIs, we're using [OAuth 2.0 Client Credentials Flow](https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_client_credentials_flow.htm&type=5&language=en_US), which is one of the authentication flows available for [OAuth Authorization](https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_flows.htm&type=5&language=en_US).

1. Verify that you completed the prerequisites listed in [Analyze Conversation Transcripts in Data 360](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_analyze.htm&type=5&language=en_US), and that you [created data streams](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_data_streams.htm&type=5&language=en_US) for your conversation data.
2. Set up a connected app to obtain the authentication credentials.
    1. From Setup, in the Quick Find box, enter External Client App and select **Settings** under External Client Apps.
    2. Click **New Connected App**.
    3. Click [Create a Connected App](https://help.salesforce.com/s/articleView?id=xcloud.connected_app_create.htm&type=5&language=en_US) and then click **Continue**.
    4. Fill in the required detail, enable [Enable OAuth Settings](https://help.salesforce.com/s/articleView?id=xcloud.connected_app_create_api_integration.htm&type=5&language=en_US), and then select the required [OAuth Scopes](https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_tokens_scopes.htm&type=5&language=en_US).
        
        These OAuth scopes are required:
        
        - Manage Data Cloud profile (cdp\_profile\_api)
        - Manage User Data via APIs (api)
        - Perform ANSI SQL queries on Data Cloud data (cdp\_query\_api)
    5. Under Enable OAuth Settings, enable **Enable Client Credentials Flow** and then click **Save**.
    6. From Setup, in the Quick Find box, enter Manage Connected Apps and then select it.
    7. Click **Edit** on the connected app, and under Client Credential Flow, look for your username to get access to the connected app.
3. Obtain an [access token](https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_client_credentials_flow.htm&type=5&language=en_US).
4. [Exchange access token for Data 360](https://developer.salesforce.com/docs/atlas.en-us.c360a_api.meta/c360a_api/c360a_getting_started_with_cdp.htm) token. For example, see [Sample Data 360 Access Token Request and Response](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api_sample2.htm&type=5&language=en_US).
5. Execute a [query](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api_sample3.htm&type=5&language=en_US) using the Data 360 token as a bearer token.

- **[Sample Request and Response for Access Token](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api_sample1.htm&release=264.0.0&type=5)**  
    This sample request lets you obtain the access token and uses client\_credentials as the grant\_type for org authentication.
- **[Sample Exchange Access Token for Data 360 Token Request and Response](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api_sample2.htm&release=264.0.0&type=5)**  
    This sample request exchanges the access\_token value obtained from Sample Access Token Request and Response for dataCloudAuthToken.
- **[Sample Request and Response for Executing SOQL Query](https://help.salesforce.com/s/articleView?id=service.conversation_transcript_api_sample3.htm&release=264.0.0&type=5)**  
    This sample request is a query that uses the Data 360 auth token (dataCloudAuthToken) and instance\_url obtained from Sample Exchange Access Token for Data 360 Token Request and Response to fetch the required data.

#### See Also

- [Access Tokens](https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_access_tokens.htm&type=5&language=en_US)
- [Configure a Connected App for the OAuth 2.0 Client Credentials Flow](https://help.salesforce.com/s/articleView?id=xcloud.connected_app_client_credentials_setup.htm&type=5&language=en_US)
- [View and Rotate the Consumer Key and Consumer Secret of a Connected App](https://help.salesforce.com/s/articleView?id=xcloud.connected_app_rotate_consumer_details.htm&type=5&language=en_US)