How to revoke an oauth token from my app

Hi how do i let a user revoke the access token my app uses to access their data via oauth, from my app? I use this approach for similar set ups. I’ve tried calling a POST request to https://www.figma.com/api/oauth/revoke?client_id=[xxx]&client_secret=[xxx] but i get a 404

Just to clarify i include the access_token in the above in the header