---
title: "Retrieve a User's Details"
url: https://docs.sentry.io/api/users/retrieve-a-users-details/
---

# Retrieve a User's Details | Sentry Docs

GET /api/0/users/{user\_id}/

Return the authenticated user's account details, including email addresses, two-factor authenticators, SSO identities and preferences. Use `me` as the `user_id`.

Any personal auth token or OAuth application token can call this endpoint for its own user, and no scope is required. Tokens can't read other users: requesting another user's ID returns 403. Org auth tokens and integration tokens have no user and can't call it.

### Path Parameters

* `user_id` *(string)*

  REQUIRED

  The ID of the user, or `me` for the authenticated user.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:



```
curl https://sentry.io/api/0/users/{user_id}/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
{
  "id": "1",
  "name": "Jane Doe",
  "username": "jane@example.com",
  "email": "jane@example.com",
  "avatarUrl": "https://gravatar.com/avatar/0123456789abcdef0123456789abcdef?s=32&d=mm",
  "isActive": true,
  "isSuspended": false,
  "hasPasswordAuth": true,
  "isManaged": false,
  "dateJoined": "2023-03-01T17:42:12.547383Z",
  "lastLogin": "2024-07-16T15:36:46.048343Z",
  "has2fa": true,
  "lastActive": "2024-07-17T09:12:44.104915Z",
  "isSuperuser": false,
  "isStaff": false,
  "experiments": {},
  "emails": [
    {
      "id": "1",
      "email": "jane@example.com",
      "is_verified": true
    }
  ],
  "options": {
    "theme": "system",
    "themeVariantDark": "default",
    "language": "en",
    "stacktraceOrder": -1,
    "defaultIssueEvent": "recommended",
    "timezone": "UTC",
    "clock24Hours": false,
    "prefersIssueDetailsStreamlinedUI": null
  },
  "flags": {
    "newsletter_consent_prompt": false
  },
  "avatar": {
    "avatarType": "letter_avatar",
    "avatarUuid": null,
    "avatarUrl": null
  },
  "identities": [],
  "authenticators": [
    {
      "id": "1",
      "type": "totp",
      "name": "Authenticator App",
      "dateCreated": "2023-03-01T17:45:01.120941Z",
      "dateUsed": "2024-07-16T15:36:40.501876Z"
    }
  ],
  "permissions": []
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
