Skip to content

How to sync contacts with Fastmail

By Jon Henshaw3 min readUpdated

Contact Garden can sync with Fastmail and other services that support JMAP, the open standard Fastmail uses for contacts. After you connect an account, Contact Garden brings in its contacts, then checks it for changes every 5 minutes. With two-way sync on, the changes you make in Contact Garden are saved to that account too.

Here's how to connect a Fastmail account.

  1. Create an API token in Fastmail

In Fastmail, open Settings, then Privacy & Security. Under Connected apps & API tokens, click Manage API tokens, then New API token. Name it something like "Contact Garden", choose JMAP as the type, and select Contacts and contact groups. If you'll use two-way sync, don't make the token read-only. Click Generate API token and copy the token. Fastmail only shows it once.

Fastmail's Basic plan doesn't include API tokens. Never enter your Fastmail password in Contact Garden.

  1. Open Connections

In Contact Garden, click the gear icon, choose Settings, then click Connections. Click Connect an account.

Contact Garden Settings open to Connections, with the Connected accounts description and a Connect an account button
Connections is in Settings.
  1. Enter the account details
  • Name: a name you'll recognize, such as Fastmail.
  • JMAP URL: for Fastmail, enter https://api.fastmail.com/jmap/session. For another service, enter the JMAP session URL it gives you.
  • App password or API token: paste the token you created.

Check Merge with existing contacts that share an email if some of these contacts are already in Contact Garden. A contact from Fastmail with the same email address as one of yours is then linked to your contact instead of being added again, and its details from Fastmail, such as the name, phone numbers, addresses and note, replace the ones in Contact Garden.

Check Two-way sync if you also want the changes you make in Contact Garden saved to Fastmail. Leave it unchecked to only bring contacts in. You can change this later.

Click Connect.

The Connect an account form with Fastmail as the name, Fastmail's JMAP URL, a hidden API token, and both checkboxes checked
Enter a name, the JMAP URL and your API token, then click Connect.
  1. Let the first sync run

The first sync starts as soon as you connect. When it's done, the account shows when it last synced and whether the sync is one-way or two-way. Click Sync now whenever you want to sync right away.

The Connected accounts list showing Fastmail, when it last synced and Two-way, with Two-way: on, Sync now and trash buttons
A connected account, with its sync status and buttons.

What syncs

  • Contacts added or changed in the connected account are added or updated in Contact Garden.
  • A contact deleted in the connected account is deleted in Contact Garden too, even one that was merged with a contact you already had.
  • With two-way sync on, the contacts you add, change or delete in Contact Garden are added, changed or deleted in the connected account within seconds. Photos aren't sent, and a change to a contact's tags alone is only sent with the next change to that contact.
  • If a contact is changed in both places before they sync, the connected account's version wins.

When two-way sync starts, either because you connected with it checked or because you turned it on later, Contact Garden copies the contacts that are only in Contact Garden to the connected account, so both have the same contacts. Changes you made while it was off are sent too, but contacts you deleted while it was off stay in the connected account.

To turn two-way sync on or off, click Two-way: on or Two-way: off next to the account.

Remove a connection

Click the trash icon next to the account. It's removed right away, without a confirmation. The contacts it brought in stay in Contact Garden and nothing changes in the connected account. They just stop syncing.

If a sync fails

The account shows Error and the reason instead of when it last synced. If only some contacts couldn't be synced, it says how many, the rest keep syncing, and Contact Garden tries those contacts again at each sync.

If the token was deleted or expired in Fastmail, create a new token, remove the connection, then connect again with the new token. When you connect again, check Merge with existing contacts that share an email. Otherwise the account's contacts are added to Contact Garden a second time, and with two-way sync on, your contacts are copied to Fastmail a second time too. Contacts without an email address that were first added in Fastmail can be added again either way.

Was this article helpful?

Thanks for your feedback.

Source: https://support.contact.garden/syncing/how-to-sync-contacts-with-fastmail/