---
title: "Retrieves information about the currently logged-on user and their sessions"
method: GET
path: "/account/me"
tags: ["Authentication"]
---

# Retrieves information about the currently logged-on user and their sessions

`GET /account/me`

## Request

- Base URL: `https://app.testiny.io/api/v1`
- URL: `https://app.testiny.io/api/v1/account/me`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/testiny/apis/testiny-api/docs/account/me/get.ts> (a function with typed inputs; its response is checked against the schema)

Includes information about the users data and sessions, organization entitlements and quotas.

## Response `200`

Returns 'AuthInfo'

- AuthInfo
  - `userId` integer, required: The user id of the authenticated user.
  - `email` string, required: The email address of the authenticated user.
  - `firstName` string: The first name of the authenticated user.
  - `lastName` string: The last name of the authenticated user.
  - `authType` string, required: The authentication method configured for the current user.
  - `tokenExpiresAt` string, date-time, required: The expiry timestamp of the current token.
  - `tenantFeatures` string[]: A list of features enabled for this tenant
  - `sessions` object[], required: The currently open sessions associated with this user. Not available when using an API key.
    - `id` integer: Internal session id. Not a token.
    - `tenant` string: The tenant the session token is associated with.
    - `agent` string: The user agent used for login.
    - `geo` string: Approximate geographic location of the session login.
    - `loginAt` string: The login timestamp of the current token.

## Other responses

- `4XX`: The request failed because invalid request parameters or data were supplied or access was denied.
- `5XX`: The request failed because an error occurred during processing of the request.

---

[API](https://skmtc.dev/testiny/apis/testiny-api.md) - [All operations](https://skmtc.dev/testiny/apis/testiny-api/llms.txt) - [OpenAPI document](https://skmtc.dev/testiny/apis/testiny-api/revisions/8f7643b2429d?raw)
