CONNECTION_REVOKED

The user revoked access, or the provider no longer accepts the stored credentials.

HTTP status: 422. Retrying the same request returns the same error.

What to do

Have the user reconnect through PyasConnect. Listen for the connection.broken webhook to detect this early.

Hint returned with the error: Ask the user to reconnect.

Why it happens

  • The user removed the app from their Google or Microsoft account
  • An administrator revoked access
  • The user changed their password and the provider invalidated the tokens

Endpoints that return it