Sign out — clear the session cookie
POST
/v1/auth/logout
const url = 'https://beta-api.plune.ai/v1/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://beta-api.plune.ai/v1/auth/logoutClears the plune_session cookie and ends EVERY session of that person on the server (#1820): any other copy of a cookie issued before this moment answers 401 like an expired one; a sign-in after it works. API and agent tokens are not affected. Public + idempotent (a no-op if not signed in).
Responses
Section titled “ Responses ”Session cookie cleared