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

# client.me()

> Get the current user.

Return the API key owner's user id, email, and teams with their write access. Pass a writable team's id as `teamId` when creating a project.

## Signature

Method signature on `client`:

```ts theme={null}
me(): Promise<CurrentUser>;
```

## Parameters

This method takes no arguments.

## Returns

`Promise<CurrentUser>`

The authenticated API key owner.

**id** `string` *required*

The platform user id of the API key owner.

**email** `string | null` *required*

The email of the API key owner, if known.

**teams** `object[]` *required*

The teams the API key owner belongs to, excluding blocked ones.

**Fields**

**id** `string` *required*

The team id to pass as teamId when creating a project.

**writable** `boolean` *required*

False when the API key owner has read-only access to the team.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 429 | Rate limit exceeded |

HTTP endpoint: [`GET /me`](https://docs.platform.toloka.ai/docs/api-reference/account/get-current-user).

```ts me() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  apiKey: process.env.TOLOKA_API_KEY!,
});

const user = await client.me();
console.log(user);
```

```json me() theme={null}
{
  "id": "<string>",
  "email": null,
  "teams": [
    {
      "id": "<string>",
      "writable": false
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.