users
users

List the cookie-auth login sessions for the current user. Self-only — never another user.

get/api/users/{uuid}/login_sessions/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/users/{uuid}/login_sessions/
  • Auth: none declared

Path parameters

uuidstring uuid required

Query parameters

emailstring
is_staffboolean

Response

idstring uuid required

Identifier used to revoke this login session.

created_atstring date-time nullable required

When this login session was first created — the original sign-in time.

last_activitystring date-time required

When this login session last made a request (refreshed periodically).

locationstring required

Approximate city and country derived from the IP address, if known.

devicestring required

Browser and operating system parsed from the user agent, e.g. 'Chrome 135 on macOS'.

login_methodstring required

How this session signed in (e.g. password, Google, SAML).

is_currentboolean required

Whether this is the login session making the current request.

Changes

No recorded changes to this operation across all 1 revision of this API.