Only show these results:

Account Reauthentications

By using an account's sync_state, you can determine when the user should re-authenticate their account. A user might need to re-authenticate for a number of reasons. For example, it could be that their password changed, or it could also be that Nylas' access was revoked by the server.

Aside from the sync status info provided in the Nylas Dashboard, you can determine an account's sync_state using the API. Please note that the format of this data is not quite the same as the Nylas Dashboard sync status info.

Using the API, there are actually three ways you can stay up to date around a Nylas account's sync_state.

  1. Make poll requests to /account endpoint and check sync_state. If it is invalid the user needs to re-auth. The user also needs to re-auth if you receive a 401 response instead.
  2. Make poll requests to Account Management endpoints and check sync_state. If it is invalid-credentials the user needs to re-auth.
  3. Subscribe to Webhooks with the account.* triggers to stay up to date with account status changes. If you receive account.invalid the user needs to re-auth.

We recommend building out support for either 1 and 3 or 2 and 3 above within your system to stay up to date around account sync_state updates.