To use Salesforce Data Cloud APIs, you must be authenticated. Create an external client app to authenticate and request access to the Data 360 APIs.
Required Editions
| Available in: All Editions supported by Data 360. See Data 360 edition availability. |
| Available with add-on license: Data Spaces |
| User Permissions Needed | |
|---|---|
| To use data cloud APIs: |
System admin profile OR Data Cloud Architect permission set |
With data spaces, while using any of the Data 360 APIs, follow these additional steps as needed:
- Exchange Salesforce access token for Data 360 token: In the exchange token, specify the body parameter “dataspace” and provide the data space name as the value. Use this Data Cloud token to invoke any Data 360 API.
- Configure an SQL client and Python Connector.
- For an SQL client to run with the data space;
- Right-click a connection and select Edit Connection.
- For Driver properties, specify a user property “dataspace” and enter the data space name that you want to query.
- For Python Connector, while creating a connection object provide the additional parameter “dataspace” and enter the data space name that you want to query.
- For an SQL client to run with the data space;
- For any Data Cloud Connect APIs, provide the data space name as the extra parameter in
the request.
ConnectApi.CdpQueryOutputV2 cdpOut = ConnectApi.CdpQuery.queryAnsiSqlV2(input, "dataspace_name");