Skip to main content
DELETE
/
v1
/
regions
/
global
/
auth
/
sessions
End session
const options = {method: 'DELETE'};

fetch('https://api.example.com/v1/regions/global/auth/sessions', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "loggedOut": true
  }
}

Response

200 - application/json

Session ended

success
enum<boolean>
Available options:
true
data
object