Manage data /Connect /Manage data layers /

Manage data sources in Netlify Connect

This feature is available on Connect Enterprise plans.

Once you create and configure a data layer, you can review and modify the data layer on the settings page in the Netlify UI. This document outlines how to add, edit, and delete data sources for an existing data layer.

A data source is an external system or service that contains your data, such as a content management system (CMS). Connect includes built-in support for a number of popular data source types such as Contentful and Drupal, but you can also build support for your custom data source using the Netlify SDK.

Team Owners and Developers can add, edit, or delete data sources on a data layer. They can also specify cross-references between data sources to retrieve related data with a single query.

When you modify data source configurations on your data layer, Netlify re-syncs all data sources and updates the data layer’s GraphQL schema to reflect the change. Netlify also records the data source changes in the team audit log.

New to Connect? Set up a data layer first

If you haven’t already created a data layer, navigate to the

page for your team and select Add new data layer. Follow the prompts to configure the data layer and to add data sources, connected sites, and custom webhooks. For more information, refer to our get started with Netlify Connect guide.

# Add new data sources

To add a new data source to your data layer, first navigate to the data source section for your data layer:

  1. Navigate to the page for your team in the Netlify UI.
  2. Select the data layer from the Data layers list, and then select Data layer settings.
  3. On the data layer settings page, select Data sources.

Each supported data source type has different credentials, options, and setup instructions:

After you save a data source configuration, Netlify connects to the data source and starts syncing data to your data layer. If the initial sync fails, review our troubleshooting tips for support.

# commercetools

commercetools is a dynamic data source

The data integration for commercetools uses a dynamic connector, which means that Netlify proxies requests directly to the commercetools API every time you make a request for data. As a result, the data is never cached in Connect and you cannot use cross-references and API scopes with this data source.

To use commercetools, complete the following steps:

  1. Set up an API client in Account Manager.
  2. Add your commercetools instance and API information to your data layer.
# Set up an API client in your commercetools project

To enable syncing data from commercetools, you need to create an API Client with the correct scopes in the commercetools Merchant Center:

  1. In the Merchant Center for your commercetools project, navigate to .
  2. Select Create New API Client.
  3. Enter a name for the client.
  4. Under Scopes, select the Admin client template.
  5. Select Create API client to finish.

Copy and save the client_id, secret, and scope values in a safe place because you will need them to set up the data source connection.

# Add your commercetools instance

Once you have set up an API client, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select commercetools as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the commercetools extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Enter a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    When you query data, the data types synced from this data source should be nested under this prefix in the GraphQL schema. For example, if your prefix is StoreCA, your query for orders would be formatted as:

    query {
        StoreCA {
            orders {
                ...
            }
        }
    }
    
  5. Enter the Secret for the API client you created in commercetools Merchant Center.

  6. Enter the Client ID for the API client. The Merchant Center displays this value as the client_id.

  7. Enter the Region for your project. For example, us-east-2.aws.

  8. Enter the Scope for the API client.

  9. Enter the Project key for your project.

  10. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Contentful

To use Contentful with Netlify Connect, complete the following steps:

  1. Prepare your Contentful instance.
  2. Add your Contentful instance to your data layer.
# Prepare your Contentful instance

Take the following steps on your Contentful space before you add it to your data layer:

  1. In the Contentful web app, navigate to

    , and select Add API key to create an API key and generate access tokens for the space you want to sync. Netlify will need one of these tokens to access your data.

  2. In the Contentful web app, navigate to

    , and select Create personal access token to generate a Content Management API access token. Copy this token and store it in a safe place. Netlify will need this token to automatically set up a webhook in your Contentful space that will notify Connect whenever data changes in your CMS.

  3. To enable automatic syncing to Netlify, add your data layer webhook to your Contentful instance:

    1. In your Contentful account, navigate to

      , and select Add webhook.

    2. Add the following webhook to the URL field. Make sure to replace the placeholder with your data layer ID.

      https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
      
    3. Under Triggers, select the content types that you wish to sync and the events that should trigger a sync. For more information on how to configure webhooks, refer to the Contentful docs.

    4. Select Save to finish.

    If you decide to configure the webhook using the Contentful API instead, add a x-connect-data-source header to the request with contentful as the header’s value. This ensures that the webhook only triggers a sync for this specific data source, instead of all data sources on your data layer.

# Add your Contentful instance

Once you have prepared your Contentful instance, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select Contentful as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the Contentful extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Enter a Prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, ContentfulPost with the prefix Marketing becomes MarketingContentfulPost in the schema.

  5. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  6. Enter the Access token for your Contentful instance. To sync published content, enter the Content Delivery API access token. To sync preview content instead, enter the Content Preview API access token.

  7. Enter the Space ID for your Contentful instance.

  8. Enter the Content Management API access token for your Contentful instance. Netlify will use this token to automatically set up a webhook in your Contentful space that will notify Connect whenever data changes in your CMS.

  9. (Optional) Select the Host URL for your Contentful instance. The default is cdn.contentful.com. To use the Contentful Preview API, select preview.contentful.com.

  10. (Optional) Enter the Contentful Environment to sync data from. The default is master.

  11. (Optional) Enter a Page limit to specify the number of entries to fetch per page when syncing data from Contentful. The default is 100.

  12. (Optional) Select Enable Contentful Tags if your Contentful instance uses the Contentful Tags feature. Note that if you enable this option, you cannot use the content type name tags at this time.

  13. (Optional) Fill in the Locales field to limit the locales Netlify will sync. By default, Netlify will sync all locales. Make sure these locales are enabled on Contentful. Netlify will use the default locale set in Contentful as the default locale for your source.

  14. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Contentstack

To use Contentstack with Connect, complete the following steps:

  1. Prepare your Contentstack instance.
  2. Add your Contentstack instance to your data layer.
# Prepare your Contentstack instance

Take the following steps on your Contentstack instance before you add it to your data layer:

  1. In your Contentstack account, navigate to

    for your stack, and generate a delivery token for the environment you want to sync. You’ll need to enter this token when you set up your Contentstack data source in the Netlify UI, and Netlify will use this token to access your data.

  2. To enable automatic syncing to Netlify, add your data layer webhook to your Contentstack instance:

    1. In your Contentstack account, navigate to

      for your stack, and select New Webhook.

    2. Add the following webhook to the URL To Notify field. Make sure to replace the placeholder with your data layer ID.

      https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
      
    3. Under Trigger Conditions, add a Condition for each content type and event that you wish to sync. At minimum, you should configure the webhook to trigger when the Entry type is Created, Updated, and Deleted. For more information on how to configure webhook conditions, refer to the Contentstack docs.

    4. Select Save to finish.

# Add your Contentstack instance

Once you have prepared your Contentstack instance, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select Contentstack as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the Contentstack extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Enter a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, ContentstackPost with the prefix Marketing becomes MarketingContentstackPost in the schema.

  5. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  6. Enter the API key for your stack.

  7. Enter the read-only Delivery token for your stack environment.

  8. Enter the stack Environment to sync data from. For example, the production environment.

  9. (Optional) Enter the Region to sync data from. Valid options are na-aws, eu-aws, na-azure, and eu-azure. The default is na-aws.

  10. (Optional) Specify the Locales to sync entries from. For example, en-us, fr-ch.

  11. (Optional) When entries aren't available for the specified locale, you can sync them in the fallback language instead. Select Include Fallback Locale to enable this. The default is false.

  12. (Optional) Enter a Limit to specify the number of entries or assets to sync per page. The default is 50.

  13. (Optional) Enter the Content Types to sync from Contentstack. For example, author, book.

  14. (Optional) Enter the Content Types to exclude from Contentstack syncs.

  15. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Drupal

Connect supports Drupal versions 9 and 10.

To use Drupal with Connect, complete the following steps:

  1. Prepare your Drupal instance.
  2. Add your Drupal instance to your data layer.
# Prepare your Drupal instance

Take the following steps on your Drupal instance before you add it to your data layer:

  1. Install Gatsby Integration module version 2. During the installation flow, follow the prompts to enable the JSON:API Extras module.

  2. In the JSON:API Extras module, enable Include count in collection queries. This setting helps improve performance during data syncs.

  3. Navigate to

    and enable:

    • Gatsby
    • Gatsby JSON:API Extras
  4. Install JSON:API Schema module.

  5. To enable automatic syncing to Netlify, add your data layer webhook to the Gatsby Integration module.

    1. Navigate to

      .

    2. Add the following webhook to the Build Webhook URLs field. Make sure to replace the placeholder with your data layer ID.

      https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
      
    3. Under Entity types to send to Gatsby Preview and Build Server, select the types you wish to sync. At minimum, you should select the Content type.

    4. Select Save configuration to finish.

  6. Navigate to

    to add the following permissions for data syncing:

    1. Add Sync Gatsby Fastbuild log entities permissions. If your Drupal instance does not use authentication, then select Anonymous user. Otherwise, select the appropriate Drupal role.
    2. Add View Gatsby log entity entities permissions. If your Drupal instance does not use authentication, then select Anonymous user. Otherwise, select the appropriate Drupal role.
# Add your Drupal instance

Once you have prepared your Drupal instance, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select Drupal as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the Drupal extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Add a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, DrupalPost with the prefix Marketing becomes MarketingDrupalPost in the schema.

  5. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  6. Enter the Site URL for your Drupal site, including the trailing slash.

  7. (Optional) Enter the JSON API Path Prefix to use as the relative path to the JSON:API root. The default is jsonapi.

  8. (Optional) If your Drupal instance has basic authentication enabled, enter the HTTP Basic Auth username and HTTP Basic Auth password.

  9. (Optional) Enter any Disabled types that you would like to exclude from the GraphQL API.

  10. (Optional) Enter the number of Concurrent API requests a user can make to the Drupal API. The default is 20.

  11. (Optional) Enter a Request timeout value. This is the time in milliseconds before requests to Drupal will time out. The default is 30000.

  12. (Optional) Enter the Default language of your Drupal site. This will determine what language content to sync from Drupal. The default is to sync the English language content.

  13. (Optional) Enter the Enabled languages for your Drupal site. This will allow you to sync different translations from Drupal, depending on what languages your site has enabled.

  14. (Optional) Select Filter by language to filter the data you sync from Drupal based on the current language.

  15. (Optional) Enter the Translatable entities to specify what entities to sync translations for. For example, node--page, node--article.

  16. (Optional) Enter the Non-translatable entities from your Drupal site. These entities will use the default language of your site. For example, taxonomy_term--tags, taxonomy_term--categories.

  17. (Optional) Enter the Request Headers used for Drupal API to apply specific headers for the API.

  18. (Optional) Enter the Filters used for Drupal API to specify what content to sync. This will allow you to control the data you receive from Drupal. For example, {"recipe": "filter[tags.name][value]=British"}.

  19. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Salesforce Commerce Cloud

To use Salesforce Commerce Cloud (SFCC), complete the following steps:

  1. Set up an API Client in Account Manager.
  2. Add your SFCC instance and API information to your data layer.
# Set up an API Client in Account Manager

Netlify Connect utilizes the Salesforce Admin API to sync product data. To enable this, you need to set up an API Client with the correct scopes in Account Manager on Salesforce.

Create an API Client in Account Manager by following the instructions provided by Salesforce. While you set up the API client, note the following:

  • Take note of the password you set for the API Client. This will be used as the Client Secret later.
  • The API Client will require the following scopes: sfcc.products and sfcc.catalogs.
  • When you finish creating the client, find it in the table of API clients and take note of the value in the API Client ID column of the table, as described in Salesforce’s instructions. For example, 1d763261-6522-4913-9d52-5d947d3b94c4.
# Add your SFCC instance

Once you have set up an API client, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select Salesforce Commerce Cloud as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the Salesforce Commerce Cloud extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  5. Enter a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, SfccProduct with the prefix Marketing becomes MarketingSfccProduct in the schema.

  6. Enter the Client ID for the API Client you created in Account Manager.

  7. Enter the password for the API Client as the Client Secret.

  8. Enter the Organization ID for your B2C Commerce instance. For example, f_ecom_zzte_053.

  9. Enter the Short Code that is assigned to your realm. The short code applies to your entire realm, across all instances. For example, kv7kzm78.

  10. Enter the Site ID for the site that you want to access data for (sometimes called a “channel”). For example, RefArch or SiteGenesis.

  11. Enter a comma-separated list of Locales to sync data for. For example, default, en-US, fr-FR, zh-CN, ja-JP, it-IT, en-GB.

  12. Enter the Request Concurrency to set the maximum number of concurrent requests to make to the B2C Commerce API.

  13. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Shopify

To use Shopify with Connect, complete the following steps:

  1. Prepare your Shopify store.
  2. Add your Shopify store to your data layer.
# Prepare your Shopify store

To add a Shopify store to your data layer in Netlify Connect, first you need to set up a custom Shopify app that we can use to access Shopify’s Admin API and sync data. You will need the Admin API access token to set up your Shopify data source in Netlify Connect.

  1. Log in to your Shopify store as the store owner and search for Apps and sales channels.

  2. Enable custom app development. To do this, select Develop apps, then Allow custom app development. After reading the warning and information provided, select Allow custom app development.

  3. Create a custom app. From the App development section, select Create an app. Enter an app name and developer, then select Create app.

  4. Set admin API scopes for the app. On the custom app page, select Configure Admin API scopes. Enable the read_products, read_product_listings, and read_files scopes, and then select Save.

    You can use this data integration to proxy directly to the Shopify GraphQL API as well. To allow additional CRUD operations through the proxy, enable the admin API scopes for these operations, such as write_products.

  5. Install the app and get the API access token. Select the API credentials tab and select Install app under Access tokens. Follow the prompts to install the app on your Shopify store.

    Next, under the Admin API access token section, select Reveal token once to access the token. Store the token in a safe place as you will need it to set up the data source connection.

To enable automatic syncing to Netlify, you also need to add your data layer webhook to Shopify. This ensures that Shopify will notify Netlify when data updates.

  1. In Shopify, navigate to

    , and under Webhooks, select Create webhook.

  2. Select each Event that should trigger a sync to Netlify.

  3. Select JSON as the format.

  4. Add the following webhook to the URL field. Make sure to replace the placeholder with your data layer ID.

    https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
    
  5. Select Add webhook to finish.

# Add your Shopify store

Once you have created a custom Shopify app, take the following steps in the Netlify UI to add your Shopify store to your data layer:

  1. Select Add a data source.

  2. Select Shopify as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the Shopify extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Add a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, ShopifyProduct with the prefix Marketing becomes MarketingShopifyProduct in the schema.

  5. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  6. Enter the Admin API access token. This is the access token for the custom Shopify app you created in the prepare your store step. The token starts with shpat_.

  7. Enter the Store Name for your Shopify store. You can find store name in the Shopify URL. For example, STORENAME.myshopify.com.

  8. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# WordPress

To use WordPress with Netlify Connect, complete the following steps:

  1. Prepare your WordPress instance.
  2. Add your WordPress instance to your data layer.
# Prepare your WordPress instance

Take the following steps on your WordPress instance before you add it to your data layer:

  1. Install and activate the Netlify Connect WordPress plugin:

    1. Download the Netlify Connect WordPress plugin.
    2. In your WordPress admin dashboard, navigate to Plugins and then select Add New Plugin.
    3. Select Upload Plugin and follow the prompts to upload the netlify-connect-wp-plugin.zip file that you downloaded in step 1.
    4. Select Install now.
  2. In your WordPress admin dashboard, navigate to

    and create an application password. You’ll need to enter this as your token when you set up your WordPress data source in the Netlify UI, and Netlify will use this token to access your data.

  3. To enable automatic syncing to Netlify, add your data layer Webhook URL in your WordPress plugin settings for Connect:

    1. In your WordPress admin dashboard, navigate to

      .

    2. Add the following webhook to the Data layer Webhook URL field. Make sure to replace the placeholder YOUR-DATA-LAYER-ID with your data layer ID.

      https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
      
    3. Select Save Changes to finish.

# Add your WordPress instance

Once you have prepared your WordPress instance, take the following steps in the Netlify UI to add it to your data layer:

  1. Select Add a data source.

  2. Select WordPress as the Data source type.

    If you haven’t already installed the extension for this data source, follow the install extension prompt to open the WordPress extension details page in a new tab. As a Team Owner, select Install to install and make the extension available to all data layers on your team.

    After you install the extension, close the tab and return to the Add a data source flow in Connect to continue with the next steps.

  3. Enter a Name for this data source.

  4. Add a Type prefix for this data source. The prefix must start with an uppercase letter and can only consist of alphanumeric characters and underscores.

    Connect will add the prefix to all data types synced from this data source in the GraphQL schema, which you will use when you query the GraphQL API. For example, Post with the prefix Marketing becomes MarketingPost in the schema.

  5. Enter the User (the username for which you created the application password).

  6. Enter the Token (the application password you created in WordPress).

  7. Enter the full API Host URL for your WordPress instance (for example, https://example.com without a trailing slash).

  8. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Optional configuration

If you need to customize your setup further, you can configure the following optional settings during the setup process:

  • Instance ID unique value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.
  • Per page: specify the number of nodes to fetch per page when syncing data from WordPress. The default is 100.
  • Request concurrency: set the number of concurrent requests to make during node sourcing. You can lower this if your WordPress server experiences issues during data sourcing. The default is 15.
  • Types to exclude globally: specify the slugs of post types, taxonomies, or other content types to exclude from sourcing, listed as comma-separated values.

# Other

To use a custom data source, an integration must already exist for it

If a data integration doesn’t already exist for your custom data source type, create one with the Netlify SDK. Once you publish your data integration, you can start using it in Netlify Connect.

To use a custom data source with Netlify Connect, complete the following steps:

  1. Install the data integration.
  2. Prepare your data source instance.
  3. Add your custom data source to your data layer.

Support for private and partner data integrations

For help with a custom data source, refer to the data integration’s details page in the Netlify UI and any external documentation the page links out to. You can find the details page by navigating to

and searching for the integration by name.

# Install the data integration

Before you can add a custom data source to your data layer, you must install the data integration for that type of source on your team.

  1. As a Team Owner, navigate to the page for your team in the Netlify UI.
  2. Find the data integration for the custom data source type that you wish to use and select it in the search results.
  3. If it’s not already installed, on the details page, select Install.

If you can’t find the data integration, speak with the integration developer to ensure they have followed all of the steps to publish an extension.

# Prepare your data source instance

To enable automatic syncing to Netlify, you need to manually add a webhook to your custom data source instance. The exact instructions vary for each system but you need to do the following:

  1. Log in to your data source and navigate to the webhook settings.

  2. Follow the prompts to create a new webhook and add the following to the URL field. Make sure to replace the placeholder with your data layer ID.

    https://webhook.netlify-connect.com/hooks/data_layer/data_source/publish/YOUR-DATA-LAYER-ID
    
  3. If the options are available, select the data types and events that should trigger the webhook. We suggest including any create, edit, and delete events for all content types that you wish to store in your data layer.

    If you have the option to add a header to the webhook, add a x-connect-data-source header to the request with the data integration’s slug as the header’s value. This ensures that the webhook only triggers a sync for this specific data source, instead of all data sources on your data layer.

  4. Save and enable the webhook.

You may need to complete other configuration steps on your data source instance. Please refer to the documentation provided by the integration developer.

# Add your custom data source

Once you have installed the data integration for your team and prepared your data source instance, take the following steps in the Netlify UI to add the custom data source to your data layer:

  1. If you are not already on the data layer settings page, on your team’s

    page, select the data layer from the Data layers list, and then select Data layer settings.

  2. On the data layer settings page, select Data sources.

  3. Select Add a data source.

  4. Select the data integration that you installed as the Data source type.

  5. Enter a Name for this data source.

  6. Add a Type prefix for this data source. The prefix must start with an uppercase letter, and can only consist of alphanumeric characters and underscores.

    The prefix will be added to all data types synced from this data source in the GraphQL schema and you will use it when you query the GraphQL API. For example, Post with the prefix Marketing becomes MarketingPost in the schema.

  7. (Optional) Enter a unique Instance ID value to use for this data source. Netlify uses this value to support cross-references and linking between data sources.

  8. Fill in the remaining configuration fields with the values for your data source instance. For example, you may need to provide the API key for your CMS instance.

  9. Select Save to add this data source.

When you add a new data source, Netlify automatically connects to it and starts syncing data to your data layer.

# Edit data sources

Want to create links between data sources?

Use cross-references to create links between fields across data sources so you can retrieve combined data through a single query. To set up cross-references, navigate to the Cross-references section of your Data layer settings. Learn more about cross-references.

  1. Navigate to the page for your team in the Netlify UI.
  2. Select the data layer from the Data layers list, and then select Data layer settings.
  3. On the data layer settings page, select Data sources.
  4. Select the data source you want to edit.
  5. Select Edit and update the fields as needed.
  6. Select Save.

# Delete data sources

Deleting data sources from deprecated integrations

With the launch of Netlify SDK v2, a number of data integrations are deprecated. While the integrations will continue to function for teams that currently have them enabled, once you delete a data source that uses a deprecated data integration, it’s not possible to add a new one to your data layer.

When you delete a data source, Netlify will delete all data related to that source from the data layer and then update the data layer’s schema to reflect the change.

To delete a data source from your data layer:

  1. Navigate to the page for your team in the Netlify UI.
  2. Select the data layer from the Data layers list, and then select Data layer settings.
  3. On the data layer settings page, select Data sources.
  4. Select the data source you want to delete.
  5. Select Delete.
  6. A confirmation prompt will appear. Enter the name of the data source to confirm.
  7. Select Delete.

After the sync events are complete, make sure you review the new schema and update any sites that make queries to the GraphQL API to reflect this change.