GET/api/v2/auth/session
Signed-in sessionConsole session only
Return authenticated browser session snapshot, current organization context, and CSRF token.
Parameters
Header1 optional
X-Organization-IDstring · uuidheader
Optional active organization override.
Responses
200
OK
AuthSessionResponse · 3 fields
authenticatedbooleanrequired
csrf_tokenstringrequired
14 fields
2 fields
idstring · uuidrequired
namestring
What the caller may use in the selected organization and the installation, decided by the same permission check as the API routes. The console shows screens and actions by these flags and never derives them from role names.
3 fields
display_namestring
emailstring
groupsarray of string
org_idstring · uuidrequired
org_namestring
org_rolestring
Built-in role of the user in the selected organization.
adminvieweruserEverything the user may do in the selected organization: the built-in role, the custom role and the roles of the groups the user belongs to directly. The console shows actions by these permissions.
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:readrolesarray of stringrequired
scopesarray of stringrequired
system_scopesarray of stringrequired
substring · uuidrequired
usernamestring
Common errors: 400 401 403 429 500 504. They mean the same for every operation, see Errors.