Get the current session
get
/v1/sessions/currentAuthorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Response
browserstring
Browser
Example:
Chromebrowser_versionstring
Browser version
client_typestring
Client type: web, cli or desktop
Possible values: [web, cli, desktop]
Example:
webclient_versionstring
cli/desktop client version
country_codestring
Country code
Example:
RUcountry_namestring
Country
Example:
Russiacreated_atstring<date-time>
Creation date
currentboolean
Whether this is the current session
devicestring
Device name
Example:
MacBook Prohostnamestring
Name of the machine signed in from cli/desktop
idinteger<int64>
Session ID
last_seen_atstring<date-time>
Last seen date
osstring
OS
Example:
macOSos_versionstring
OS version
remote_addressstring
Address the session was created from
Example:
203.0.113.10sudo object
expires_atstring<date-time>
Time the verification expires
typestring
Method the session was verified with
Possible values: [totp, recovery_code, email_code, passkey]
Example:
totpverified_atstring<date-time>
Verification time
team object
idinteger<int64>
Team ID
Example:
7namestring
Name
Example:
Acme Incslugstring
Team slug, used as the suffix of dynamic subdomains
Example:
acmetypestring
Type
Possible values: [personal, pro]
Example:
proupdated_atstring<date-time>
Update date