---
schema_version: "1"
id: bbcc839339d3b7a135663271d743e8ca26647dc2c9faa7515bd671908de1f0af
title: Use Data Cloud APIs with Data Spaces
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/data/264-0-0/c360_a_using_data_cloud_apis_with_data_spaces.md
canonical_url: https://help.salesforce.com/s/articleView?id=data.c360_a_using_data_cloud_apis_with_data_spaces.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: df2ea95707533421eb70d986c07b864e592c6b400524596e68551ad978719369
description: 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.
products:
  - Data 360
release: "264"
---
# Use Data Cloud APIs with Data Spaces

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All Editions</strong> supported by Data 360. See <a href="https://help.salesforce.com/s/articleView?id=data.c360_a_dc_editions.htm&amp;language=en_US" target="_blank">Data 360 edition availability</a>.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with add-on license: <strong>Data Spaces</strong></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:left;vertical-align:top;" id="d174921e70">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d174921e70 ">To use data cloud APIs: </td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d174921e70 ">
              <p>System admin profile OR </p>
              <p style="margin-bottom:0;">Data Cloud Architect permission set</p>
            </td>

          </tr>
        </tbody>
      </table>

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;
        1. Right-click a connection and select **Edit Connection**.
        2. For Driver properties, specify a user property “dataspace” and enter the data space name that you want to query.
    - For [Python Connector](https://developer.salesforce.com/docs/atlas.en-us.c360a_api.meta/c360a_api/c360a_api_python_connector.htm), while creating a connection object provide the additional parameter “dataspace” and enter the data space name that you want to query.
- 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");

#### See Also

- [_Salesforce Developer_: Create a Connected App](https://developer.salesforce.com/docs/atlas.en-us.c360a_api.meta/c360a_api/c360a_getting_started_with_cdp.htm)
- [_Salesforce Developer_: Acquire and Exchange Your Access Token](https://developer.salesforce.com/docs/atlas.en-us.c360a_api.meta/c360a_api/c360a_getting_started_with_cdp.htm)