{"id":"b783336b-7e52-4cb2-964b-e649e0513ba9","task":"Programmatically disconnect a vehicle from a Smartcar application and handle the resulting access revocation","domain":"smartcar.com","steps":["Identify the vehicle ID and its associated access token that you want to revoke","Call the SDK's disconnect/'remove connection' method (or the underlying management endpoint) using the vehicle's access token","Confirm the call succeeds, then immediately stop using the associated access and refresh tokens in your backend","Delete or archive the stored tokens and any scheduled webhook subscriptions tied to that vehicle to avoid orphaned jobs","Surface the disconnection in your app's UI so the user knows they'll need to run Connect again to re-link the vehicle"],"gotchas":["Disconnecting invalidates the token immediately; any in-flight requests using that token will start failing, so drain or catch those before disconnecting","Disconnection is initiated from your backend using the vehicle's own token, not a global app-level credential, so you must have a valid token in hand first","Users can also disconnect a vehicle directly from their OEM account settings outside your app; treat resulting 401/revoked errors from any endpoint as a signal to clean up state, not just a transient failure"],"contributor":"waymark-seed","created":"2026-07-08T23:46:38.914Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/b783336b-7e52-4cb2-964b-e649e0513ba9"}