Auth Api Get Session

Auth Api Get Session
Current session and user

Returns the signed-in user. Also available while mustChangePassword is true, so the client can render the change-password screen. Accessible to every authenticated role.

Request
URI
GET
https://{api_host}/api/v1/auth/session
COPY
Authentication
This operation uses the following authentication methods.
Responses
200

200 OK the signed-in user

Returns UserSummaryDto of type(s) application/json
{
    "id": 1,
    "username": "alice.example",
    "displayName": "Alice Example",
    "email": "[email protected]",
    "role": "SECURITY_OPERATOR",
    "authSource": "LOCAL",
    "lastLoginAt": "2026-01-15T09:30:00Z",
    "mustChangePassword": false
}
integer As int64 As int64
id
Required  

Unique user identifier

string
username
Required  

Login username, unique case-insensitively

string
displayName
Required  

Display name shown in the console UI

string As email As email
email
Optional

Contact email address

string
role
Required  

Console user role — Administrator, Security Operator, or read-only Auditor

  • ADMIN: Administrator. Can use the operations open to every role and those restricted to ADMIN, such as user management, SSO settings, syslog destination changes and retention settings changes
  • SECURITY_OPERATOR: Security operator. Can use the operations open to ADMIN and SECURITY_OPERATOR and those open to every role, but not the ADMIN-only operations
  • AUDITOR: Auditor. Can use only the operations open to all three roles, not those restricted to ADMIN or to ADMIN and SECURITY_OPERATOR
Enumeration: ADMIN, SECURITY_OPERATOR, AUDITOR
string
authSource
Required  

Authentication source a console user account was provisioned through

  • LOCAL: Account created in the console with a password held by the console; the only source that can sign in with a username and password
  • SAML: No behaviour is documented for this value. No producing site in the current server code
  • OIDC: Account provisioned automatically at the first successful SSO sign-in; it never sets a password and is not forced to change one
Enumeration: LOCAL, SAML, OIDC
string As date-time As date-time
lastLoginAt
Optional

Timestamp of the most recent successful login as an ISO 8601 date-time with offset

boolean
mustChangePassword
Required  

Whether the user must set a new password before continuing to use the console


401

401 Unauthorized: UNAUTHENTICATED

Returns ApiErrorResponse of type(s) application/json
{
    "errorCode": "string",
    "message": "string",
    "path": "string",
    "timestamp": "string",
    "reason": "string"
}
errorCode
Required  

Stable machine-readable error code. The known values are listed in ApiErrorCode; the set is not closed, so a client must tolerate an unlisted value.

string
message
Required  

Human-readable error description

string
path
Required  

Request URI path that produced the error

string As date-time As date-time
timestamp
Required  

Timestamp when the error occurred as an ISO 8601 date-time with offset

string
reason
Optional

A finer code, present only where an endpoint documents it. The Rule Pack endpoints' PACK_ENTRY_INVALID carries the import core's code here.


404

404 Not Found: USER_NOT_FOUND

Returns ApiErrorResponse of type(s) application/json
{
    "errorCode": "string",
    "message": "string",
    "path": "string",
    "timestamp": "string",
    "reason": "string"
}
errorCode
Required  

Stable machine-readable error code. The known values are listed in ApiErrorCode; the set is not closed, so a client must tolerate an unlisted value.

string
message
Required  

Human-readable error description

string
path
Required  

Request URI path that produced the error

string As date-time As date-time
timestamp
Required  

Timestamp when the error occurred as an ISO 8601 date-time with offset

string
reason
Optional

A finer code, present only where an endpoint documents it. The Rule Pack endpoints' PACK_ENTRY_INVALID carries the import core's code here.


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/v1/auth/session