---
search:
  tags:
    - Me
    - GET
seo:
  description: >-
    Returns the user, their teams and the active team for the calling
    credential. Reference for the GET /me endpoint in the varsafe API.
sidebar:
  label: Get the current identity
  badge: GET
title: Get the current identity
type: openapi-operation
---
Returns the user, their teams and the active team for the calling credential.

`GET /me`

**Responses**

- `200` — Success.
- `400` — The request failed validation. \`field\` names the offending input.
- `401` — No credential was presented, or it is invalid or revoked.
- `403` — The credential is valid but lacks the required scope, role or team access.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
{
  "user": {
    "id": "string",
    "email": "user@example.com",
    "name": "string",
    "createdAt": "string",
    "emailVerified": true,
    "hasPassword": true,
    "twoFactorEnabled": true,
    "passkeyOnlyMode": true,
    "isPlatformAdmin": true
  },
  "teams": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "role": "owner"
    }
  ],
  "maxActiveSessions": 0,
  "activeSessionCount": 0
}
```
