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

# whoami()

> Return the caller's authenticated organization and scopes.

Fetch the authenticated scopes and default organization.

**Required scope: `read`**

```ts theme={null}
const identity = await mesa.whoami();

console.log(identity.org.slug);
console.log(identity.scopes);
```

## Options

This method does not accept options.

## Response

**org** `OrgIdentity`

Organization associated with the authenticated access token.

**scopes** `string[]`

Effective scopes granted to the access token.

### OrgIdentity

**id** `string`

Organization ID.

**slug** `string`

Organization slug.

**name** `string`

Organization display name.


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