Harbor Gateway
  1. Authentication
Harbor Gateway
  • Harbor Gateway API
    • Health & Status
      • Admin interface
      • Health check
    • Transactions
      • List all transactions
      • Create a transaction
      • Get transaction details
      • Release transaction
      • Open locker by transaction ID
    • Lockers
      • List all lockers
      • Get locker details
      • Open locker by ID
      • Open all lockers
    • System
      • Get system information
      • Update system configuration
      • Get system logs
    • Schemas
      • Locker
      • TransactionResponse
      • LockController
      • System
      • LogEntry
      • OperationResponse
      • LockerOperationResponse
      • MultiStatusOperationResponse
      • OpenAllLockersResponse
      • Error
  • Harbor Gateway Admin API
    • Authentication
      • Login with Basic Auth and receive session token
        POST
      • Logout and invalidate session token
        POST
    • Controllers
      • List all lock controllers
      • Manually add a lock controller
      • Trigger manual mDNS scan
      • Get controller details
      • Update controller settings
      • Remove controller from system
      • Replace a failed controller
      • Adjust locker count for controller
    • Lockers
      • Update locker service state
    • System
      • Refresh network information
      • Reboot gateway system
    • Diagnostics
      • Test Sentry error tracking integration
    • Schemas
      • Schemas
        • Controller
        • ControllerDetails
        • CreateControllerRequest
        • AdjustLockerCountResponse
        • OperationResponse
        • Error
      • Response
        • Unauthorized
        • NotFound
        • InternalServerError
  1. Authentication

Logout and invalidate session token

POST
/logout
Invalidate the current session token, forcing re-authentication for future requests.
Behavior:
Removes token from active sessions
Requires X-Session-Token header
Logs logout event with IP address
Returns success even if token already expired/invalid
Use Cases:
Explicit logout from admin UI
Security: invalidate token before leaving workstation
Testing: clear session state between tests

Request

Authorization
API Key
Add parameter in header
X-Session-Token
Example:
X-Session-Token: ********************
or

Responses

🟢200OK
application/json
Logout response (successful or no active session found)
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/logout' \
--header 'X-Session-Token: <api-key>'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "Logged out successfully"
}
Modified at 2025-11-27 00:06:25
Previous
Login with Basic Auth and receive session token
Next
List all lock controllers
Built with