Nylas Docs

The Nylas Developer Hub

Welcome to the Nylas developer hub. You'll find comprehensive guides and documentation to help you start working with Nylas as quickly as possible, as well as support if you get stuck. Let's jump right in!

Developer Guide

Re-enabling stopped accounts

Sometimes accounts are automatically stopped if they receive the same error from a mail server too many times. You might see an error like this from our API when making some kind of modifying HTTP request (note that this message might not show for read-only API requests):

  "message": "This action can't be performed because the account's sync has been stopped. Please contact [email protected] to resume sync.",
  "type": "invalid_request_error"

It’s possible the account was stopped because of a transient issue and re-enabling it might resolve the problem. If you’d like to try re-enabling sync in this case, you can use the accounts management api to start re-syncing the stopped account.

Try downgrading the account and then upgrading the account using the account management endpoints:

curl -X POST -u YOUR_APP_SECRET https://api.nylas.com/a/YOUR_APP_ID/accounts/ACCOUNT_ID/downgrade
curl -X POST -u YOUR_APP_SECRET https://api.nylas.com/a/YOUR_APP_ID/accounts/ACCOUNT_ID/upgrade

The account should be re-queued to sync within a minute, and you should be able to successfully make API requests moving forward.

If this doesn't resolve the issue, it may be that the account sync was stopped because credentials were invalidated on the server or due to a user password change. Consider asking the user to re-authenticate their account in order to restart sync.

Updated 4 months ago

Re-enabling stopped accounts

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.