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

Skip to main content

List an Identity's Sessions

GET 

/admin/identities/:id/sessions

This endpoint returns all sessions that belong to the given Identity.

SDK ReferenceTypeScript
listIdentitySessions()
ParametersTypeRequiredDescription
idstringrequiredID is the identity's ID.
perPagenumberoptionalDeprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page.
pagenumberoptionalDeprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header.
pageSizenumberoptionalPage Size This is the number of items per page to return. For details on pagination please head over to the pagination documentation.
pageTokenstringoptionalNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
activebooleanoptionalActive is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
VariableType
dataArray<Session>