Get Session

GET {{baseUrl}}/admin/sessions/:id?expand=identity&expand=devices

This endpoint is useful for:

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

Request Params

KeyDatatypeRequiredDescription
expandstringExpandOptions 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.
expandstringExpandOptions 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.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"id":"\u003cuuid\u003e","active":"\u003cboolean\u003e","authenticated_at":"\u003cdateTime\u003e","authentication_methods":[{"aal":"aal3","completed_at":"\u003cdateTime\u003e","method":"password","organization":"\u003cstring\u003e","provider":"\u003cstring\u003e"},{"aal":"aal2","completed_at":"\u003cdateTime\u003e","method":"totp","organization":"\u003cstring\u003e","provider":"\u003cstring\u003e"}],"authenticator_assurance_level":"aal2","devices":[{"id":"\u003cuuid\u003e","ip_address":"\u003cstring\u003e","location":"\u003cstring\u003e","user_agent":"\u003cstring\u003e"},{"id":"\u003cuuid\u003e","ip_address":"\u003cstring\u003e","location":"\u003cstring\u003e","user_agent":"\u003cstring\u003e"}],"expires_at":"\u003cdateTime\u003e","identity":{"id":"\u003cuuid\u003e","schema_id":"\u003cstring\u003e","schema_url":"\u003cstring\u003e","traits":{"description":"Traits represent an identity's traits. The identity is able to create, modify, and delete traits\nin a self-service manner. The input will always be validated against the JSON Schema defined\nin `schema_url`."},"created_at":"\u003cdateTime\u003e","credentials":{"deserunt_303":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"profile","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"sit_c62":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"webauthn","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"}},"metadata_admin":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"metadata_public":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"organization_id":"\u003cstring\u003e","recovery_addresses":[{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"},{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"}],"state":"active","state_changed_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e","verifiable_addresses":[{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"sms","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"},{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"email","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"}]},"issued_at":"\u003cdateTime\u003e","tokenized":"\u003cstring\u003e"}