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

Defined in: [src/core/options.ts:20](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/core/options.ts#L20)

Per-request options accepted by every SDK method.

## Properties

### headers?

> `optional` **headers?**: `Record`\<`string`, `string`\>

Defined in: [src/core/options.ts:22](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/core/options.ts#L22)

Extra headers for this request (override defaults).

***

### idempotencyKey?

> `optional` **idempotencyKey?**: `string`

Defined in: [src/core/options.ts:30](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/core/options.ts#L30)

Idempotency-Key header value. Where Brex requires one (most creates) and
none is given, a random UUID is generated for you — pass your own to make
retries of *your* operation idempotent.

***

### signal?

> `optional` **signal?**: `AbortSignal`

Defined in: [src/core/options.ts:24](https://github.com/slingshot/brex/blob/9dff46b5d5637a0dd072bca56d02d8a0f4425312/src/core/options.ts#L24)

Abort/timeout control, e.g. `AbortSignal.timeout(10_000)`.