---
search:
  tags:
    - Whoami
    - GET
seo:
  description: >-
    Return the organization behind the current request. Never returns anything
    about the credential… Reference for the GET /whoami endpoint in the Modem
    API.
sidebar:
  label: Get current identity
  badge: GET
title: Get current identity
type: openapi-operation
---
Return the organization behind the current request. Never returns anything about the credential itself.

`GET /whoami`

**Responses**

- `200` — OK
- `400` — Invalid request (validation failed).
- `401` — Missing or invalid API key.
- `403` — The API key does not have access to this resource.
- `404` — The requested resource was not found.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

Response example, 200:

```json
{
  "organization": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}
```
