> ## 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.

`mesa.whoami()` calls the API once, caches the result, and also populates the client's default organization.

**Required scope: `read`**

```python theme={null}
identity = await mesa.whoami()
print(identity.org.slug)
```

## Options

This method does not take options.

## Response

**org** `OrgIdentity`

Organization associated with the authenticated access token.

**scopes** `list[str]`

Effective scopes granted to the access token.

### OrgIdentity

**id** `str`

Organization ID.

**slug** `str`

Organization slug.

**name** `str`

Organization display name.

## Errors

Raises `AuthenticationError` for an invalid access token and other `ApiError` subclasses for non-2xx responses.


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