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

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

## Constructors

### Constructor

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

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

#### Parameters

##### \_core

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

#### Returns

`Titles`

## Methods

### create()

> **create**(`body`, `options?`): `Promise`\<\{ `id`: `string`; `name`: `string`; \}\>

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

Create title

This endpoint creates a new title

`POST /v2/titles` — requires OAuth scope: `titles`
Supports an optional `Idempotency-Key` via `options.idempotencyKey`.

#### Parameters

##### body

###### name

`string`

**Description**

Name of the title

##### options?

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

#### Returns

`Promise`\<\{ `id`: `string`; `name`: `string`; \}\>

***

### get()

> **get**(`id`, `options?`): `Promise`\<\{ `id`: `string`; `name`: `string`; \}\>

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

Get title

This endpoint gets a title by ID.

`GET /v2/titles/{id}` — requires OAuth scope: `titles`, `titles.readonly`

#### Parameters

##### id

`string`

##### options?

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

#### Returns

`Promise`\<\{ `id`: `string`; `name`: `string`; \}\>

***

### list()

> **list**(`query?`, `options?`): [`PagePromise`](/brex/api/index/classes/pagepromise/)\<\{ `items`: `object`[]; `next_cursor?`: `string` \| `null`; \}\>

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

List titles

This endpoint lists all titles.

`GET /v2/titles` — requires OAuth scope: `titles`, `titles.readonly`
Await for a single page, or `for await` to iterate items across all pages.

#### Parameters

##### query?

###### cursor?

`string` \| `null`

###### limit?

`number` \| `null`

###### name?

`string` \| `null`

##### options?

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

#### Returns

[`PagePromise`](/brex/api/index/classes/pagepromise/)\<\{ `items`: `object`[]; `next_cursor?`: `string` \| `null`; \}\>