Skip to main content
A connection ends in one of five ways. Each time, your webhook receives app.deauthorized first. Then the access and refresh tokens and your webhook for that business stop. The business, its money and its other integrations are not touched.

Handle app.deauthorized

When it arrives, mark the business as disconnected and delete its tokens and its webhook signing secret. Do not try the old tokens again: they already stopped working. To work with the business again, send it through a new connection. The event comes on the webhook Bachs set up for that business, signed with that connection’s secret. Your app cannot subscribe to it or turn it off.

End a connection from your side

Send the connection’s refresh token or access token to the revoke endpoint, with your client secret.
It answers 200 even when the token is unknown, already revoked or belongs to another app, so you can call it safely when a user removes the integration on your side. Your webhook still receives app.deauthorized with reason app.

Keep a connection alive

Refresh at least once every 90 days. An app that refreshes when its access token expires never reaches the limit. A connection that ends because nobody refreshed needs a fresh approval from the business.