---
title: "Get logged in user"
method: GET
path: "/users/current-user"
tags: ["🔐 Authentication"]
---

# Get logged in user

`GET /users/current-user`

The API endpoint allows you to retrieve the details of the currently logged-in user based on their authentication token.

When accessing this endpoint with a valid authentication token, you will receive a response containing the information of the user who is currently authenticated and logged in.

## Response `200`

Get logged in user

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `avatar` object
      - `_id` string
      - `localPath` string
      - `url` string
    - `createdAt` string
    - `email` string
    - `isEmailVerified` boolean
    - `loginType` string
    - `role` string
    - `updatedAt` string
    - `username` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
