---
title: Companies
editUrl: false
head: []
template: doc
prev: false
next: false
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

Defined in: [src/team/client.gen.ts:205](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/team/client.gen.ts#L205)

## Constructors

### Constructor

> **new Companies**(`_core`): `Companies`

Defined in: [src/team/client.gen.ts:206](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/team/client.gen.ts#L206)

#### Parameters

##### \_core

[`BrexCore`](/brex/api/index/classes/brexcore/)

#### Returns

`Companies`

## Methods

### get()

> **get**(`options?`): `Promise`\<\{ `accountType`: `"BREX_CLASSIC"` \| `"BREX_EMPOWER"`; `id`: `string`; `legal_name`: `string`; `mailing_address`: \{ `city?`: `string` \| `null`; `country?`: `string` \| `null`; `line1?`: `string` \| `null`; `line2?`: `string` \| `null`; `phone_number?`: `string` \| `null`; `postal_code?`: `string` \| `null`; `state?`: `string` \| `null`; \}; \}\>

Defined in: [src/team/client.gen.ts:215](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/team/client.gen.ts#L215)

Get company

This endpoint returns the company associated with the OAuth2 access token.

`GET /v2/company` — requires OAuth scope: `companies.readonly`

#### Parameters

##### options?

[`RequestOptions`](/brex/api/index/interfaces/requestoptions/)

#### Returns

`Promise`\<\{ `accountType`: `"BREX_CLASSIC"` \| `"BREX_EMPOWER"`; `id`: `string`; `legal_name`: `string`; `mailing_address`: \{ `city?`: `string` \| `null`; `country?`: `string` \| `null`; `line1?`: `string` \| `null`; `line2?`: `string` \| `null`; `phone_number?`: `string` \| `null`; `postal_code?`: `string` \| `null`; `state?`: `string` \| `null`; \}; \}\>