curl --request POST \
--url https://api.example.com/api/auth/logout{
"success": true,
"data": {
"message": "<string>"
}
}End the current session and invalidate the session token
curl --request POST \
--url https://api.example.com/api/auth/logout{
"success": true,
"data": {
"message": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iamngoni/heimdall/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <token> header, orheimdall_session cookiecurl -X POST https://heimdall.example.com/api/auth/logout \
-H "Authorization: Bearer <your_session_token>"
true for successful logout{
"success": true,
"data": {
"message": "Logged out"
}
}
401 Unauthorized - No token provided
{
"success": false,
"error": {
"code": 401,
"message": "No session token provided"
}
}
500 Internal Server Error
{
"success": false,
"error": {
"code": 500,
"message": "Internal server error"
}
}
heimdall_session cookie after receiving the logout response