Get Session
Retrieves comprehensive information about the active session including user details, roles, cloud environment, and organization memberships. Requires valid authentication token in header.
Successfully retrieved session details
{
"success": true,
"completed": true,
"time": 1753089693083,
"version": "1.0",
"data": {
"user": {
"enterprise": "HybridityAdmin",
"organization": [
"DEFAULT"
],
"currentOrganization": "DEFAULT",
"roles": [
"System Administrator",
"Appliance Administrator"
],
"username": "[email protected]",
"transactionId": "4636e751-ca87-42d4-a7fc-809b31fbbd82"
}
}
}
success
completed
Unix timestamp in milliseconds
version
Current session data
Unauthorized - no active session or invalid authorization token
{
"success": false,
"completed": false,
"time": 1753089693083,
"version": "1.0",
"errorCode": "INVALID_SESSION_TOKEN",
"error": "UserContext not found in SecurityContext"
}
Indicates if the operation was successful
Indicates if the operation completed
Unix timestamp in milliseconds
API version
Enum error code for specific errors
Human-readable error message
Internal server error
{
"success": false,
"completed": false,
"time": 1753089693083,
"version": "1.0",
"errorCode": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error"
}
Indicates if the operation was successful
Indicates if the operation completed
Unix timestamp in milliseconds
API version
Enum error code for specific errors
Human-readable error message
curl -H 'Authorization: <value>' https://{api_host}/api/admin/v1/sessions