# Get Company

See your company in full: its region, parent organization, how many members and roles it has, and whether domain discovery and Embedded are on.

`GET https://connect.mindcloud.co/v2/companies/:companyId`

Permissions: `company:view`.

## Parameters

### Path

- `companyId` (string, required): The company id, from Who Am I? or List Companies. It has to be the company the request acts on: your key's company, or the child organization X-Company-Id names.

### 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/companies/Cp5nB8mGh3Kw' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): Unique id of the company.
- `name` (string): The company's name.
- `description` (string): The company's description.
- `timezone` (string): The company's timezone key, an abbreviation such as EDT or PST rather than an IANA zone name.
- `region` (string): Where the company keeps its data: us-west-1 (United States), eu-north-1 (European Union) or sa-east-1 (Brazil).
  Allowed values:
    - `us-west-1`
    - `eu-north-1`
    - `sa-east-1`
- `isPersonal` (boolean): True for personal workspaces rather than team companies.
- `logo` (string): The company's logo URL.
- `parent` (object): The parent organization, or null when the company has none. Its API keys can act in this company.
  - `id` (string): The parent's company id.
  - `name` (string): The parent's name.
  - `origin` (string): created when the parent created this company, linked when this company accepted the parent.
    Allowed values:
      - `created`
      - `linked`
  - `linkedOn` (date): When the link started.
- `memberCount` (number): Members of the company, including people whose invite is pending.
- `roleCount` (number): Roles you can assign: the built-in roles plus your custom roles (List Roles).
- `domainDiscovery` (object): Whether people who sign up with an email at one of these domains can find and join the company.
  - `isEnabled` (boolean): True when domain discovery is on.
  - `domains` (array): The email domains it applies to.
- `embedded` (object): MindCloud Embedded for the company.
  - `isEnabled` (boolean): True when Embedded is enabled, so end users can connect their own accounts.
- `isDeleted` (boolean): True after the company was deleted.
- `createdOn` (date): When the company was created.
- `updatedOn` (date): When it was last changed.

## Errors

- 403 Access denied (API_KEY_PERMISSION_DENIED, COMPANY_SCOPE_MISMATCH): `FORBIDDEN` / `COMPANY_SCOPE_MISMATCH` "The path names company "Kd2mR7pXq9Lw", but this request acts on company "Cp5nB8mGh3Kw": the API key's company, or the one X-Company-Id names."
- 404 Company not found: `NOT_FOUND` "Company "Cp5nB8mGh3Kw" was not found."
