Getting Oracle Radio WebSocket Session Information

Send a WHO_AM_I message to get the authenticated identity and current connection-local Radio state.

Permissions and Prerequisites

The following permissions and prerequisites apply to this operation.

RequirementValue
AuthenticationComplete the supported authentication path before sending WHO_AM_I. For a bearer-token client, wait for AUTH_SUCCESS. The response describes the identity already associated with the connection; WHO_AM_I doesn't authenticate the client. See authentication.
Radio permissionNo operation-specific Radio permission is required.
Channel accessNo additional channel access is required. The response reports channels joined by the current connection.
Session stateThe WebSocket connection must be open.

Request

Send the WHO_AM_I message as a JSON text message.

NameData typeRequiredDefaultConstraintsDescription
typestringYesNoneMust be WHO_AM_I.Identifies the session-information operation.
{
  "type": "WHO_AM_I"
}

Responses

The following table lists the messages the client can receive and explains their purpose.

Message typeKindDescription
WHO_AM_IDirect responseReturns the authenticated identity and state of the current connection.
ERRORErrorIndicates that the request could not be processed, such as when the JSON message is invalid.

WHO_AM_I Response

The following table describes the response properties, their data types, and whether they are required.

NameData typeRequiredDescription
typestringYesResponse type. The value is WHO_AM_I.
authenticatedbooleanNoWhether the connection is authenticated.
userstringNoUsername associated with the connection.
rolesarray of stringsNoRadio roles associated with the user.
channelsarray of stringsNoChannels joined by the current connection.
activeChannelstringNoCurrently active channel.
hasTokenbooleanNoWhether the connection has an active talk token.
clientIpstringNoClient IP address observed for the connection.
timestampstringNoServer date and time in ISO 8601 format.
{
  "type": "WHO_AM_I",
  "authenticated": true,
  "user": "dispatcher1",
  "roles": ["dispatcher", "user"],
  "channels": ["operations", "dispatch"],
  "activeChannel": "operations",
  "hasToken": false,
  "clientIp": "192.0.2.25",
  "timestamp": "2026-09-02T14:30:00Z"
}