Log out the currently authenticated user and end their session.

Behavior: Ends the user's active session and invalidates the authentication token. If a UserSessionId is provided, that specific session is terminated.

Authorization: Requires a valid Bearer token ([Authorize]).

Side Effects: Terminates the user session. The logout event is recorded for auditing purposes.

Error Scenarios: Returns 401 if the caller is not authenticated.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

A Nomad.Common.Models.Security.LogoutRequestModel containing the optional UserSessionId to delete and optional ApplicationId.

Request model for logging out a user and ending their session.

uuid | null

Gets or sets the identifier of the session to terminate.

uuid | null

Gets or sets the application identifier associated with the session.

Headers
string
enum
Defaults to application/json-patch+json

Generated from available request content types

Allowed:
Responses
200

The user was successfully logged out and the session was deleted.

401

The caller is not authenticated.

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!