---
title: "Migrate · Workwae"
description: "Move to Workwae from EmailEngine, Exchange Web Services, an in-house build, password IMAP accounts or another email API, keeping existing grants wherever you hold them."
url: https://workwae.com/migrate/
---

Migrate

# Move to Workwae without starting over

Bring the mailboxes you already connect, and keep the consent users gave wherever you hold their grants.

[Plan your migration](https://workwae.com/early-access/) [Talk to us](https://workwae.com/support)

Migration paths

## Where are your accounts today?

Who holds the grants decides whether users sign in again.

### [EmailEngine](https://workwae.com/migrate/emailengine)

Our team imports EmailEngine 2.x accounts, apps and templates with their grants.

### [Exchange Web Services](https://workwae.com/migrate/ews)

Replace an EWS integration that Exchange Online is retiring; users consent to Graph again.

### Your own OAuth app

Import refresh tokens from your Google or Microsoft app; nobody signs in again.

### IMAP with passwords

Create accounts through the API from the passwords you hold.

### Another email API

From Nylas, Unipile, Aurinko or similar, import what you can and reconnect the rest.

Your own OAuth app

## Import the refresh tokens you already hold.

Register your app with the same client id and secret, then create one account per refresh token.

- **Microsoft apps per cloud.** One app per Microsoft cloud, GCC High and DoD included.
- **One call per account.** Syncing starts at once, announced with `account.connected`.
- **Shared mailboxes.** Tokens with `Mail.ReadWrite.Shared` open the user's shared mailboxes.

[How connecting works](https://workwae.com/features/connect)

import.tsimport.py

```ts
// Once per user, with the token your own app holds
const account = await workwae.accounts.create({
  provider: "google",
  refreshToken,
  oauthAppId: googleApp.id, // your app, registered in the workspace
  externalRef: user.id,
});
```

```python
# Once per user, with the token your own app holds
account = workwae.accounts.create(
    provider="google",
    refresh_token=refresh_token,
    oauth_app_id=google_app.id,  # your app, registered in the workspace
    external_ref=user.id,
)
```

IMAP with passwords

## Create IMAP accounts from the credentials you hold.

The login is checked before anything is stored, and the password is sealed with keys held in Vault.

- **Servers discovered.** IMAP and SMTP servers are found from the address.
- **Calendars and contacts too.** Add CalDAV and CardDAV settings to sync them.

[IMAP guide](https://docs.workwae.com/guides/imap)

imap.tsimap.py

```ts
const account = await workwae.imapAccounts.create({
  email: "sam@example.com",
  password: appPassword,
  externalRef: user.id,
});
```

```python
account = workwae.imap_accounts.create(
    email="sam@example.com",
    password=app_password,
    external_ref=user.id,
)
```

Another email API

## Switching from another provider.

1.

   ### Take stock

   List accounts by provider and whose OAuth app issued each grant.

2.

   ### Import what you can

   Import grants from your own app if your provider hands over the refresh tokens, and password IMAP accounts.

3.

   ### Reconnect the rest

   Everyone else signs in once through hosted connect, then you switch your product to the Workwae API.

Compare capabilities first on [How Workwae compares](https://workwae.com/compare).

Migrate

## Tell us where your accounts live today.

We will plan the move with you, path by path.

[Plan your migration](https://workwae.com/early-access/) [Talk to us](https://workwae.com/support)
