Sign out
POST
/v1/auth/logout
const url = 'https://api.avtopodatki.si/v1/auth/logout';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://api.avtopodatki.si/v1/auth/logout \ --header 'Authorization: Bearer <token>'End the current session.
Your refresh token stops working immediately. The current access token remains valid until it expires (at most about an hour), so discard it on your side.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response