---
title: "Get current user"
method: GET
path: "/api/auth/me"
tags: ["Users"]
---

# Get current user

`GET /api/auth/me`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/auth/me`
- Auth: HTTP bearer

Return the authenticated user's profile information.

## Response `200`

Successful response

- object
  - `id` string, uuid, required: Unique identifier for the user
  - `email` string, email, required: Email address of the user (normalized and validated)
  - `isVerified` boolean, required: Whether the user has verified their email address
  - `roleId` string, required: The role the user belongs to
  - `createdAt` string, required: When the user account was created
  - `updatedAt` string, required: When the user account was last updated
  - `lastLoginAt` string, nullable, required: When the user last logged in (null if never logged in)
  - `googleId` string, nullable, required: Google OAuth ID if user signed up with Google (null if not linked)
  - `microsoftId` string, nullable, required: Microsoft OAuth ID if user signed up with Microsoft (null if not linked)
  - `metadata` object, nullable, required: Additional user metadata as key-value pairs (null if no metadata)
  - `organizationId` string, uuid, required: ID of the organization this user belongs to
  - `organizationName` string: URL-safe name of the organization this user belongs to
  - `authType` 'oauth' | 'local' | 'mixed', required: Type of authentication used for the user
  - `isAdmin` boolean, required: Whether the user is an admin

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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