Revoke the current session
POST
/auth/logout
const url = 'https://api.flotera.com/api/v1/auth/logout';const options = { method: 'POST', headers: {cookie: '__Host-erm_session=<__Host-erm_session>'}};
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.flotera.com/api/v1/auth/logout \ --cookie __Host-erm_session=<__Host-erm_session>Revokes the presented session and publishes identity.session_revoked.v1 for cache invalidation. Idempotent.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Session revoked (or was already revoked).
Missing/invalid credentials (code=unauthorized).
Media typeapplication/problem+json
RFC 9457 problem document with a stable machine code.
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
Stable machine-readable error code (03 §2.4).
string
detail
string
instance
string
request_id
UUID (v7 for new entities; v4 accepted during migration).
string format: uuid
errors
Array<object>
object
path
required
JSON Pointer to the offending field.
string
code
required
string
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}