# Who Am I?

Check which API key you are calling with, which company your requests will read from, and which MindCloud capabilities that company has enabled.

`GET https://connect.mindcloud.co/v2/me`

Permissions: any API key can call this endpoint.

## Parameters

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/me' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `apiKey.id` (string): The calling key's id.
- `apiKey.name` (string): The calling key's name.
- `apiKey.companyId` (string): The company the key belongs to.
- `apiKey.accessLevel` (string): The calling key's access level.
- `apiKey.isAdmin` (boolean): Reserved for MindCloud platform keys; false for customer keys.
- `apiKey.permissions` (array of string): The permissions the key holds.
- `apiKey.effectivePermissions` (array of string): The permissions this request may use: those the key holds that its creator also holds right now, in the company it acts on. Empty when the creator's account was removed or they left the organization.
- `companyId` (string): The company your requests will read from.
- `company.id` (string): The company your requests will read from.
- `company.name` (string): That company's name.
- `company.embedded.isEnabled` (boolean): True when MindCloud Embedded is enabled for the company, so end users can connect their own accounts.
- `company.parent.id` (string): The id of that company's parent organization, or null when it has none. The parent's keys can act in this company.
- `company.parent.name` (string): The parent organization's name.
- `company.parent.origin` (string): created or linked: how the company became a child.
- `company.parent.linkedOn` (date): When the link started.
- `delegation.parentCompanyId` (string): Set when this key belongs to a parent and X-Company-Id named one of its children: the key's company. Otherwise delegation is null.
- `delegation.childCompanyId` (string): The child organization this request acts on.
