MCPcopy Index your code
hub / github.com/simstudioai/sim / buildBrexHeaders

Function buildBrexHeaders

apps/sim/tools/brex/utils.ts:6–12  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

4 * Builds the standard headers for Brex API requests.
5 */
6export function buildBrexHeaders(apiKey: string): Record<string, string> {
7 return {
8 Authorization: `Bearer ${apiKey}`,
9 Accept: 'application/json',
10 'Content-Type': 'application/json',
11 }
12}
13
14/**
15 * Parses a Brex API response body, throwing a descriptive error for non-2xx responses.

Callers 15

get_vendor.tsFile · 0.90
get_budget.tsFile · 0.90
get_transfer.tsFile · 0.90
get_user.tsFile · 0.90
list_budgets.tsFile · 0.90
get_company.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected