Skip to content

Change data residency region

This page describes how to change the data residency region for Nylas applications. Each data center region is isolated, and data is not shared between regions. For information on setting up a new Nylas organization and configuring your data residency region for the first time, see Data residency.

Migrate existing v3 Nylas application

The following sections describe how to migrate an existing v3 Nylas organization to a new data residency region. Unlike the migration process for v2, you don’t need to create an organization for the new data center. Instead, you migrate individual Nylas applications.

Create Nylas application and set up authentication

First, create a Nylas application for the region that you plan to migrate to and set up its authentication information. Check the application’s configuration settings to make sure they’re correct before you continue.

Migrate grants

There are two methods you can use to migrate grants from your old Nylas application to the new one:

Same-month or immediate migration

For this method, migrate all grants after you finish setting up your new Nylas application. Be sure to finish migrating the grants within the month, and contact Nylas’ Billing team for charge adjustments.

Migrate new accounts first

After you finish setting up your new Nylas application, you can choose to have new end users authenticate in the new region, and migrate existing grants using a targeted approach. With this method, you can move information from your old Nylas application to the new one at your discretion.

This strategy helps mitigate additional work when setting up new users’ grants.

Re-authenticate grants

Your end users’ grants need to be re-authenticated in your new application’s region. They also need new <ACCESS_TOKEN> values for your application.

Delete duplicate grants

Make a POST /v3/connect/revoke request to revoke the credentials for grants associated with your old Nylas application. This also removes access to the application for these grants.

Manage migrated data in v3

The following sections describe how to manage data as you migrate your Nylas application to a new region.

Migrate v3 object data and update IDs

When you migrate your end users, their grants are considered new connections in Nylas. Because of this, all their data must be fetched again, and Nylas creates new ID values for every object. To connect the data, you can merge the information from your old Nylas application to the objects in your new Nylas application using the unique Calendar and Email object IDs.

Update v3 webhook configurations

After your Nylas application is set up in the new region, you must update your webhook configurations for the new data residency settings.

Update v3 Nylas SDK configurations

If you use the Nylas SDKs with your application, you must update their configurations to use the appropriate URL for your application’s new region. See Configure base API URL in Nylas SDKs for more information.