Logout
POST
/auth/logout
const url = 'https://example.com/auth/logout';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/auth/logoutDelete the current session. Does nothing if on the legacy api_token path.
Responses
Section titled “Responses”Successful Response