api_auth_logout_create
POST
/api/auth/logout/
const url = 'https://example.com/api/auth/logout/';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
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/api/auth/logout/ \ --header 'Authorization: <Authorization>'Log out the current user
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”No response body