Skip to content

TeamPaths

Defined in: src/team/types.gen.ts:2

/v2/cards: object

Defined in: src/team/types.gen.ts:3

optional delete?: undefined

get: object

List cards

Lists all cards by a user_id. Only cards with limit_type = CARD have spend_controls

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional user_id?: string | null

optional requestBody?: undefined

responses: object

200: object

listCardsByUserId 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create card

Creates a new card. The spend_controls field is required when limit_type = CARD. The mailing_address field is required for physical cards and is the shipping address used to send the card; it is not the same as the billing and mailing address used for online purchases. The first 2 lines of this address must be under 60 characters long. Each user can only have up to 10 active physical cards. For Empower accounts, this endpoint requires budget management. If your account does not have access to budget management features, a 403 response status will be returned. If this is the case and you want to gain access to this endpoint, please contact Brex support.

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.card_attribute_preferences?
Section titled “post.requestBody.content.application/json.card_attribute_preferences?”

optional card_attribute_preferences?: { three_domain_secure_enabled_preference?: "THREE_DOMAIN_SECURE_ENABLED" | "THREE_DOMAIN_SECURE_DISABLED" | null; } | null

post.requestBody.content.application/json.card_name
Section titled “post.requestBody.content.application/json.card_name”

card_name: string

post.requestBody.content.application/json.card_type
Section titled “post.requestBody.content.application/json.card_type”

card_type: "VIRTUAL" | "PHYSICAL"

post.requestBody.content.application/json.limit_type
Section titled “post.requestBody.content.application/json.limit_type”

limit_type: "CARD" | "USER"

post.requestBody.content.application/json.mailing_address?
Section titled “post.requestBody.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

post.requestBody.content.application/json.metadata?
Section titled “post.requestBody.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

post.requestBody.content.application/json.owner
Section titled “post.requestBody.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

post.requestBody.content.application/json.spend_controls?
Section titled “post.requestBody.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; parent_budget_id?: string | null; policy_id?: string | null; reason?: string | null; spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"; spend_limit: { amount: number; currency: string | null; }; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; parent_budget_id?: string | null; policy_id?: string | null; reason?: string | null; spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"; spend_limit: { amount: number; currency: string | null; }; }

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

optional parent_budget_id?: string | null

If using the Empower platform, a new budget will be created for this card. You can specify a parent_budget that your new budget will be nested under. If parent_budget_id is null, we will nest the new budget under the top-level account budget.

optional policy_id?: string | null

optional reason?: string | null

spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

spend_limit: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

responses: object

200: object

createCard 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.billing_address
Section titled “post.responses.200.content.application/json.billing_address”

billing_address: object

post.responses.200.content.application/json.billing_address.city?
Section titled “post.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

post.responses.200.content.application/json.billing_address.country?
Section titled “post.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

post.responses.200.content.application/json.billing_address.line1?
Section titled “post.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

post.responses.200.content.application/json.billing_address.line2?
Section titled “post.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

post.responses.200.content.application/json.billing_address.phone_number?
Section titled “post.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

post.responses.200.content.application/json.billing_address.postal_code?
Section titled “post.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

post.responses.200.content.application/json.billing_address.state?
Section titled “post.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

post.responses.200.content.application/json.budget_id?
Section titled “post.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

post.responses.200.content.application/json.card_name
Section titled “post.responses.200.content.application/json.card_name”

card_name: string

post.responses.200.content.application/json.card_type?
Section titled “post.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

post.responses.200.content.application/json.expiration_date
Section titled “post.responses.200.content.application/json.expiration_date”

expiration_date: object

post.responses.200.content.application/json.expiration_date.month
Section titled “post.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

post.responses.200.content.application/json.expiration_date.year
Section titled “post.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

post.responses.200.content.application/json.has_been_transferred?
Section titled “post.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.last_four
Section titled “post.responses.200.content.application/json.last_four”

last_four: string

post.responses.200.content.application/json.limit_type
Section titled “post.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

post.responses.200.content.application/json.mailing_address?
Section titled “post.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

post.responses.200.content.application/json.metadata?
Section titled “post.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

post.responses.200.content.application/json.owner
Section titled “post.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

post.responses.200.content.application/json.spend_controls?
Section titled “post.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

post.responses.200.content.application/json.status?
Section titled “post.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/cards/{id}: object

Defined in: src/team/types.gen.ts:33

optional delete?: undefined

get: object

Get card

Retrieves a card by ID. Only cards with limit_type = CARD have spend_controls

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getCardById 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.billing_address
Section titled “get.responses.200.content.application/json.billing_address”

billing_address: object

get.responses.200.content.application/json.billing_address.city?
Section titled “get.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

get.responses.200.content.application/json.billing_address.country?
Section titled “get.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

get.responses.200.content.application/json.billing_address.line1?
Section titled “get.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

get.responses.200.content.application/json.billing_address.line2?
Section titled “get.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

get.responses.200.content.application/json.billing_address.phone_number?
Section titled “get.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

get.responses.200.content.application/json.billing_address.postal_code?
Section titled “get.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

get.responses.200.content.application/json.billing_address.state?
Section titled “get.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

get.responses.200.content.application/json.budget_id?
Section titled “get.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

get.responses.200.content.application/json.card_name
Section titled “get.responses.200.content.application/json.card_name”

card_name: string

get.responses.200.content.application/json.card_type?
Section titled “get.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

get.responses.200.content.application/json.expiration_date
Section titled “get.responses.200.content.application/json.expiration_date”

expiration_date: object

get.responses.200.content.application/json.expiration_date.month
Section titled “get.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

get.responses.200.content.application/json.expiration_date.year
Section titled “get.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

get.responses.200.content.application/json.has_been_transferred?
Section titled “get.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.last_four
Section titled “get.responses.200.content.application/json.last_four”

last_four: string

get.responses.200.content.application/json.limit_type
Section titled “get.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

get.responses.200.content.application/json.mailing_address?
Section titled “get.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

get.responses.200.content.application/json.metadata?
Section titled “get.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

get.responses.200.content.application/json.owner
Section titled “get.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

get.responses.200.content.application/json.spend_controls?
Section titled “get.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

get.responses.200.content.application/json.status?
Section titled “get.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

put: object

Update card

Update an existing vendor card

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

put.requestBody.content.application/json.metadata?
Section titled “put.requestBody.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

put.requestBody.content.application/json.spend_controls?
Section titled “put.requestBody.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

optional reason?: string | null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null


null

responses: object

200: object

updateCard 200 response

content: object

put.responses.200.content.application/json
Section titled “put.responses.200.content.application/json”

application/json: object

put.responses.200.content.application/json.billing_address
Section titled “put.responses.200.content.application/json.billing_address”

billing_address: object

put.responses.200.content.application/json.billing_address.city?
Section titled “put.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

put.responses.200.content.application/json.billing_address.country?
Section titled “put.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

put.responses.200.content.application/json.billing_address.line1?
Section titled “put.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

put.responses.200.content.application/json.billing_address.line2?
Section titled “put.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

put.responses.200.content.application/json.billing_address.phone_number?
Section titled “put.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

put.responses.200.content.application/json.billing_address.postal_code?
Section titled “put.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

put.responses.200.content.application/json.billing_address.state?
Section titled “put.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

put.responses.200.content.application/json.budget_id?
Section titled “put.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

put.responses.200.content.application/json.card_name
Section titled “put.responses.200.content.application/json.card_name”

card_name: string

put.responses.200.content.application/json.card_type?
Section titled “put.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

put.responses.200.content.application/json.expiration_date
Section titled “put.responses.200.content.application/json.expiration_date”

expiration_date: object

put.responses.200.content.application/json.expiration_date.month
Section titled “put.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

put.responses.200.content.application/json.expiration_date.year
Section titled “put.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

put.responses.200.content.application/json.has_been_transferred?
Section titled “put.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

put.responses.200.content.application/json.id
Section titled “put.responses.200.content.application/json.id”

id: string

put.responses.200.content.application/json.last_four
Section titled “put.responses.200.content.application/json.last_four”

last_four: string

put.responses.200.content.application/json.limit_type
Section titled “put.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

put.responses.200.content.application/json.mailing_address?
Section titled “put.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

put.responses.200.content.application/json.metadata?
Section titled “put.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

put.responses.200.content.application/json.owner
Section titled “put.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

put.responses.200.content.application/json.spend_controls?
Section titled “put.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

put.responses.200.content.application/json.status?
Section titled “put.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional trace?: undefined


/v2/cards/{id}/lock: object

Defined in: src/team/types.gen.ts:57

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Lock card

Locks an existing, unlocked card. And the card owner will receive a notification about it.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.description?
Section titled “post.requestBody.content.application/json.description?”

optional description?: string | null

Description for locking a card

post.requestBody.content.application/json.reason
Section titled “post.requestBody.content.application/json.reason”

reason: "OTHER" | "CARD_DAMAGED" | "CARD_LOST" | "CARD_NOT_RECEIVED" | "DO_NOT_NEED_PHYSICAL_CARD" | "DO_NOT_NEED_VIRTUAL_CARD" | "FRAUD"

responses: object

200: object

lockCard 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.billing_address
Section titled “post.responses.200.content.application/json.billing_address”

billing_address: object

post.responses.200.content.application/json.billing_address.city?
Section titled “post.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

post.responses.200.content.application/json.billing_address.country?
Section titled “post.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

post.responses.200.content.application/json.billing_address.line1?
Section titled “post.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

post.responses.200.content.application/json.billing_address.line2?
Section titled “post.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

post.responses.200.content.application/json.billing_address.phone_number?
Section titled “post.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

post.responses.200.content.application/json.billing_address.postal_code?
Section titled “post.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

post.responses.200.content.application/json.billing_address.state?
Section titled “post.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

post.responses.200.content.application/json.budget_id?
Section titled “post.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

post.responses.200.content.application/json.card_name
Section titled “post.responses.200.content.application/json.card_name”

card_name: string

post.responses.200.content.application/json.card_type?
Section titled “post.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

post.responses.200.content.application/json.expiration_date
Section titled “post.responses.200.content.application/json.expiration_date”

expiration_date: object

post.responses.200.content.application/json.expiration_date.month
Section titled “post.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

post.responses.200.content.application/json.expiration_date.year
Section titled “post.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

post.responses.200.content.application/json.has_been_transferred?
Section titled “post.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.last_four
Section titled “post.responses.200.content.application/json.last_four”

last_four: string

post.responses.200.content.application/json.limit_type
Section titled “post.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

post.responses.200.content.application/json.mailing_address?
Section titled “post.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

post.responses.200.content.application/json.metadata?
Section titled “post.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

post.responses.200.content.application/json.owner
Section titled “post.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

post.responses.200.content.application/json.spend_controls?
Section titled “post.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

post.responses.200.content.application/json.status?
Section titled “post.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/cards/{id}/pan: object

Defined in: src/team/types.gen.ts:77

optional delete?: undefined

get: object

Get card number

Retrieves card number, CVV, and expiration date of a card by ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getCardNumber 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.cvv
Section titled “get.responses.200.content.application/json.cvv”

cvv: string

get.responses.200.content.application/json.expiration_date
Section titled “get.responses.200.content.application/json.expiration_date”

expiration_date: object

get.responses.200.content.application/json.expiration_date.month
Section titled “get.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

get.responses.200.content.application/json.expiration_date.year
Section titled “get.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

get.responses.200.content.application/json.holder_name
Section titled “get.responses.200.content.application/json.holder_name”

holder_name: string

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.number
Section titled “get.responses.200.content.application/json.number”

number: string

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/cards/{id}/secure_email: object

Defined in: src/team/types.gen.ts:97

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create secure email to send card number

Creates a secure email to send card number, CVV, and expiration date of a card by ID to the specified email.

This endpoint is currently gated. If you would like to request access, please reach out to
developer-support@brex.com

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.expiry_days?
Section titled “post.requestBody.content.application/json.expiry_days?”

optional expiry_days?: number | null

Format: int32

Link expiry in number of days. Defaults to 30

post.requestBody.content.application/json.message?
Section titled “post.requestBody.content.application/json.message?”

optional message?: string | null

Message to send with the card details

post.requestBody.content.application/json.recipient_email
Section titled “post.requestBody.content.application/json.recipient_email”

recipient_email: string

Email address to send card details to

post.requestBody.content.application/json.sender_name
Section titled “post.requestBody.content.application/json.sender_name”

sender_name: string

Sender name. Shows up in the subject of the email

responses: object

200: object

emailCardNumber 200 response

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/cards/{id}/terminate: object

Defined in: src/team/types.gen.ts:120

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Terminate card

Terminates an existing card. The card owner will receive a notification about it.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.description?
Section titled “post.requestBody.content.application/json.description?”

optional description?: string | null

Description for terminating a card

post.requestBody.content.application/json.reason
Section titled “post.requestBody.content.application/json.reason”

reason: "OTHER" | "CARD_DAMAGED" | "CARD_LOST" | "CARD_NOT_RECEIVED" | "DO_NOT_NEED_PHYSICAL_CARD" | "DO_NOT_NEED_VIRTUAL_CARD" | "FRAUD"

responses: object

200: object

terminateCard 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.billing_address
Section titled “post.responses.200.content.application/json.billing_address”

billing_address: object

post.responses.200.content.application/json.billing_address.city?
Section titled “post.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

post.responses.200.content.application/json.billing_address.country?
Section titled “post.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

post.responses.200.content.application/json.billing_address.line1?
Section titled “post.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

post.responses.200.content.application/json.billing_address.line2?
Section titled “post.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

post.responses.200.content.application/json.billing_address.phone_number?
Section titled “post.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

post.responses.200.content.application/json.billing_address.postal_code?
Section titled “post.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

post.responses.200.content.application/json.billing_address.state?
Section titled “post.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

post.responses.200.content.application/json.budget_id?
Section titled “post.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

post.responses.200.content.application/json.card_name
Section titled “post.responses.200.content.application/json.card_name”

card_name: string

post.responses.200.content.application/json.card_type?
Section titled “post.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

post.responses.200.content.application/json.expiration_date
Section titled “post.responses.200.content.application/json.expiration_date”

expiration_date: object

post.responses.200.content.application/json.expiration_date.month
Section titled “post.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

post.responses.200.content.application/json.expiration_date.year
Section titled “post.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

post.responses.200.content.application/json.has_been_transferred?
Section titled “post.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.last_four
Section titled “post.responses.200.content.application/json.last_four”

last_four: string

post.responses.200.content.application/json.limit_type
Section titled “post.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

post.responses.200.content.application/json.mailing_address?
Section titled “post.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

post.responses.200.content.application/json.metadata?
Section titled “post.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

post.responses.200.content.application/json.owner
Section titled “post.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

post.responses.200.content.application/json.spend_controls?
Section titled “post.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

post.responses.200.content.application/json.status?
Section titled “post.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/cards/{id}/unlock: object

Defined in: src/team/types.gen.ts:140

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Unlock card

Unlocks an existing card.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

unlockCard 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.billing_address
Section titled “post.responses.200.content.application/json.billing_address”

billing_address: object

post.responses.200.content.application/json.billing_address.city?
Section titled “post.responses.200.content.application/json.billing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

post.responses.200.content.application/json.billing_address.country?
Section titled “post.responses.200.content.application/json.billing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

post.responses.200.content.application/json.billing_address.line1?
Section titled “post.responses.200.content.application/json.billing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

post.responses.200.content.application/json.billing_address.line2?
Section titled “post.responses.200.content.application/json.billing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

post.responses.200.content.application/json.billing_address.phone_number?
Section titled “post.responses.200.content.application/json.billing_address.phone_number?”

optional phone_number?: string | null

Phone number.

post.responses.200.content.application/json.billing_address.postal_code?
Section titled “post.responses.200.content.application/json.billing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

post.responses.200.content.application/json.billing_address.state?
Section titled “post.responses.200.content.application/json.billing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

post.responses.200.content.application/json.budget_id?
Section titled “post.responses.200.content.application/json.budget_id?”

optional budget_id?: string | null

post.responses.200.content.application/json.card_name
Section titled “post.responses.200.content.application/json.card_name”

card_name: string

post.responses.200.content.application/json.card_type?
Section titled “post.responses.200.content.application/json.card_type?”

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

post.responses.200.content.application/json.expiration_date
Section titled “post.responses.200.content.application/json.expiration_date”

expiration_date: object

post.responses.200.content.application/json.expiration_date.month
Section titled “post.responses.200.content.application/json.expiration_date.month”

month: number

Format: int32

post.responses.200.content.application/json.expiration_date.year
Section titled “post.responses.200.content.application/json.expiration_date.year”

year: number

Format: int32

post.responses.200.content.application/json.has_been_transferred?
Section titled “post.responses.200.content.application/json.has_been_transferred?”

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.last_four
Section titled “post.responses.200.content.application/json.last_four”

last_four: string

post.responses.200.content.application/json.limit_type
Section titled “post.responses.200.content.application/json.limit_type”

limit_type: "CARD" | "USER"

post.responses.200.content.application/json.mailing_address?
Section titled “post.responses.200.content.application/json.mailing_address?”

optional 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; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

post.responses.200.content.application/json.metadata?
Section titled “post.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

post.responses.200.content.application/json.owner
Section titled “post.responses.200.content.application/json.owner”

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

post.responses.200.content.application/json.spend_controls?
Section titled “post.responses.200.content.application/json.spend_controls?”

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: … | …; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: … | …; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: … | …

The type of currency, in ISO 4217 format.

USD
USD

null


null

post.responses.200.content.application/json.status?
Section titled “post.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/company: object

Defined in: src/team/types.gen.ts:160

optional delete?: undefined

get: object

Get company

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

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getCompany 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.accountType
Section titled “get.responses.200.content.application/json.accountType”

accountType: "BREX_CLASSIC" | "BREX_EMPOWER"

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.legal_name
Section titled “get.responses.200.content.application/json.legal_name”

legal_name: string

get.responses.200.content.application/json.mailing_address
Section titled “get.responses.200.content.application/json.mailing_address”

mailing_address: object

get.responses.200.content.application/json.mailing_address.city?
Section titled “get.responses.200.content.application/json.mailing_address.city?”

optional city?: string | null

City, district, suburb, town, or village.

get.responses.200.content.application/json.mailing_address.country?
Section titled “get.responses.200.content.application/json.mailing_address.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

get.responses.200.content.application/json.mailing_address.line1?
Section titled “get.responses.200.content.application/json.mailing_address.line1?”

optional line1?: string | null

Address line 1, no PO Box.

get.responses.200.content.application/json.mailing_address.line2?
Section titled “get.responses.200.content.application/json.mailing_address.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

get.responses.200.content.application/json.mailing_address.phone_number?
Section titled “get.responses.200.content.application/json.mailing_address.phone_number?”

optional phone_number?: string | null

Phone number.

get.responses.200.content.application/json.mailing_address.postal_code?
Section titled “get.responses.200.content.application/json.mailing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

get.responses.200.content.application/json.mailing_address.state?
Section titled “get.responses.200.content.application/json.mailing_address.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/departments: object

Defined in: src/team/types.gen.ts:180

optional delete?: undefined

get: object

List departments

This endpoint lists all departments.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional name?: string | null

optional requestBody?: undefined

responses: object

200: object

listDepartments 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create department

This endpoint creates a new department

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.description?
Section titled “post.requestBody.content.application/json.description?”

optional description?: string | null

Description of the department

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name of the department

responses: object

200: object

createDepartment 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”

optional description?: string | null

Description of the department

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name of the department

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/departments/{id}: object

Defined in: src/team/types.gen.ts:204

optional delete?: undefined

get: object

Get department

This endpoint gets a department by ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getDepartmentById 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

Description of the department

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name of the department

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/legal_entities: object

Defined in: src/team/types.gen.ts:224

optional delete?: undefined

get: object

List legal entities

List legal entities for the account.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional requestBody?: undefined

responses: object

200: object

listLegalEntities 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/legal_entities/{id}: object

Defined in: src/team/types.gen.ts:244

optional delete?: undefined

get: object

Get legal entity

Get a legal entity by its ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getLegalEntity 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.billingAddress
Section titled “get.responses.200.content.application/json.billingAddress”

billingAddress: object

get.responses.200.content.application/json.billingAddress.city?
Section titled “get.responses.200.content.application/json.billingAddress.city?”

optional city?: string | null

City, district, suburb, town, or village.

get.responses.200.content.application/json.billingAddress.country?
Section titled “get.responses.200.content.application/json.billingAddress.country?”

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

get.responses.200.content.application/json.billingAddress.line1?
Section titled “get.responses.200.content.application/json.billingAddress.line1?”

optional line1?: string | null

Address line 1, no PO Box.

get.responses.200.content.application/json.billingAddress.line2?
Section titled “get.responses.200.content.application/json.billingAddress.line2?”

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

get.responses.200.content.application/json.billingAddress.phone_number?
Section titled “get.responses.200.content.application/json.billingAddress.phone_number?”

optional phone_number?: string | null

Phone number.

get.responses.200.content.application/json.billingAddress.postal_code?
Section titled “get.responses.200.content.application/json.billingAddress.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

get.responses.200.content.application/json.billingAddress.state?
Section titled “get.responses.200.content.application/json.billingAddress.state?”

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

get.responses.200.content.application/json.createdAt
Section titled “get.responses.200.content.application/json.createdAt”

createdAt: string

Format: date-time

Timestamp, in UTC, when this legal entity was created.

get.responses.200.content.application/json.displayName
Section titled “get.responses.200.content.application/json.displayName”

displayName: string

The display name of this legal entity.

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

The ID of this legal entity.

get.responses.200.content.application/json.isDefault?
Section titled “get.responses.200.content.application/json.isDefault?”

optional isDefault?: boolean

Whether this is the default entity of the account.

get.responses.200.content.application/json.status
Section titled “get.responses.200.content.application/json.status”

status: "UNSUBMITTED" | "UNVERIFIED" | "IN_PROGRESS" | "VERIFIED" | "REJECTED"

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/locations: object

Defined in: src/team/types.gen.ts:264

optional delete?: undefined

get: object

List locations

This endpoint lists all locations.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional name?: string | null

optional requestBody?: undefined

responses: object

200: object

listLocations 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create location

This endpoint creates a new location.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.description?
Section titled “post.requestBody.content.application/json.description?”

optional description?: string | null

Description of the location

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name of the location

responses: object

200: object

createLocation 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”

optional description?: string | null

Description of the location

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name of the location

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/locations/{id}: object

Defined in: src/team/types.gen.ts:288

optional delete?: undefined

get: object

Get location

This endpoint gets a location by ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getLocationById 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

Description of the location

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name of the location

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/titles: object

Defined in: src/team/types.gen.ts:308

optional delete?: undefined

get: object

List titles

This endpoint lists all titles.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional name?: string | null

optional requestBody?: undefined

responses: object

200: object

listTitles 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create title

This endpoint creates a new title

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name of the title

responses: object

200: object

createTitle 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name of the title

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/titles/{id}: object

Defined in: src/team/types.gen.ts:332

optional delete?: undefined

get: object

Get title

This endpoint gets a title by ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getTitleById 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name of the title

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v2/users: object

Defined in: src/team/types.gen.ts:352

optional delete?: undefined

get: object

List users

This endpoint lists all users. To find a user id by email, you can filter using the email query parameter.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional email?: string | null

optional expand[]?: string[] | null

optional limit?: number | null

optional remote_display_id?: string | null

optional requestBody?: undefined

responses: object

200: object

listUsers 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Invite user

This endpoint invites a new user as an employee. To update user’s role, check out this article.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.department_id?
Section titled “post.requestBody.content.application/json.department_id?”

optional department_id?: string | null

post.requestBody.content.application/json.email
Section titled “post.requestBody.content.application/json.email”

email: string

Format: email

post.requestBody.content.application/json.first_name
Section titled “post.requestBody.content.application/json.first_name”

first_name: string

post.requestBody.content.application/json.last_name
Section titled “post.requestBody.content.application/json.last_name”

last_name: string

post.requestBody.content.application/json.location_id?
Section titled “post.requestBody.content.application/json.location_id?”

optional location_id?: string | null

post.requestBody.content.application/json.manager_id?
Section titled “post.requestBody.content.application/json.manager_id?”

optional manager_id?: string | null

post.requestBody.content.application/json.metadata?
Section titled “post.requestBody.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

post.requestBody.content.application/json.title_id?
Section titled “post.requestBody.content.application/json.title_id?”

optional title_id?: string | null

responses: object

200: object

createUser 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.department_id?
Section titled “post.responses.200.content.application/json.department_id?”

optional department_id?: string | null

post.responses.200.content.application/json.email
Section titled “post.responses.200.content.application/json.email”

email: string

Email address of the user

post.responses.200.content.application/json.first_name
Section titled “post.responses.200.content.application/json.first_name”

first_name: string

First name of the user

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

post.responses.200.content.application/json.last_name
Section titled “post.responses.200.content.application/json.last_name”

last_name: string

Last name of the user

post.responses.200.content.application/json.location_id?
Section titled “post.responses.200.content.application/json.location_id?”

optional location_id?: string | null

post.responses.200.content.application/json.manager_id?
Section titled “post.responses.200.content.application/json.manager_id?”

optional manager_id?: string | null

The user id of the manager of this user

post.responses.200.content.application/json.metadata?
Section titled “post.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

post.responses.200.content.application/json.remote_display_id?
Section titled “post.responses.200.content.application/json.remote_display_id?”

optional remote_display_id?: string | null

Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz

post.responses.200.content.application/json.status?
Section titled “post.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED" | null

post.responses.200.content.application/json.title_id?
Section titled “post.responses.200.content.application/json.title_id?”

optional title_id?: string | null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/users/{id}: object

Defined in: src/team/types.gen.ts:377

optional delete?: undefined

get: object

Get user

This endpoint gets a user by ID.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getUserById 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.department_id?
Section titled “get.responses.200.content.application/json.department_id?”

optional department_id?: string | null

get.responses.200.content.application/json.email
Section titled “get.responses.200.content.application/json.email”

email: string

Email address of the user

get.responses.200.content.application/json.first_name
Section titled “get.responses.200.content.application/json.first_name”

first_name: string

First name of the user

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.last_name
Section titled “get.responses.200.content.application/json.last_name”

last_name: string

Last name of the user

get.responses.200.content.application/json.location_id?
Section titled “get.responses.200.content.application/json.location_id?”

optional location_id?: string | null

get.responses.200.content.application/json.manager_id?
Section titled “get.responses.200.content.application/json.manager_id?”

optional manager_id?: string | null

The user id of the manager of this user

get.responses.200.content.application/json.metadata?
Section titled “get.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

get.responses.200.content.application/json.remote_display_id?
Section titled “get.responses.200.content.application/json.remote_display_id?”

optional remote_display_id?: string | null

Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz

get.responses.200.content.application/json.status?
Section titled “get.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED" | null

get.responses.200.content.application/json.title_id?
Section titled “get.responses.200.content.application/json.title_id?”

optional title_id?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

put: object

Update user

This endpoint updates a user. Any parameters not provided will be left unchanged.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

put.requestBody.content.application/json.department_id?
Section titled “put.requestBody.content.application/json.department_id?”

optional department_id?: string | null

put.requestBody.content.application/json.location_id?
Section titled “put.requestBody.content.application/json.location_id?”

optional location_id?: string | null

put.requestBody.content.application/json.manager_id?
Section titled “put.requestBody.content.application/json.manager_id?”

optional manager_id?: string | null

The user id of the manager of this user

put.requestBody.content.application/json.metadata?
Section titled “put.requestBody.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

put.requestBody.content.application/json.status?
Section titled “put.requestBody.content.application/json.status?”

optional status?: "ACTIVE" | "DISABLED" | null

put.requestBody.content.application/json.title_id?
Section titled “put.requestBody.content.application/json.title_id?”

optional title_id?: string | null

responses: object

200: object

updateUser 200 response

content: object

put.responses.200.content.application/json
Section titled “put.responses.200.content.application/json”

application/json: object

put.responses.200.content.application/json.department_id?
Section titled “put.responses.200.content.application/json.department_id?”

optional department_id?: string | null

put.responses.200.content.application/json.email
Section titled “put.responses.200.content.application/json.email”

email: string

Email address of the user

put.responses.200.content.application/json.first_name
Section titled “put.responses.200.content.application/json.first_name”

first_name: string

First name of the user

put.responses.200.content.application/json.id
Section titled “put.responses.200.content.application/json.id”

id: string

put.responses.200.content.application/json.last_name
Section titled “put.responses.200.content.application/json.last_name”

last_name: string

Last name of the user

put.responses.200.content.application/json.location_id?
Section titled “put.responses.200.content.application/json.location_id?”

optional location_id?: string | null

put.responses.200.content.application/json.manager_id?
Section titled “put.responses.200.content.application/json.manager_id?”

optional manager_id?: string | null

The user id of the manager of this user

put.responses.200.content.application/json.metadata?
Section titled “put.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

put.responses.200.content.application/json.remote_display_id?
Section titled “put.responses.200.content.application/json.remote_display_id?”

optional remote_display_id?: string | null

Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz

put.responses.200.content.application/json.status?
Section titled “put.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED" | null

put.responses.200.content.application/json.title_id?
Section titled “put.responses.200.content.application/json.title_id?”

optional title_id?: string | null

headers: object

[name: string]: unknown

optional trace?: undefined


/v2/users/{id}/limit: object

Defined in: src/team/types.gen.ts:401

optional delete?: undefined

get: object

Get limit for the user

This endpoint gets the monthly limit for the user including the monthly available limit.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getUserLimit 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.monthly_available?
Section titled “get.responses.200.content.application/json.monthly_available?”

optional monthly_available?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

get.responses.200.content.application/json.monthly_limit?
Section titled “get.responses.200.content.application/json.monthly_limit?”

optional monthly_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Set limit for the user

This endpoint sets the monthly limit for a user. The limit amount must be non-negative. To unset the monthly limit of the user, just set monthly_limit to null.

parameters: object

optional cookie?: undefined

optional header?: object

optional Idempotency-Key?: string | null

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.monthly_limit?
Section titled “post.requestBody.content.application/json.monthly_limit?”

optional monthly_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

responses: object

200: object

setUserLimit 200 response

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.monthly_available?
Section titled “post.responses.200.content.application/json.monthly_available?”

optional monthly_available?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

post.responses.200.content.application/json.monthly_limit?
Section titled “post.responses.200.content.application/json.monthly_limit?”

optional monthly_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/users/me: object

Defined in: src/team/types.gen.ts:427

optional delete?: undefined

get: object

Get current user

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

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

getMe 200 response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.department_id?
Section titled “get.responses.200.content.application/json.department_id?”

optional department_id?: string | null

get.responses.200.content.application/json.email
Section titled “get.responses.200.content.application/json.email”

email: string

Email address of the user

get.responses.200.content.application/json.first_name
Section titled “get.responses.200.content.application/json.first_name”

first_name: string

First name of the user

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.last_name
Section titled “get.responses.200.content.application/json.last_name”

last_name: string

Last name of the user

get.responses.200.content.application/json.location_id?
Section titled “get.responses.200.content.application/json.location_id?”

optional location_id?: string | null

get.responses.200.content.application/json.manager_id?
Section titled “get.responses.200.content.application/json.manager_id?”

optional manager_id?: string | null

The user id of the manager of this user

get.responses.200.content.application/json.metadata?
Section titled “get.responses.200.content.application/json.metadata?”

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

get.responses.200.content.application/json.remote_display_id?
Section titled “get.responses.200.content.application/json.remote_display_id?”

optional remote_display_id?: string | null

Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz

get.responses.200.content.application/json.status?
Section titled “get.responses.200.content.application/json.status?”

optional status?: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED" | null

get.responses.200.content.application/json.title_id?
Section titled “get.responses.200.content.application/json.title_id?”

optional title_id?: string | null

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined