---
title: "X get authenticated user API: GET /2/users/me"
description: "When PubNio calls X's get authenticated user request, GET /2/users/me: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# X get authenticated user API: GET /2/users/me

PubNio calls X's `GET /2/users/me` (`getUsersMe`) to identify the X account a person just signed in with.

## How PubNio calls it

- Connecting an account: after the sign-in that [`POST /api/v1/integrations/{provider}/connect`](https://pubnio.com/api/v1/docs#tag/integrations/POST/api/v1/integrations/{provider}/connect) or [`POST /api/v1/integrations/accounts/{accountId}/reconnect`](https://pubnio.com/api/v1/docs#tag/integrations/POST/api/v1/integrations/accounts/{accountId}/reconnect) starts, the sign-in callback makes this call before it saves the account.
- PubNio asks only for `id`, `username`, `name`, and `profile_image_url`. The account is keyed by `id`; a missing username falls back to the ID and a missing name to the username.

## Scopes

- The pinned spec lists 2 scopes, all required: `tweet.read` and `users.read`.
- PubNio's X sign-in requests every one of them.

## Errors

PubNio has no X error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`getUsersMe` in the pinned spec, revision `2.175`.

Checked weekly; no change to `GET /2/users/me` recorded since this revision. [Change tracker](https://pubnio.com/docs/changes/).

## Limits

- PubNio does not call it again to refresh a display name or avatar after the account is saved; reconnecting the account reads them again.

## Sources

- [X API v2 OpenAPI document](https://api.x.com/2/openapi.json)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [X rate limits and quota](https://pubnio.com/docs/providers/x/quota/)

Source: https://pubnio.com/docs/providers/x/operations/get-users-me/index.mdx
