New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Get Session

GET 

/admin/sessions/:id

This endpoint is useful for:

Getting a session object with all specified expandables that exist in an administrative context.

SDK ReferenceTypeScript
getSession()
ParametersTypeRequiredDescription
idstringrequiredID is the session's ID.
expandArray<'identity' | 'devices' | '11184809'>optionalExpandOptions is a query parameter encoded list of all properties that must be expanded in the Session. Example - ?expand=Identity&expand=Devices If no value is provided, the expandable properties are skipped.
VariableType
dataSession