# Get user info

`GET https://api.airtable.com/v0/meta/whoami`

Retrieve the user's ID. For OAuth access tokens, the scopes associated with the token used are also returned. For tokens with the `user.email:read` scope, the user's email is also returned.

## Requirements

- **Authentication:** [Personal access token](https://airtable.com/developers/web/api/authentication.md#types-of-token), [OAuth integration](https://airtable.com/developers/web/api/authentication.md#types-of-token)
- **Scope:** No scopes are required for this endpoint
- **User role:** Any user
- **Billing plans:** All plans

## Response format

- `id: string` — required

  A user ID

- `email: string` — optional

  The email address of the token's owner.
  Only returned if the token has the `user.email:read` scope.

- `scopes` — array<[Scope](https://airtable.com/developers/web/api/scopes.md)> — optional

  The scopes the token has.
  Only returned if accessing via an OAuth access token.

### Example — Success Response

```sh
curl "https://api.airtable.com/v0/meta/whoami" \
-H "Authorization: Bearer YOUR_TOKEN"
```

```json
{
  "id": "usrL2PNC5o3H4lBEi"
}
```

### Example — Success Response with email

```sh
curl "https://api.airtable.com/v0/meta/whoami" \
-H "Authorization: Bearer YOUR_TOKEN"
```

```json
{
  "email": "foo@bar.com",
  "id": "usrL2PNC5o3H4lBEi"
}
```
