# Get the current user

> GET /me

Source: https://mockflow.com/developers/reference/me/get-me

**GET** `https://api.mockflow.com/v1/me`  
Scopes: `user:read`

**curl**

```bash
curl https://api.mockflow.com/v1/me \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/me", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.get(
    "https://api.mockflow.com/v1/me",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**200**

```json
{
  "id": "string",
  "email": "jane@acme.com",
  "name": "Q4 Launch Planning",
  "firstName": "Q4 Launch Planning",
  "lastName": "Q4 Launch Planning",
  "createdAt": "2026-10-01T09:30:00Z"
}
```

**401**

```json
{
  "error": {
    "code": "unauthorized",
    "message": "Provide a Bearer token. Create one at mockflow.com/developers/console."
  },
  "requestId": "req_01j8"
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

The person behind the token, the workspace they belong to, and its plan.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `user:read` scope. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Response

- `id` (string)
- `email` (string)
- `name` (string)
- `firstName` (string)
- `lastName` (string)
- `createdAt` (string | null)
- `workspace` (object): - `id` (string)
  - `name` (string)
  - `plan` (enum<string>): The three plans. An enterprise licence is a max plan. One of `basic`, `plus` or `max`.
  - `dayPass` (boolean)
  - `dayPassEndsAt` (string | null)
  - `teamPack` (boolean)
  - `business` (boolean): The workspace holds a board business licence.
  - `boardCount` (integer)
  - `spaceCount` (integer)
- `token` (object): - `kind` (enum<string>): One of `personal`, `service` or `oauth`.
  - `name` (string | null)
  - `scopes` (string[])

### Errors

- 401 `unauthorized`: Missing or invalid token.
- 429 `rate_limited`: Too many requests.
