{"items":[{"type":"link","label":"Team API","link":"/openapi/team_api","routeSlug":"/openapi/team_api","content":{"contentType":"overview","meta":{"name":"Team API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"team_api.json","url":"/_bundle/openapi/team_api.json?download"},{"kind":"download","label":"team_api.yaml","url":"/_bundle/openapi/team_api.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://brex.com","url":"https://brex.com"},{"kind":"email","title":"Admin","email":"developer-support@brex.com","label":"developer-support@brex.com","withCopyButton":true,"copyContent":"developer-support@brex.com"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"java","title":"Java","lang":"Java"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Team API (1.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"The team API lets you manage users, departments, locations, and cards."}],"sectionId":"/"}],"sectionId":"/"}]}]}},{"type":"group","label":"Users","link":"/openapi/team_api/users","routeSlug":"/openapi/team_api/users","items":[{"label":"\nList users\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/listusers","routeSlug":"/openapi/team_api/users/listusers","metadata":{"seo":{"title":"\nList users\n","description":"This endpoint lists all users."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listUsers","name":"\nList users\n","isWebhook":false,"pointer":"/paths/~1v2~1users/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList users\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint lists all users."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Results can be narrowed with the filter query parameters below. Values within a single"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"filter are OR-ed, and separate filters are AND-ed together."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filters that accept multiple values take them either as a comma-separated list or as a repeated"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"parameter: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"?status[]=ACTIVE,INVITED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"?status[]=ACTIVE&status[]=INVITED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" are equivalent."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The legacy singular "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"email"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"remote_display_id"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" parameters perform an exact lookup that returns"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"at most one user, and cannot be combined with the filters above."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"email","in":"query","schemaId":"schema_2"},{"name":"remote_display_id","in":"query","schemaId":"schema_2"},{"name":"name","in":"query","schemaId":"schema_0","description":"Fuzzy, case-insensitive match against the user's first name, last name and email."},{"name":"email[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by email address. Accepts several emails, e.g. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"?email[]=a@example.com,b@example.com"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"status[]","in":"query","schemaId":"schema_4","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by user status. Accepts several statuses, e.g. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"?status[]=ACTIVE,INVITED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". By default, deleted and archived users are excluded."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"manager_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by the user_id of the manager. Accepts a list of managers."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"department_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by department_id. Accepts a list of departments."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"location_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by location_id. Accepts a list of locations."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"title_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by title_id. Accepts a list of titles."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"cost_center_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by cost_center_id. Accepts a list of cost centers."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"legal_entity_id[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by legal_entity_id. Accepts a list of legal entities."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"load_custom_fields","in":"query","schemaId":"schema_5","description":"Load custom field values for the users."},{"name":"custom_field[]","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Filter by custom field value, given as "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"key:option_id"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Accepts a list of custom fields. Values within a single key are OR-ed, and separate keys are AND-ed together."},"children":[],"type":"text"}],"type":"paragraph"}]}],"pointer":"/paths/~1v2~1users/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/users","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"email","in":"query","schemaId":"schema_2"},{"name":"remote_display_id","in":"query","schemaId":"schema_2"},{"name":"name","in":"query","schemaId":"schema_0"},{"name":"email[]","in":"query","schemaId":"schema_3"},{"name":"status[]","in":"query","schemaId":"schema_4"},{"name":"manager_id[]","in":"query","schemaId":"schema_3"},{"name":"department_id[]","in":"query","schemaId":"schema_3"},{"name":"location_id[]","in":"query","schemaId":"schema_3"},{"name":"title_id[]","in":"query","schemaId":"schema_3"},{"name":"cost_center_id[]","in":"query","schemaId":"schema_3"},{"name":"legal_entity_id[]","in":"query","schemaId":"schema_3"},{"name":"load_custom_fields","in":"query","schemaId":"schema_5"},{"name":"custom_field[]","in":"query","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"responseCodes":["200"],"pointer":"/v2/users","href":"users/listusers","openApiOperationId":"listUsers","summary":"\nList users\n","securityGroups":[{"OAuth2":["users.readonly"]},{"OAuth2":["users"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listUsers 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_UserResponse_"}},"schemaId":"components/schemas/Page_UserResponse_"}],"pointer":"/paths/~1v2~1users/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_UserResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_UserResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/listusers"}],"panels":[]}]},"httpPath":"/v2/users"},{"label":"\nInvite user\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/createuser","routeSlug":"/openapi/team_api/users/createuser","metadata":{"seo":{"title":"\nInvite user\n","description":"This endpoint invites a new user. To choose their role, set role_name; otherwise they're invited as an employee.You can assign only the roles available on your product tier. Every invited user gets physical and virtual card access by default, whatever their role."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createUser","name":"\nInvite user\n","isWebhook":false,"pointer":"/paths/~1v2~1users/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nInvite user\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint invites a new user. To choose their role, set "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"role_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"; otherwise they're invited as an employee."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"You can assign only the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"https://www.brex.com/support/brex-role-types-and-permissions"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"roles available on your product tier"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Every invited user gets physical and virtual card access by default, whatever their role."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1users/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateUserRequest"}},"schemaId":"components/schemas/CreateUserRequest","pointer":"/paths/~1v2~1users/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/users","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateUserRequest"}},"responseCodes":["200"],"pointer":"/v2/users","href":"users/createuser","openApiOperationId":"createUser","summary":"\nInvite user\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateUserRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateUserRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createUser 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}},"schemaId":"components/schemas/UserResponse"}],"pointer":"/paths/~1v2~1users/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UserResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/createuser"}],"panels":[]}]},"httpPath":"/v2/users"},{"label":"\nCreate user\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/adduser","routeSlug":"/openapi/team_api/users/adduser","metadata":{"seo":{"title":"\nCreate user\n","description":"This endpoint creates a new user as an employee without inviting them, leaving the user INACTIVE.Use it to load your team into Brex ahead of time; invite them later withInvite user, on the Dashboard, or by using auto-invite rules."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"addUser","name":"\nCreate user\n","isWebhook":false,"pointer":"/paths/~1v2~1users~1create/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate user\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint creates a new user as an employee without inviting them, leaving the user "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"INACTIVE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Use it to load your team into Brex ahead of time; invite them later with"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"#tag/Users/operation/createUser"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Invite user"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", on the Dashboard, or by using auto-invite rules."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The user is assigned to "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"legal_entity_id"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" when provided, and to your account's default legal entity otherwise."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1users~1create/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AddUserRequest"}},"schemaId":"components/schemas/AddUserRequest","pointer":"/paths/~1v2~1users~1create/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/users/create","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/AddUserRequest"}},"responseCodes":["200"],"pointer":"/v2/users/create","href":"users/adduser","openApiOperationId":"addUser","summary":"\nCreate user\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/AddUserRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AddUserRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"addUser 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}},"schemaId":"components/schemas/UserResponse"}],"pointer":"/paths/~1v2~1users~1create/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UserResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/adduser"}],"panels":[]}]},"httpPath":"/v2/users/create"},{"label":"\nGet current user\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/getme","routeSlug":"/openapi/team_api/users/getme","metadata":{"seo":{"title":"\nGet current user\n","description":"This endpoint returns the user associated with the OAuth2 access token."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getMe","name":"\nGet current user\n","isWebhook":false,"pointer":"/paths/~1v2~1users~1me/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet current user\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint returns the user associated with the OAuth2 access token.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"load_custom_fields","in":"query","schemaId":"schema_5","description":"Load custom field values for the users."}],"pointer":"/paths/~1v2~1users~1me/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/users/me","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"load_custom_fields","in":"query","schemaId":"schema_5"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"responseCodes":["200"],"pointer":"/v2/users/me","href":"users/getme","openApiOperationId":"getMe","summary":"\nGet current user\n","securityGroups":[{"OAuth2":["users.readonly"]},{"OAuth2":["users"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getMe 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}},"schemaId":"components/schemas/UserResponse"}],"pointer":"/paths/~1v2~1users~1me/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UserResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/getme"}],"panels":[]}]},"httpPath":"/v2/users/me"},{"label":"\nGet user\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/getuserbyid","routeSlug":"/openapi/team_api/users/getuserbyid","metadata":{"seo":{"title":"\nGet user\n","description":"This endpoint gets a user by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getUserById","name":"\nGet user\n","isWebhook":false,"pointer":"/paths/~1v2~1users~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet user\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a user by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1users~1{id}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"load_custom_fields","in":"query","schemaId":"schema_5","description":"Load custom field values for the users."}],"pointer":"/paths/~1v2~1users~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/users/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[{"name":"load_custom_fields","in":"query","schemaId":"schema_5"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"responseCodes":["200"],"pointer":"/v2/users/{id}","href":"users/getuserbyid","openApiOperationId":"getUserById","summary":"\nGet user\n","securityGroups":[{"OAuth2":["users.readonly"]},{"OAuth2":["users"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getUserById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}},"schemaId":"components/schemas/UserResponse"}],"pointer":"/paths/~1v2~1users~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UserResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/getuserbyid"}],"panels":[]}]},"httpPath":"/v2/users/{id}"},{"label":"\nUpdate user\n","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/users/updateuser","routeSlug":"/openapi/team_api/users/updateuser","metadata":{"seo":{"title":"\nUpdate user\n","description":"This endpoint updates a user. Any parameters not provided will be left unchanged."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateUser","name":"\nUpdate user\n","isWebhook":false,"pointer":"/paths/~1v2~1users~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUpdate user\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint updates a user. Any parameters not provided will be left unchanged.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["users"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1users~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1users~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateUserRequest"}},"schemaId":"components/schemas/UpdateUserRequest","pointer":"/paths/~1v2~1users~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v2/users/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["users"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateUserRequest"}},"responseCodes":["200"],"pointer":"/v2/users/{id}","href":"users/updateuser","openApiOperationId":"updateUser","summary":"\nUpdate user\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateUserRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateUserRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateUser 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}},"schemaId":"components/schemas/UserResponse"}],"pointer":"/paths/~1v2~1users~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/UserResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/UserResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/users/updateuser"}],"panels":[]}]},"httpPath":"/v2/users/{id}"}],"content":{"contentType":"group","meta":{"name":"Users"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Users","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for user management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/users","summary":"\nList users\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/users/listusers","deprecated":false},{"title":"/v2/users","summary":"\nInvite user\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/users/createuser","deprecated":false},{"title":"/v2/users/create","summary":"\nCreate user\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/users/adduser","deprecated":false},{"title":"/v2/users/me","summary":"\nGet current user\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/users/getme","deprecated":false},{"title":"/v2/users/{id}","summary":"\nGet user\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/users/getuserbyid","deprecated":false},{"title":"/v2/users/{id}","summary":"\nUpdate user\n","prefix":{"name":"put","color":"put"},"badges":[],"link":"/users/updateuser","deprecated":false}]}]}]}]}},{"type":"group","label":"Locations","link":"/openapi/team_api/locations","routeSlug":"/openapi/team_api/locations","items":[{"label":"\nList locations\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/locations/listlocations","routeSlug":"/openapi/team_api/locations/listlocations","metadata":{"seo":{"title":"\nList locations\n","description":"This endpoint lists all locations."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listLocations","name":"\nList locations\n","isWebhook":false,"pointer":"/paths/~1v2~1locations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList locations\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all locations.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["locations.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["locations"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1locations/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/locations","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations"]}],"responseCodes":["200"],"pointer":"/v2/locations","href":"locations/listlocations","openApiOperationId":"listLocations","summary":"\nList locations\n","securityGroups":[{"OAuth2":["locations.readonly"]},{"OAuth2":["locations"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listLocations 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_LocationResponse_"}},"schemaId":"components/schemas/Page_LocationResponse_"}],"pointer":"/paths/~1v2~1locations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_LocationResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_LocationResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/locations/listlocations"}],"panels":[]}]},"httpPath":"/v2/locations"},{"label":"\nCreate location\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/locations/createlocation","routeSlug":"/openapi/team_api/locations/createlocation","metadata":{"seo":{"title":"\nCreate location\n","description":"This endpoint creates a new location."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createLocation","name":"\nCreate location\n","isWebhook":false,"pointer":"/paths/~1v2~1locations/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate location\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint creates a new location.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["locations"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1locations/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateLocationRequest"}},"schemaId":"components/schemas/CreateLocationRequest","pointer":"/paths/~1v2~1locations/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/locations","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateLocationRequest"}},"responseCodes":["200"],"pointer":"/v2/locations","href":"locations/createlocation","openApiOperationId":"createLocation","summary":"\nCreate location\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateLocationRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateLocationRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createLocation 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}},"schemaId":"components/schemas/LocationResponse"}],"pointer":"/paths/~1v2~1locations/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/LocationResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/locations/createlocation"}],"panels":[]}]},"httpPath":"/v2/locations"},{"label":"\nGet location\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/locations/getlocationbyid","routeSlug":"/openapi/team_api/locations/getlocationbyid","metadata":{"seo":{"title":"\nGet location\n","description":"This endpoint gets a location by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getLocationById","name":"\nGet location\n","isWebhook":false,"pointer":"/paths/~1v2~1locations~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet location\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a location by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["locations.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["locations"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1locations~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/locations/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations"]}],"responseCodes":["200"],"pointer":"/v2/locations/{id}","href":"locations/getlocationbyid","openApiOperationId":"getLocationById","summary":"\nGet location\n","securityGroups":[{"OAuth2":["locations.readonly"]},{"OAuth2":["locations"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getLocationById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}},"schemaId":"components/schemas/LocationResponse"}],"pointer":"/paths/~1v2~1locations~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/LocationResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/locations/getlocationbyid"}],"panels":[]}]},"httpPath":"/v2/locations/{id}"},{"label":"\nUpdate location\n","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/locations/updatelocation","routeSlug":"/openapi/team_api/locations/updatelocation","metadata":{"seo":{"title":"\nUpdate location\n","description":"This endpoint updates a location by ID. Only the fields present in the request body are changed."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateLocation","name":"\nUpdate location\n","isWebhook":false,"pointer":"/paths/~1v2~1locations~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUpdate location\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint updates a location by ID. Only the fields present in the request body are changed.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["locations"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1locations~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1locations~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateLocationRequest"}},"schemaId":"components/schemas/UpdateLocationRequest","pointer":"/paths/~1v2~1locations~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v2/locations/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateLocationRequest"}},"responseCodes":["200"],"pointer":"/v2/locations/{id}","href":"locations/updatelocation","openApiOperationId":"updateLocation","summary":"\nUpdate location\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateLocationRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateLocationRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateLocation 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}},"schemaId":"components/schemas/LocationResponse"}],"pointer":"/paths/~1v2~1locations~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/LocationResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LocationResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/locations/updatelocation"}],"panels":[]}]},"httpPath":"/v2/locations/{id}"},{"label":"\nDelete location\n","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/locations/deletelocation","routeSlug":"/openapi/team_api/locations/deletelocation","metadata":{"seo":{"title":"\nDelete location\n","description":"This endpoint deletes a location by ID. A location cannot be deleted while users are still assigned to it or while it is used as a filter on an active group."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteLocation","name":"\nDelete location\n","isWebhook":false,"pointer":"/paths/~1v2~1locations~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nDelete location\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint deletes a location by ID. A location cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["locations"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1locations~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v2/locations/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["locations"]}],"responseCodes":["200"],"pointer":"/v2/locations/{id}","href":"locations/deletelocation","openApiOperationId":"deleteLocation","summary":"\nDelete location\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"deleteLocation 200 response"}],"pointer":"/paths/~1v2~1locations~1{id}/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/locations/deletelocation"}],"panels":[]}]},"httpPath":"/v2/locations/{id}"}],"content":{"contentType":"group","meta":{"name":"Locations"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Locations","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for location management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/locations","summary":"\nList locations\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/locations/listlocations","deprecated":false},{"title":"/v2/locations","summary":"\nCreate location\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/locations/createlocation","deprecated":false},{"title":"/v2/locations/{id}","summary":"\nGet location\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/locations/getlocationbyid","deprecated":false},{"title":"/v2/locations/{id}","summary":"\nUpdate location\n","prefix":{"name":"put","color":"put"},"badges":[],"link":"/locations/updatelocation","deprecated":false},{"title":"/v2/locations/{id}","summary":"\nDelete location\n","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/locations/deletelocation","deprecated":false}]}]}]}]}},{"type":"group","label":"Departments","link":"/openapi/team_api/departments","routeSlug":"/openapi/team_api/departments","items":[{"label":"\nList departments\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/departments/listdepartments","routeSlug":"/openapi/team_api/departments/listdepartments","metadata":{"seo":{"title":"\nList departments\n","description":"This endpoint lists all departments."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listDepartments","name":"\nList departments\n","isWebhook":false,"pointer":"/paths/~1v2~1departments/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList departments\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all departments.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["departments.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["departments"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1departments/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/departments","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments"]}],"responseCodes":["200"],"pointer":"/v2/departments","href":"departments/listdepartments","openApiOperationId":"listDepartments","summary":"\nList departments\n","securityGroups":[{"OAuth2":["departments.readonly"]},{"OAuth2":["departments"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listDepartments 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_DepartmentResponse_"}},"schemaId":"components/schemas/Page_DepartmentResponse_"}],"pointer":"/paths/~1v2~1departments/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_DepartmentResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_DepartmentResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/departments/listdepartments"}],"panels":[]}]},"httpPath":"/v2/departments"},{"label":"\nCreate department\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/departments/createdepartment","routeSlug":"/openapi/team_api/departments/createdepartment","metadata":{"seo":{"title":"\nCreate department\n","description":"This endpoint creates a new department"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createDepartment","name":"\nCreate department\n","isWebhook":false,"pointer":"/paths/~1v2~1departments/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate department\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint creates a new department\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["departments"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1departments/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateDepartmentRequest"}},"schemaId":"components/schemas/CreateDepartmentRequest","pointer":"/paths/~1v2~1departments/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/departments","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateDepartmentRequest"}},"responseCodes":["200"],"pointer":"/v2/departments","href":"departments/createdepartment","openApiOperationId":"createDepartment","summary":"\nCreate department\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateDepartmentRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateDepartmentRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createDepartment 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}},"schemaId":"components/schemas/DepartmentResponse"}],"pointer":"/paths/~1v2~1departments/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/DepartmentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/departments/createdepartment"}],"panels":[]}]},"httpPath":"/v2/departments"},{"label":"\nGet department\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/departments/getdepartmentbyid","routeSlug":"/openapi/team_api/departments/getdepartmentbyid","metadata":{"seo":{"title":"\nGet department\n","description":"This endpoint gets a department by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getDepartmentById","name":"\nGet department\n","isWebhook":false,"pointer":"/paths/~1v2~1departments~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet department\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a department by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["departments.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["departments"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1departments~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/departments/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments"]}],"responseCodes":["200"],"pointer":"/v2/departments/{id}","href":"departments/getdepartmentbyid","openApiOperationId":"getDepartmentById","summary":"\nGet department\n","securityGroups":[{"OAuth2":["departments.readonly"]},{"OAuth2":["departments"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getDepartmentById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}},"schemaId":"components/schemas/DepartmentResponse"}],"pointer":"/paths/~1v2~1departments~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/DepartmentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/departments/getdepartmentbyid"}],"panels":[]}]},"httpPath":"/v2/departments/{id}"},{"label":"\nUpdate department\n","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/departments/updatedepartment","routeSlug":"/openapi/team_api/departments/updatedepartment","metadata":{"seo":{"title":"\nUpdate department\n","description":"This endpoint updates a department by ID. Only the fields present in the request body are changed."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateDepartment","name":"\nUpdate department\n","isWebhook":false,"pointer":"/paths/~1v2~1departments~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUpdate department\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint updates a department by ID. Only the fields present in the request body are changed.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["departments"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1departments~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1departments~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateDepartmentRequest"}},"schemaId":"components/schemas/UpdateDepartmentRequest","pointer":"/paths/~1v2~1departments~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v2/departments/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateDepartmentRequest"}},"responseCodes":["200"],"pointer":"/v2/departments/{id}","href":"departments/updatedepartment","openApiOperationId":"updateDepartment","summary":"\nUpdate department\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateDepartmentRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateDepartmentRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateDepartment 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}},"schemaId":"components/schemas/DepartmentResponse"}],"pointer":"/paths/~1v2~1departments~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/DepartmentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/DepartmentResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/departments/updatedepartment"}],"panels":[]}]},"httpPath":"/v2/departments/{id}"},{"label":"\nDelete department\n","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/departments/deletedepartment","routeSlug":"/openapi/team_api/departments/deletedepartment","metadata":{"seo":{"title":"\nDelete department\n","description":"This endpoint deletes a department by ID. A department cannot be deleted while users are still assigned to it or while it is used as a filter on an active group."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteDepartment","name":"\nDelete department\n","isWebhook":false,"pointer":"/paths/~1v2~1departments~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nDelete department\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint deletes a department by ID. A department cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["departments"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1departments~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v2/departments/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["departments"]}],"responseCodes":["200"],"pointer":"/v2/departments/{id}","href":"departments/deletedepartment","openApiOperationId":"deleteDepartment","summary":"\nDelete department\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"deleteDepartment 200 response"}],"pointer":"/paths/~1v2~1departments~1{id}/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/departments/deletedepartment"}],"panels":[]}]},"httpPath":"/v2/departments/{id}"}],"content":{"contentType":"group","meta":{"name":"Departments"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Departments","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for department management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/departments","summary":"\nList departments\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/departments/listdepartments","deprecated":false},{"title":"/v2/departments","summary":"\nCreate department\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/departments/createdepartment","deprecated":false},{"title":"/v2/departments/{id}","summary":"\nGet department\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/departments/getdepartmentbyid","deprecated":false},{"title":"/v2/departments/{id}","summary":"\nUpdate department\n","prefix":{"name":"put","color":"put"},"badges":[],"link":"/departments/updatedepartment","deprecated":false},{"title":"/v2/departments/{id}","summary":"\nDelete department\n","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/departments/deletedepartment","deprecated":false}]}]}]}]}},{"type":"group","label":"Titles","link":"/openapi/team_api/titles","routeSlug":"/openapi/team_api/titles","items":[{"label":"\nList titles\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/titles/listtitles","routeSlug":"/openapi/team_api/titles/listtitles","metadata":{"seo":{"title":"\nList titles\n","description":"This endpoint lists all titles."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listTitles","name":"\nList titles\n","isWebhook":false,"pointer":"/paths/~1v2~1titles/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList titles\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all titles.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["titles.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["titles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1titles/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/titles","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles"]}],"responseCodes":["200"],"pointer":"/v2/titles","href":"titles/listtitles","openApiOperationId":"listTitles","summary":"\nList titles\n","securityGroups":[{"OAuth2":["titles.readonly"]},{"OAuth2":["titles"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listTitles 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_TitleResponse_"}},"schemaId":"components/schemas/Page_TitleResponse_"}],"pointer":"/paths/~1v2~1titles/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_TitleResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_TitleResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/titles/listtitles"}],"panels":[]}]},"httpPath":"/v2/titles"},{"label":"\nCreate title\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/titles/createtitle","routeSlug":"/openapi/team_api/titles/createtitle","metadata":{"seo":{"title":"\nCreate title\n","description":"This endpoint creates a new title"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createTitle","name":"\nCreate title\n","isWebhook":false,"pointer":"/paths/~1v2~1titles/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate title\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint creates a new title\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["titles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1titles/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateTitleRequest"}},"schemaId":"components/schemas/CreateTitleRequest","pointer":"/paths/~1v2~1titles/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/titles","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateTitleRequest"}},"responseCodes":["200"],"pointer":"/v2/titles","href":"titles/createtitle","openApiOperationId":"createTitle","summary":"\nCreate title\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateTitleRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateTitleRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createTitle 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}},"schemaId":"components/schemas/TitleResponse"}],"pointer":"/paths/~1v2~1titles/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TitleResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/titles/createtitle"}],"panels":[]}]},"httpPath":"/v2/titles"},{"label":"\nGet title\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/titles/gettitlebyid","routeSlug":"/openapi/team_api/titles/gettitlebyid","metadata":{"seo":{"title":"\nGet title\n","description":"This endpoint gets a title by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getTitleById","name":"\nGet title\n","isWebhook":false,"pointer":"/paths/~1v2~1titles~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet title\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a title by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["titles.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["titles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1titles~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/titles/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles"]}],"responseCodes":["200"],"pointer":"/v2/titles/{id}","href":"titles/gettitlebyid","openApiOperationId":"getTitleById","summary":"\nGet title\n","securityGroups":[{"OAuth2":["titles.readonly"]},{"OAuth2":["titles"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getTitleById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}},"schemaId":"components/schemas/TitleResponse"}],"pointer":"/paths/~1v2~1titles~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TitleResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/titles/gettitlebyid"}],"panels":[]}]},"httpPath":"/v2/titles/{id}"},{"label":"\nUpdate title\n","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/titles/updatetitle","routeSlug":"/openapi/team_api/titles/updatetitle","metadata":{"seo":{"title":"\nUpdate title\n","description":"This endpoint updates a title by ID. Only the fields present in the request body are changed. The request must contain at least one field to update."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateTitle","name":"\nUpdate title\n","isWebhook":false,"pointer":"/paths/~1v2~1titles~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUpdate title\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint updates a title by ID. Only the fields present in the request body are changed. The request must contain at least one field to update.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["titles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1titles~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1titles~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateTitleRequest"}},"schemaId":"components/schemas/UpdateTitleRequest","pointer":"/paths/~1v2~1titles~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v2/titles/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateTitleRequest"}},"responseCodes":["200"],"pointer":"/v2/titles/{id}","href":"titles/updatetitle","openApiOperationId":"updateTitle","summary":"\nUpdate title\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateTitleRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateTitleRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateTitle 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}},"schemaId":"components/schemas/TitleResponse"}],"pointer":"/paths/~1v2~1titles~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TitleResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TitleResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/titles/updatetitle"}],"panels":[]}]},"httpPath":"/v2/titles/{id}"},{"label":"\nDelete title\n","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/titles/deletetitle","routeSlug":"/openapi/team_api/titles/deletetitle","metadata":{"seo":{"title":"\nDelete title\n","description":"This endpoint deletes a title by ID. A title cannot be deleted while users are still assigned to it or while it is used as a filter on an active group."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteTitle","name":"\nDelete title\n","isWebhook":false,"pointer":"/paths/~1v2~1titles~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nDelete title\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint deletes a title by ID. A title cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["titles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1titles~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v2/titles/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["titles"]}],"responseCodes":["200"],"pointer":"/v2/titles/{id}","href":"titles/deletetitle","openApiOperationId":"deleteTitle","summary":"\nDelete title\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"deleteTitle 200 response"}],"pointer":"/paths/~1v2~1titles~1{id}/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/titles/deletetitle"}],"panels":[]}]},"httpPath":"/v2/titles/{id}"}],"content":{"contentType":"group","meta":{"name":"Titles"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Titles","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for title management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/titles","summary":"\nList titles\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/titles/listtitles","deprecated":false},{"title":"/v2/titles","summary":"\nCreate title\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/titles/createtitle","deprecated":false},{"title":"/v2/titles/{id}","summary":"\nGet title\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/titles/gettitlebyid","deprecated":false},{"title":"/v2/titles/{id}","summary":"\nUpdate title\n","prefix":{"name":"put","color":"put"},"badges":[],"link":"/titles/updatetitle","deprecated":false},{"title":"/v2/titles/{id}","summary":"\nDelete title\n","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/titles/deletetitle","deprecated":false}]}]}]}]}},{"type":"group","label":"Cost Centers","link":"/openapi/team_api/cost-centers","routeSlug":"/openapi/team_api/cost-centers","items":[{"label":"\nList cost centers\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cost-centers/listcostcenters","routeSlug":"/openapi/team_api/cost-centers/listcostcenters","metadata":{"seo":{"title":"\nList cost centers\n","description":"This endpoint lists all cost centers."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listCostCenters","name":"\nList cost centers\n","isWebhook":false,"pointer":"/paths/~1v2~1cost_centers/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList cost centers\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all cost centers.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cost_centers.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["cost_centers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1cost_centers/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/cost_centers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cost_centers.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cost_centers"]}],"responseCodes":["200"],"pointer":"/v2/cost_centers","href":"cost-centers/listcostcenters","openApiOperationId":"listCostCenters","summary":"\nList cost centers\n","securityGroups":[{"OAuth2":["cost_centers.readonly"]},{"OAuth2":["cost_centers"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listCostCenters 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_CostCenterResponse_"}},"schemaId":"components/schemas/Page_CostCenterResponse_"}],"pointer":"/paths/~1v2~1cost_centers/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_CostCenterResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_CostCenterResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cost-centers/listcostcenters"}],"panels":[]}]},"httpPath":"/v2/cost_centers"},{"label":"\nGet cost center\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cost-centers/getcostcenterbyid","routeSlug":"/openapi/team_api/cost-centers/getcostcenterbyid","metadata":{"seo":{"title":"\nGet cost center\n","description":"This endpoint gets a cost center by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCostCenterById","name":"\nGet cost center\n","isWebhook":false,"pointer":"/paths/~1v2~1cost_centers~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet cost center\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a cost center by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cost_centers.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["cost_centers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cost_centers~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/cost_centers/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cost_centers.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cost_centers"]}],"responseCodes":["200"],"pointer":"/v2/cost_centers/{id}","href":"cost-centers/getcostcenterbyid","openApiOperationId":"getCostCenterById","summary":"\nGet cost center\n","securityGroups":[{"OAuth2":["cost_centers.readonly"]},{"OAuth2":["cost_centers"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getCostCenterById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CostCenterResponse"}},"schemaId":"components/schemas/CostCenterResponse"}],"pointer":"/paths/~1v2~1cost_centers~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CostCenterResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CostCenterResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cost-centers/getcostcenterbyid"}],"panels":[]}]},"httpPath":"/v2/cost_centers/{id}"}],"content":{"contentType":"group","meta":{"name":"Cost Centers"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Cost Centers","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for cost center management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/cost_centers","summary":"\nList cost centers\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cost-centers/listcostcenters","deprecated":false},{"title":"/v2/cost_centers/{id}","summary":"\nGet cost center\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cost-centers/getcostcenterbyid","deprecated":false}]}]}]}]}},{"type":"group","label":"Cards","link":"/openapi/team_api/cards","routeSlug":"/openapi/team_api/cards","items":[{"label":"\nList cards\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/listcardsbyuserid","routeSlug":"/openapi/team_api/cards/listcardsbyuserid","metadata":{"seo":{"title":"\nList cards\n","description":"Lists all cards by a user_id.Only cards with limit_type = CARD have spend_controls"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listCardsByUserId","name":"\nList cards\n","isWebhook":false,"pointer":"/paths/~1v2~1cards/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList cards\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Lists all cards by a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"user_id"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Only cards with "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type = CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" have "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards.readonly","cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"user_id","in":"query","schemaId":"schema_0"},{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"pointer":"/paths/~1v2~1cards/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/cards","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"user_id","in":"query","schemaId":"schema_0"},{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards.readonly","cards"]}],"responseCodes":["200"],"pointer":"/v2/cards","href":"cards/listcardsbyuserid","openApiOperationId":"listCardsByUserId","summary":"\nList cards\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listCardsByUserId 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Card_"}},"schemaId":"components/schemas/Page_Card_"}],"pointer":"/paths/~1v2~1cards/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_Card_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Card_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/listcardsbyuserid"}],"panels":[]}]},"httpPath":"/v2/cards"},{"label":"\nCreate card\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/createcard","routeSlug":"/openapi/team_api/cards/createcard","metadata":{"seo":{"title":"\nCreate card\n","description":"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."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createCard","name":"\nCreate card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Creates a new card."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"The "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field is required when "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"The "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"mailing_address"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" 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."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"The first 2 lines of this address must be under 60 characters long. Each user can only have up to 10 active physical cards."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"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."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"If this is the case and you want to gain access to this endpoint, please contact Brex support."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateCardRequest"}},"schemaId":"components/schemas/CreateCardRequest","pointer":"/paths/~1v2~1cards/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/cards","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":true,"schemaId":"schema_6"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateCardRequest"}},"responseCodes":["200"],"pointer":"/v2/cards","href":"cards/createcard","openApiOperationId":"createCard","summary":"\nCreate card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateCardRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateCardRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createCard 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/createcard"}],"panels":[]}]},"httpPath":"/v2/cards"},{"label":"\nGet card\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/getcardbyid","routeSlug":"/openapi/team_api/cards/getcardbyid","metadata":{"seo":{"title":"\nGet card\n","description":"Retrieves a card by ID. Only cards with limit_type = CARD have spend_controls"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCardById","name":"\nGet card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Retrieves a card by ID. Only cards with "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type = CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" have "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards","cards.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/cards/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards","cards.readonly"]}],"responseCodes":["200"],"pointer":"/v2/cards/{id}","href":"cards/getcardbyid","openApiOperationId":"getCardById","summary":"\nGet card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getCardById 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/getcardbyid"}],"panels":[]}]},"httpPath":"/v2/cards/{id}"},{"label":"\nUpdate card\n","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/updatecard","routeSlug":"/openapi/team_api/cards/updatecard","metadata":{"seo":{"title":"\nUpdate card\n","description":"Update an existing vendor card"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateCard","name":"\nUpdate card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUpdate card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nUpdate an existing vendor card\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1cards~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateCardRequest"}},"schemaId":"components/schemas/UpdateCardRequest","pointer":"/paths/~1v2~1cards~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v2/cards/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateCardRequest"}},"responseCodes":["200"],"pointer":"/v2/cards/{id}","href":"cards/updatecard","openApiOperationId":"updateCard","summary":"\nUpdate card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateCardRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateCardRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateCard 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/updatecard"}],"panels":[]}]},"httpPath":"/v2/cards/{id}"},{"label":"\nLock card\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/lockcard","routeSlug":"/openapi/team_api/cards/lockcard","metadata":{"seo":{"title":"\nLock card\n","description":"Locks an existing, unlocked card. And the card owner will receive a notification about it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"lockCard","name":"\nLock card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}~1lock/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nLock card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nLocks an existing, unlocked card. And the card owner will receive a notification about it.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1lock/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1cards~1{id}~1lock/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LockCardRequest"}},"schemaId":"components/schemas/LockCardRequest","pointer":"/paths/~1v2~1cards~1{id}~1lock/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/cards/{id}/lock","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/LockCardRequest"}},"responseCodes":["200"],"pointer":"/v2/cards/{id}/lock","href":"cards/lockcard","openApiOperationId":"lockCard","summary":"\nLock card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/LockCardRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LockCardRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"lockCard 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards~1{id}~1lock/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/lockcard"}],"panels":[]}]},"httpPath":"/v2/cards/{id}/lock"},{"label":"\nGet card number\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/getcardnumber","routeSlug":"/openapi/team_api/cards/getcardnumber","metadata":{"seo":{"title":"\nGet card number\n","description":"Retrieves card number, CVV, and expiration date of a card by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCardNumber","name":"\nGet card number\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}~1pan/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet card number\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nRetrieves card number, CVV, and expiration date of a card by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards.pan"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1pan/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/cards/{id}/pan","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards.pan"]}],"responseCodes":["200"],"pointer":"/v2/cards/{id}/pan","href":"cards/getcardnumber","openApiOperationId":"getCardNumber","summary":"\nGet card number\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getCardNumber 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CardNumberResponse"}},"schemaId":"components/schemas/CardNumberResponse"}],"pointer":"/paths/~1v2~1cards~1{id}~1pan/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CardNumberResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CardNumberResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/getcardnumber"}],"panels":[]}]},"httpPath":"/v2/cards/{id}/pan"},{"label":"\nCreate secure email to send card number \n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/emailcardnumber","routeSlug":"/openapi/team_api/cards/emailcardnumber","metadata":{"seo":{"title":"\nCreate secure email to send card number \n","description":"Creates a secure email to send card number, CVV, and expiration date of a card by ID to the specified email."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"emailCardNumber","name":"\nCreate secure email to send card number \n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}~1secure_email/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate secure email to send card number \n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Creates a secure email to send card number, CVV, and expiration date of a card by ID to the specified email."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint is currently gated. If you would like to request access, please reach out to"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"developer-support@brex.com"},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards.pan"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1secure_email/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1secure_email/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SecureEmailForCardDetailsRequest"}},"schemaId":"components/schemas/SecureEmailForCardDetailsRequest","pointer":"/paths/~1v2~1cards~1{id}~1secure_email/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/cards/{id}/secure_email","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":true,"schemaId":"schema_6"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards.pan"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SecureEmailForCardDetailsRequest"}},"responseCodes":["200"],"pointer":"/v2/cards/{id}/secure_email","href":"cards/emailcardnumber","openApiOperationId":"emailCardNumber","summary":"\nCreate secure email to send card number \n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/SecureEmailForCardDetailsRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SecureEmailForCardDetailsRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"emailCardNumber 200 response"}],"pointer":"/paths/~1v2~1cards~1{id}~1secure_email/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/emailcardnumber"}],"panels":[]}]},"httpPath":"/v2/cards/{id}/secure_email"},{"label":"\nTerminate card\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/terminatecard","routeSlug":"/openapi/team_api/cards/terminatecard","metadata":{"seo":{"title":"\nTerminate card\n","description":"Terminates an existing card. The card owner will receive a notification about it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"terminateCard","name":"\nTerminate card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}~1terminate/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nTerminate card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nTerminates an existing card. The card owner will receive a notification about it.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1terminate/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1cards~1{id}~1terminate/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/TerminateCardRequest"}},"schemaId":"components/schemas/TerminateCardRequest","pointer":"/paths/~1v2~1cards~1{id}~1terminate/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/cards/{id}/terminate","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/TerminateCardRequest"}},"responseCodes":["200"],"pointer":"/v2/cards/{id}/terminate","href":"cards/terminatecard","openApiOperationId":"terminateCard","summary":"\nTerminate card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/TerminateCardRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/TerminateCardRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"terminateCard 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards~1{id}~1terminate/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/terminatecard"}],"panels":[]}]},"httpPath":"/v2/cards/{id}/terminate"},{"label":"\nUnlock card\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/cards/unlockcard","routeSlug":"/openapi/team_api/cards/unlockcard","metadata":{"seo":{"title":"\nUnlock card\n","description":"Unlocks an existing card."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"unlockCard","name":"\nUnlock card\n","isWebhook":false,"pointer":"/paths/~1v2~1cards~1{id}~1unlock/post","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nUnlock card\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nUnlocks an existing card.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["cards"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1cards~1{id}~1unlock/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v2~1cards~1{id}~1unlock/post/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v2/cards/{id}/unlock","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["cards"]}],"responseCodes":["200"],"pointer":"/v2/cards/{id}/unlock","href":"cards/unlockcard","openApiOperationId":"unlockCard","summary":"\nUnlock card\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"unlockCard 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}},"schemaId":"components/schemas/Card"}],"pointer":"/paths/~1v2~1cards~1{id}~1unlock/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Card","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Card"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cards/unlockcard"}],"panels":[]}]},"httpPath":"/v2/cards/{id}/unlock"}],"content":{"contentType":"group","meta":{"name":"Cards"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Cards","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for card management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/cards","summary":"\nList cards\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cards/listcardsbyuserid","deprecated":false},{"title":"/v2/cards","summary":"\nCreate card\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cards/createcard","deprecated":false},{"title":"/v2/cards/{id}","summary":"\nGet card\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cards/getcardbyid","deprecated":false},{"title":"/v2/cards/{id}","summary":"\nUpdate card\n","prefix":{"name":"put","color":"put"},"badges":[],"link":"/cards/updatecard","deprecated":false},{"title":"/v2/cards/{id}/lock","summary":"\nLock card\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cards/lockcard","deprecated":false},{"title":"/v2/cards/{id}/pan","summary":"\nGet card number\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cards/getcardnumber","deprecated":false},{"title":"/v2/cards/{id}/secure_email","summary":"\nCreate secure email to send card number \n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cards/emailcardnumber","deprecated":false},{"title":"/v2/cards/{id}/terminate","summary":"\nTerminate card\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cards/terminatecard","deprecated":false},{"title":"/v2/cards/{id}/unlock","summary":"\nUnlock card\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cards/unlockcard","deprecated":false}]}]}]}]}},{"type":"group","label":"Legal Entities","link":"/openapi/team_api/legal-entities","routeSlug":"/openapi/team_api/legal-entities","items":[{"label":"\nList legal entities\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/legal-entities/listlegalentities","routeSlug":"/openapi/team_api/legal-entities/listlegalentities","metadata":{"seo":{"title":"\nList legal entities\n","description":"List legal entities for the account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listLegalEntities","name":"\nList legal entities\n","isWebhook":false,"pointer":"/paths/~1v2~1legal_entities/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList legal entities\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nList legal entities for the account.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["legal_entities","legal_entities.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"pointer":"/paths/~1v2~1legal_entities/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/legal_entities","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["legal_entities","legal_entities.readonly"]}],"responseCodes":["200"],"pointer":"/v2/legal_entities","href":"legal-entities/listlegalentities","openApiOperationId":"listLegalEntities","summary":"\nList legal entities\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listLegalEntities 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_LegalEntity_"}},"schemaId":"components/schemas/Page_LegalEntity_"}],"pointer":"/paths/~1v2~1legal_entities/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_LegalEntity_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_LegalEntity_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/legal-entities/listlegalentities"}],"panels":[]}]},"httpPath":"/v2/legal_entities"},{"label":"\nGet legal entity\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/legal-entities/getlegalentity","routeSlug":"/openapi/team_api/legal-entities/getlegalentity","metadata":{"seo":{"title":"\nGet legal entity\n","description":"Get a legal entity by its ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getLegalEntity","name":"\nGet legal entity\n","isWebhook":false,"pointer":"/paths/~1v2~1legal_entities~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet legal entity\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nGet a legal entity by its ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["legal_entities","legal_entities.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_6","required":true}],"pointer":"/paths/~1v2~1legal_entities~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/legal_entities/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_6"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["legal_entities","legal_entities.readonly"]}],"responseCodes":["200"],"pointer":"/v2/legal_entities/{id}","href":"legal-entities/getlegalentity","openApiOperationId":"getLegalEntity","summary":"\nGet legal entity\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getLegalEntity 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegalEntity"}},"schemaId":"components/schemas/LegalEntity"}],"pointer":"/paths/~1v2~1legal_entities~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegalEntity","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegalEntity"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/legal-entities/getlegalentity"}],"panels":[]}]},"httpPath":"/v2/legal_entities/{id}"}],"content":{"contentType":"group","meta":{"name":"Legal Entities"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Legal Entities","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for legal entities."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/legal_entities","summary":"\nList legal entities\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/legal-entities/listlegalentities","deprecated":false},{"title":"/v2/legal_entities/{id}","summary":"\nGet legal entity\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/legal-entities/getlegalentity","deprecated":false}]}]}]}]}},{"type":"group","label":"Roles","link":"/openapi/team_api/roles","routeSlug":"/openapi/team_api/roles","items":[{"label":"\nList roles\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/roles/listroles","routeSlug":"/openapi/team_api/roles/listroles","metadata":{"seo":{"title":"\nList roles\n","description":"This endpoint lists the custom roles defined for the account. A page can contain fewer roles than limit, or none, while next_cursor is still set. Keep requesting the next page until next_cursor is null, even when items is empty."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listRoles","name":"\nList roles\n","isWebhook":false,"pointer":"/paths/~1v2~1roles/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nList roles\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint lists the custom roles defined for the account. A page can contain fewer roles than "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", or none, while "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"next_cursor"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is still set. Keep requesting the next page until "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"next_cursor"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is null, even when "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"items"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is empty."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["roles.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]},{"schemes":[{"name":"OAuth2","scopes":["roles"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"pointer":"/paths/~1v2~1roles/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/roles","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["roles.readonly"]},{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["roles"]}],"responseCodes":["200"],"pointer":"/v2/roles","href":"roles/listroles","openApiOperationId":"listRoles","summary":"\nList roles\n","securityGroups":[{"OAuth2":["roles.readonly"]},{"OAuth2":["roles"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"listRoles 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_RoleResponse_"}},"schemaId":"components/schemas/Page_RoleResponse_"}],"pointer":"/paths/~1v2~1roles/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_RoleResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_RoleResponse_"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/roles/listroles"}],"panels":[]}]},"httpPath":"/v2/roles"}],"content":{"contentType":"group","meta":{"name":"Roles"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Roles","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for role management."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/roles","summary":"\nList roles\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/roles/listroles","deprecated":false}]}]}]}]}},{"type":"group","label":"Companies","link":"/openapi/team_api/companies","routeSlug":"/openapi/team_api/companies","items":[{"label":"\nGet company\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/team_api/companies/getcompany","routeSlug":"/openapi/team_api/companies/getcompany","metadata":{"seo":{"title":"\nGet company\n","description":"This endpoint returns the company associated with the OAuth2 access token."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCompany","name":"\nGet company\n","isWebhook":false,"pointer":"/paths/~1v2~1company/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet company\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint returns the company associated with the OAuth2 access token.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["companies.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v2/company","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}],"scopes":["companies.readonly"]}],"responseCodes":["200"],"pointer":"/v2/company","href":"companies/getcompany","openApiOperationId":"getCompany","summary":"\nGet company\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"getCompany 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CompanyResponse"}},"schemaId":"components/schemas/CompanyResponse"}],"pointer":"/paths/~1v2~1company/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CompanyResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CompanyResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/companies/getcompany"}],"panels":[]}]},"httpPath":"/v2/company"}],"content":{"contentType":"group","meta":{"name":"Companies"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Companies","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v2/company","summary":"\nGet company\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/companies/getcompany","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/AccountType":{"id":"components/schemas/AccountType","kind":"json-schema","title":"AccountType","data":{"type":"string","enum":["BREX_CLASSIC","BREX_EMPOWER"]}},"components/schemas/AddUserRequest":{"id":"components/schemas/AddUserRequest","kind":"json-schema","title":"AddUserRequest","data":{"required":["email","first_name","last_name"],"type":"object","properties":{"first_name":{"minLength":1,"type":"string"},"last_name":{"minLength":1,"type":"string"},"email":{"type":"string","format":"email"},"manager_id":{"type":"string","nullable":true},"department_id":{"type":"string","nullable":true},"location_id":{"type":"string","nullable":true},"title_id":{"type":"string","nullable":true},"cost_center_id":{"type":"string","nullable":true},"legal_entity_id":{"type":"string","description":"The legal entity to assign the user to. Defaults to the account's default legal entity.","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The metadata or customized attributes of the user. Maximum number of entries: 100","nullable":true}}}},"components/schemas/Address":{"id":"components/schemas/Address","kind":"json-schema","title":"Address","data":{"type":"object","properties":{"line1":{"type":"string","description":"Address line 1, no PO Box.","nullable":true},"line2":{"type":"string","description":"Address line 2 (e.g., apartment, suite, unit, or building).","nullable":true},"city":{"type":"string","description":"City, district, suburb, town, or village.","nullable":true},"state":{"type":"string","description":"For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.","nullable":true},"country":{"type":"string","description":"Two-letter country code (ISO 3166-1 alpha-2).","nullable":true},"postal_code":{"type":"string","description":"ZIP or postal code.","nullable":true},"phone_number":{"type":"string","description":"Phone number.","nullable":true}},"description":"Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed)."}},"components/schemas/BooleanListValue":{"id":"components/schemas/BooleanListValue","kind":"json-schema","title":"Boolean list value","data":{"title":"Boolean list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"boolean","description":"The data of the custom field."}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["BOOLEAN"]}},"description":"Boolean list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/BooleanValue":{"id":"components/schemas/BooleanValue","kind":"json-schema","title":"Boolean value","data":{"title":"Boolean value","required":["data_type"],"type":"object","properties":{"data":{"type":"boolean","description":"The data of the custom field.","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["BOOLEAN"]}},"description":"Boolean value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/Card":{"id":"components/schemas/Card","kind":"json-schema","title":"Card","data":{"required":["billing_address","created_at","expiration_date","id","last_four","limit_type","owner"],"type":"object","properties":{"id":{"type":"string"},"owner":{"$ref":"#/components/schemas/CardOwner"},"status":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/CardStatus"}]},"last_four":{"type":"string"},"card_name":{"type":"string","nullable":true},"card_type":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/CardType"}]},"limit_type":{"$ref":"#/components/schemas/LimitType"},"spend_controls":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SpendControl"}]},"billing_address":{"$ref":"#/components/schemas/Address"},"mailing_address":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Address"}]},"expiration_date":{"$ref":"#/components/schemas/CardExpiration"},"has_been_transferred":{"type":"boolean","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"hardbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"at online vendors where this card was previously used before the transfer."},"children":[],"type":"text"}],"type":"paragraph"}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n","nullable":true},"budget_id":{"type":"string","nullable":true},"partner":{"type":"string","description":"\nThe partner that manages this card, if any.\n","nullable":true},"created_at":{"type":"string","description":"The timestamp when the card was created","example":"2019-08-24T14:15:22Z"}},"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Only cards with limit_type = CARD have spend_controls"},"children":[],"type":"text"}],"type":"paragraph"}]}},"components/schemas/CardAttributePreferences":{"id":"components/schemas/CardAttributePreferences","kind":"json-schema","title":"CardAttributePreferences","data":{"type":"object","properties":{"three_domain_secure_enabled_preference":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ThreeDomainSecureEnabledPreference"}]}}}},"components/schemas/CardExpiration":{"id":"components/schemas/CardExpiration","kind":"json-schema","title":"CardExpiration","data":{"required":["month","year"],"type":"object","properties":{"month":{"type":"integer","format":"int32"},"year":{"type":"integer","format":"int32"}},"description":"\nCard expiration year and month. Cards expire on the last day of the expiration month.\n\nThe expiration date is in UTC for cards starting with 555671, 428803 and 485932.\nAnd the expiration date is in PST for cards starting with 511572.\n"}},"components/schemas/CardNumberResponse":{"id":"components/schemas/CardNumberResponse","kind":"json-schema","title":"CardNumberResponse","data":{"required":["cvv","expiration_date","holder_name","id","number"],"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"cvv":{"type":"string"},"expiration_date":{"$ref":"#/components/schemas/CardExpiration"},"holder_name":{"type":"string"}},"description":"\nCard number, CVV, and expiration date of a card.\n"}},"components/schemas/CardOwner":{"id":"components/schemas/CardOwner","kind":"json-schema","title":"CardOwner","data":{"type":"object","discriminator":{"propertyName":"type","mapping":{"USER":"#/components/schemas/UserOwner"}},"oneOf":[{"$ref":"#/components/schemas/UserOwner"}]}},"components/schemas/CardStatus":{"id":"components/schemas/CardStatus","kind":"json-schema","title":"CardStatus","data":{"type":"string","enum":["ACTIVE","SHIPPED","LOCKED","TERMINATED"]}},"components/schemas/CardType":{"id":"components/schemas/CardType","kind":"json-schema","title":"CardType","data":{"type":"string","enum":["VIRTUAL","PHYSICAL"]}},"components/schemas/ChangeCardReason":{"id":"components/schemas/ChangeCardReason","kind":"json-schema","title":"ChangeCardReason","data":{"type":"string","description":"\nReason for card termination.\n","enum":["CARD_DAMAGED","CARD_LOST","CARD_NOT_RECEIVED","DO_NOT_NEED_PHYSICAL_CARD","DO_NOT_NEED_VIRTUAL_CARD","FRAUD","OTHER"]}},"components/schemas/CompanyResponse":{"id":"components/schemas/CompanyResponse","kind":"json-schema","title":"CompanyResponse","data":{"required":["accountType","id","legal_name","mailing_address"],"type":"object","properties":{"id":{"type":"string"},"legal_name":{"type":"string"},"mailing_address":{"$ref":"#/components/schemas/Address"},"accountType":{"$ref":"#/components/schemas/AccountType"}}}},"components/schemas/CostCenterResponse":{"id":"components/schemas/CostCenterResponse","kind":"json-schema","title":"CostCenterResponse","data":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name of the cost center"}}}},"components/schemas/CreateCardRequest":{"id":"components/schemas/CreateCardRequest","kind":"json-schema","title":"CreateCardRequest","data":{"required":["card_name","card_type","limit_type","owner"],"type":"object","properties":{"owner":{"$ref":"#/components/schemas/CardOwner"},"card_name":{"minLength":1,"type":"string"},"card_type":{"$ref":"#/components/schemas/CardType"},"limit_type":{"$ref":"#/components/schemas/LimitType"},"spend_controls":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SpendControlRequest"}]},"mailing_address":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Address"}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n","nullable":true},"card_attribute_preferences":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/CardAttributePreferences"}]}},"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field is required when "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"The "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"shipping_address"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field is required for physical cards, and the first 2 lines of the address must be under 60 characters long."},"children":[],"type":"text"}],"type":"paragraph"}]}},"components/schemas/CreateDepartmentRequest":{"id":"components/schemas/CreateDepartmentRequest","kind":"json-schema","title":"CreateDepartmentRequest","data":{"required":["name"],"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the department"},"description":{"type":"string","description":"Description of the department","nullable":true}}}},"components/schemas/CreateLocationRequest":{"id":"components/schemas/CreateLocationRequest","kind":"json-schema","title":"CreateLocationRequest","data":{"required":["name"],"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the location"},"description":{"type":"string","description":"Description of the location","nullable":true}}}},"components/schemas/CreateTitleRequest":{"id":"components/schemas/CreateTitleRequest","kind":"json-schema","title":"CreateTitleRequest","data":{"required":["name"],"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the title"}}}},"components/schemas/CreateUserRequest":{"id":"components/schemas/CreateUserRequest","kind":"json-schema","title":"CreateUserRequest","data":{"required":["email","first_name","last_name"],"type":"object","properties":{"first_name":{"minLength":1,"type":"string"},"last_name":{"minLength":1,"type":"string"},"email":{"type":"string","format":"email"},"manager_id":{"type":"string","nullable":true},"department_id":{"type":"string","nullable":true},"location_id":{"type":"string","nullable":true},"title_id":{"type":"string","nullable":true},"cost_center_id":{"type":"string","nullable":true},"legal_entity_id":{"type":"string","nullable":true},"role_name":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The name of the role to assign the user, exactly as the Brex dashboard shows it when inviting a user: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Employee"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Bookkeeper"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Card admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"User management admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Account admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"AP clerk"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", or a custom role's "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"display_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" from "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET /v2/roles"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". You can assign only the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"https://www.brex.com/support/brex-role-types-and-permissions"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"roles available on your product tier"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Defaults to the employee role. The user gets physical and virtual card access by default."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The metadata or customized attributes of the user. Maximum number of entries: 100","nullable":true}}}},"components/schemas/CustomField":{"id":"components/schemas/CustomField","kind":"json-schema","title":"CustomField","data":{"required":["key","value"],"type":"object","properties":{"key":{"type":"string","description":"The key of the custom field."},"value":{"allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"},{"description":"The value of the custom field.","oneOf":[{"$ref":"#/components/schemas/StringValue"},{"$ref":"#/components/schemas/DecimalValue"},{"$ref":"#/components/schemas/BooleanValue"},{"$ref":"#/components/schemas/EnumValue"},{"$ref":"#/components/schemas/TimestampValue"},{"$ref":"#/components/schemas/DateValue"},{"$ref":"#/components/schemas/MoneyValue"},{"$ref":"#/components/schemas/OptionStringValue"},{"$ref":"#/components/schemas/StringListValue"},{"$ref":"#/components/schemas/DecimalListValue"},{"$ref":"#/components/schemas/BooleanListValue"},{"$ref":"#/components/schemas/EnumListValue"},{"$ref":"#/components/schemas/TimestampListValue"},{"$ref":"#/components/schemas/DateListValue"},{"$ref":"#/components/schemas/MoneyListValue"},{"$ref":"#/components/schemas/OptionStringListValue"}]}]},"display_name":{"type":"string","nullable":true,"description":"The display name of the custom field."}}}},"components/schemas/CustomField.ValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper","data":{"required":["data_type","value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Base class for custom field values"}},"components/schemas/CustomField.ValueWrapper.MultipleValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper.MultipleValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper.MultipleValueWrapper","data":{"required":["value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]}},"description":"Multiple value wrapper for custom fields","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/CustomField.ValueWrapper.SingleValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper.SingleValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper.SingleValueWrapper","data":{"required":["value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]}},"description":"Single value wrapper for custom fields","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/CustomFieldDataType":{"id":"components/schemas/CustomFieldDataType","kind":"json-schema","title":"CustomFieldDataType","data":{"required":["true"],"type":"string","description":"The type of the custom field data.","enum":["STRING","DECIMAL","BOOLEAN","ENUM","TIMESTAMP","DATE","MONEY","OPTION_STRING"]}},"components/schemas/CustomFieldValueType":{"id":"components/schemas/CustomFieldValueType","kind":"json-schema","title":"CustomFieldValueType","data":{"required":["true"],"type":"string","description":"The type of the custom field value.","enum":["SINGLE_VALUE","LIST"]}},"components/schemas/DateListValue":{"id":"components/schemas/DateListValue","kind":"json-schema","title":"Date list value","data":{"title":"Date list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"date"}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["DATE"]}},"description":"Date list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DateValue":{"id":"components/schemas/DateValue","kind":"json-schema","title":"Date value","data":{"title":"Date value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"date","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["DATE"]}},"description":"Date value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DecimalListValue":{"id":"components/schemas/DecimalListValue","kind":"json-schema","title":"Decimal list value","data":{"title":"Decimal list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"number","description":"The data of the custom field."}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["DECIMAL"]}},"description":"Decimal list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DecimalValue":{"id":"components/schemas/DecimalValue","kind":"json-schema","title":"Decimal value","data":{"title":"Decimal value","required":["data_type"],"type":"object","properties":{"data":{"type":"number","description":"The data of the custom field.","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["DECIMAL"]}},"description":"Decimal value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DepartmentResponse":{"id":"components/schemas/DepartmentResponse","kind":"json-schema","title":"DepartmentResponse","data":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name of the department"},"description":{"type":"string","description":"Description of the department","nullable":true}}}},"components/schemas/EnumListValue":{"id":"components/schemas/EnumListValue","kind":"json-schema","title":"Enum list value","data":{"title":"Enum list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"enum"}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["ENUM"]}},"description":"Enum list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/EnumValue":{"id":"components/schemas/EnumValue","kind":"json-schema","title":"Enum value","data":{"title":"Enum value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"enum","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["ENUM"]}},"description":"Enum value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/LegalEntity":{"id":"components/schemas/LegalEntity","kind":"json-schema","title":"\nLegal Entity\n","data":{"title":"\nLegal Entity\n","required":["billingAddress","createdAt","displayName","id","status"],"type":"object","properties":{"id":{"type":"string","description":"\nThe ID of this legal entity.\n"},"displayName":{"type":"string","description":"\nThe display name of this legal entity.\n"},"billingAddress":{"allOf":[{"$ref":"#/components/schemas/Address"},{"description":"\nThe billing address of this legal entity. Also used as billing address for cards issued to users who belong to this entity.\n"}]},"createdAt":{"type":"string","description":"\nTimestamp, in UTC, when this legal entity was created.\n","format":"date-time"},"status":{"allOf":[{"$ref":"#/components/schemas/LegalEntityStatus"},{"description":"\nThe current status of this legal entity.\n"}]},"isDefault":{"type":"boolean","description":"\nWhether this is the default entity of the account.\n"}},"description":"\nA Brex legal entity.\n"}},"components/schemas/LegalEntityStatus":{"id":"components/schemas/LegalEntityStatus","kind":"json-schema","title":"LegalEntityStatus","data":{"type":"string","description":"\nThe possible statuses for an entity's verification in Brex.\n","enum":["UNSUBMITTED","UNVERIFIED","IN_PROGRESS","VERIFIED","REJECTED"]}},"components/schemas/LimitType":{"id":"components/schemas/LimitType","kind":"json-schema","title":"LimitType","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type = CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for vendor cards. Vendor cards must have a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"card_type"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"VIRTUAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"and do not rely on the user specific limit."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"For corporate cards, "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type = USER"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Learn more about different card types "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"https://support.brex.com/what-are-the-different-types-of-cards-i-can-get/"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"here"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}],"enum":["CARD","USER"]}},"components/schemas/LocationResponse":{"id":"components/schemas/LocationResponse","kind":"json-schema","title":"LocationResponse","data":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name of the location"},"description":{"type":"string","description":"Description of the location","nullable":true}}}},"components/schemas/LockCardRequest":{"id":"components/schemas/LockCardRequest","kind":"json-schema","title":"LockCardRequest","data":{"required":["reason"],"type":"object","properties":{"description":{"type":"string","description":"Description for locking a card","nullable":true},"reason":{"$ref":"#/components/schemas/ChangeCardReason"}},"description":"Parameters for locking a card."}},"components/schemas/LockedMerchantDetails":{"id":"components/schemas/LockedMerchantDetails","kind":"json-schema","title":"LockedMerchantDetails","data":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"The name of the merchant.","example":"Github"}},"description":"\nMerchant details used for restricting or blocking transactions.\n"}},"components/schemas/Money":{"id":"components/schemas/Money","kind":"json-schema","title":"Money","data":{"required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.","format":"int64","example":700},"currency":{"type":"string","description":"The type of currency, in ISO 4217 format.","nullable":true,"example":"USD","default":"USD"}},"description":"\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n"}},"components/schemas/RoleResponse":{"id":"components/schemas/RoleResponse","kind":"json-schema","title":"RoleResponse","data":{"required":["id","display_name","is_custom"],"type":"object","properties":{"id":{"type":"string","description":"The role ID"},"display_name":{"type":"string","description":"Display name of the role"},"description":{"type":"string","description":"Description of the role","nullable":true},"is_custom":{"type":"boolean","description":"Whether this is a custom role"}}}},"components/schemas/MoneyListValue":{"id":"components/schemas/MoneyListValue","kind":"json-schema","title":"Money list value","data":{"title":"Money list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/Money"}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["MONEY"]}},"description":"Money list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/MoneyValue":{"id":"components/schemas/MoneyValue","kind":"json-schema","title":"Money value","data":{"title":"Money value","required":["data_type"],"type":"object","properties":{"data":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Money"},{"description":"The data of the custom field."}]},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["MONEY"]}},"description":"Money value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/OptionString":{"id":"components/schemas/OptionString","kind":"json-schema","title":"OptionString","data":{"type":"object","properties":{"option_id":{"type":"string","description":"The identifier when custom field data is of type option string.","nullable":true},"option_label":{"type":"string","description":"The label when custom field data is of type option string.","nullable":true}},"description":"Option string fields have a label and a identifier."}},"components/schemas/OptionStringListValue":{"id":"components/schemas/OptionStringListValue","kind":"json-schema","title":"Option string list value","data":{"title":"Option string list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/OptionString"}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["OPTION_STRING"]}},"description":"Option string list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/OptionStringValue":{"id":"components/schemas/OptionStringValue","kind":"json-schema","title":"Option string value","data":{"title":"Option string value","required":["data_type"],"type":"object","properties":{"data":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/OptionString"},{"description":"The data of the custom field."}]},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["OPTION_STRING"]}},"description":"Option string value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/OwnerType":{"id":"components/schemas/OwnerType","kind":"json-schema","title":"OwnerType","data":{"type":"string","enum":["USER"]}},"components/schemas/Page_Card_":{"id":"components/schemas/Page_Card_","kind":"json-schema","title":"Page_Card_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/Card"}}}}},"components/schemas/Page_CostCenterResponse_":{"id":"components/schemas/Page_CostCenterResponse_","kind":"json-schema","title":"Page_CostCenterResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/CostCenterResponse"}}}}},"components/schemas/Page_DepartmentResponse_":{"id":"components/schemas/Page_DepartmentResponse_","kind":"json-schema","title":"Page_DepartmentResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/DepartmentResponse"}}}}},"components/schemas/Page_LegalEntity_":{"id":"components/schemas/Page_LegalEntity_","kind":"json-schema","title":"Page_LegalEntity_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/LegalEntity"}}}}},"components/schemas/Page_RoleResponse_":{"id":"components/schemas/Page_RoleResponse_","kind":"json-schema","title":"Page_RoleResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/RoleResponse"}}}}},"components/schemas/Page_LocationResponse_":{"id":"components/schemas/Page_LocationResponse_","kind":"json-schema","title":"Page_LocationResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/LocationResponse"}}}}},"components/schemas/Page_TitleResponse_":{"id":"components/schemas/Page_TitleResponse_","kind":"json-schema","title":"Page_TitleResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/TitleResponse"}}}}},"components/schemas/Page_UserResponse_":{"id":"components/schemas/Page_UserResponse_","kind":"json-schema","title":"Page_UserResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/UserResponse"}}}}},"components/schemas/SecureEmailForCardDetailsRequest":{"id":"components/schemas/SecureEmailForCardDetailsRequest","kind":"json-schema","title":"SecureEmailForCardDetailsRequest","data":{"required":["recipient_email","sender_name"],"type":"object","properties":{"recipient_email":{"type":"string","description":"Email address to send card details to"},"sender_name":{"type":"string","description":"Sender name. Shows up in the subject of the email"},"message":{"type":"string","description":"Message to send with the card details","nullable":true},"expiry_days":{"maximum":30,"type":"integer","description":"Link expiry in number of days. Defaults to 30","format":"int32","nullable":true}}}},"components/schemas/SpendControl":{"id":"components/schemas/SpendControl","kind":"json-schema","title":"SpendControl","data":{"type":"object","properties":{"spend_limit":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Money"}]},"spend_available":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Money"}]},"spend_duration":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SpendDuration"}]},"reason":{"type":"string","nullable":true},"lock_after_date":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"lock_after_date"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is in UTC."},"children":[],"type":"text"}],"type":"paragraph"}],"format":"date","nullable":true},"allowed_merchant_details":{"type":"array","description":"\nList of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.\n","nullable":true,"example":"[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}},"blocked_merchant_details":{"type":"array","description":"\nList of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.\n","nullable":true,"example":"[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}}}}},"components/schemas/SpendControlRequest":{"id":"components/schemas/SpendControlRequest","kind":"json-schema","title":"SpendControlRequest","data":{"required":["spend_duration","spend_limit"],"type":"object","properties":{"spend_limit":{"$ref":"#/components/schemas/Money"},"spend_duration":{"$ref":"#/components/schemas/SpendDuration"},"reason":{"type":"string","nullable":true},"lock_after_date":{"type":"string","format":"date","nullable":true},"parent_budget_id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"If using the Empower platform, a new "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"budget"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" will be created for this card. You can specify a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"parent_budget"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" that your new"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"budget"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" will be nested under. If "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"parent_budget_id"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is null, we will nest the new budget under the top-level account "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"budget"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true},"policy_id":{"type":"string","nullable":true},"allowed_merchant_details":{"maxItems":50,"type":"array","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"merchant details."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true,"example":"[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}},"blocked_merchant_details":{"maxItems":50,"type":"array","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"merchant details."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true,"example":"[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}}},"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"When "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit_type = CARD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" must be set. When "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"limit type = USER"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"spend_controls"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" must be "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"null"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]}},"components/schemas/SpendControlUpdateRequest":{"id":"components/schemas/SpendControlUpdateRequest","kind":"json-schema","title":"SpendControlUpdateRequest","data":{"type":"object","properties":{"spend_limit":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Money"}]},"spend_duration":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SpendDuration"}]},"reason":{"type":"string","nullable":true},"lock_after_date":{"type":"string","format":"date","nullable":true},"allowed_merchant_details":{"maxItems":50,"type":"array","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"merchant details."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true,"example":"[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}},"blocked_merchant_details":{"maxItems":50,"type":"array","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"merchant details."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true,"example":"[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]","items":{"$ref":"#/components/schemas/LockedMerchantDetails"}}}}},"components/schemas/SpendDuration":{"id":"components/schemas/SpendDuration","kind":"json-schema","title":"SpendDuration","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Spend limit refresh frequency"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MONTHLY: The spend limit refreshes every month"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"QUARTERLY: The spend limit refreshes every quarter"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"YEARLY: The spend limit refreshes every year"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ONE_TIME: The limit does not refresh"},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"enum":["MONTHLY","QUARTERLY","YEARLY","ONE_TIME"]}},"components/schemas/StringListValue":{"id":"components/schemas/StringListValue","kind":"json-schema","title":"String list value","data":{"title":"String list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field."}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["STRING"]}},"description":"String list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/StringValue":{"id":"components/schemas/StringValue","kind":"json-schema","title":"String value","data":{"title":"String value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["STRING"]}},"description":"String value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/TerminateCardRequest":{"id":"components/schemas/TerminateCardRequest","kind":"json-schema","title":"TerminateCardRequest","data":{"required":["reason"],"type":"object","properties":{"description":{"type":"string","description":"Description for terminating a card","nullable":true},"reason":{"$ref":"#/components/schemas/ChangeCardReason"}},"description":"Parameters for terminating a card."}},"components/schemas/ThreeDomainSecureEnabledPreference":{"id":"components/schemas/ThreeDomainSecureEnabledPreference","kind":"json-schema","title":"ThreeDomainSecureEnabledPreference","data":{"type":"string","description":"\nWhether to enable 3-D secure protocol on this card. \n","enum":["THREE_DOMAIN_SECURE_ENABLED","THREE_DOMAIN_SECURE_DISABLED"]}},"components/schemas/TimestampListValue":{"id":"components/schemas/TimestampListValue","kind":"json-schema","title":"Timestamp list value","data":{"title":"Timestamp list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"date-time"}},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["TIMESTAMP"]}},"description":"Timestamp list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/TimestampValue":{"id":"components/schemas/TimestampValue","kind":"json-schema","title":"Timestamp value","data":{"title":"Timestamp value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"date-time","nullable":true},"data_type":{"type":"string","description":"The type of the custom field data.","enum":["TIMESTAMP"]}},"description":"Timestamp value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/TitleResponse":{"id":"components/schemas/TitleResponse","kind":"json-schema","title":"TitleResponse","data":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name of the title"}}}},"components/schemas/UpdateCardRequest":{"id":"components/schemas/UpdateCardRequest","kind":"json-schema","title":"UpdateCardRequest","data":{"type":"object","properties":{"spend_controls":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SpendControlUpdateRequest"}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n","nullable":true}}}},"components/schemas/UpdateLocationRequest":{"id":"components/schemas/UpdateLocationRequest","kind":"json-schema","title":"UpdateLocationRequest","data":{"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the location. Cannot be blank when supplied.","nullable":true},"description":{"type":"string","description":"Description of the location. Pass null or an empty string to clear it.","nullable":true}}}},"components/schemas/UpdateTitleRequest":{"id":"components/schemas/UpdateTitleRequest","kind":"json-schema","title":"UpdateTitleRequest","data":{"required":["name"],"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the title. Cannot be blank or null when supplied.","maxLength":255}}}},"components/schemas/UpdateDepartmentRequest":{"id":"components/schemas/UpdateDepartmentRequest","kind":"json-schema","title":"UpdateDepartmentRequest","data":{"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Name of the department. Cannot be blank when supplied.","maxLength":255,"nullable":true},"description":{"type":"string","description":"Description of the department. Pass null or an empty string to clear it.","maxLength":255,"nullable":true}}}},"components/schemas/UpdateUserRequest":{"id":"components/schemas/UpdateUserRequest","kind":"json-schema","title":"UpdateUserRequest","data":{"type":"object","properties":{"status":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/UpdateUserStatus"}]},"manager_id":{"type":"string","description":"The user id of the manager of this user","nullable":true},"department_id":{"type":"string","nullable":true},"location_id":{"type":"string","nullable":true},"title_id":{"type":"string","nullable":true},"cost_center_id":{"type":"string","nullable":true},"legal_entity_id":{"type":"string","description":"The legal entity this user reports into. Cannot be null."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The metadata or customized attributes of the user. Maximum number of entries: 100","nullable":true},"role_name":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The name of the role to give the user, exactly as the Brex dashboard shows it: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Employee"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Bookkeeper"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Card admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"User management admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Account admin"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"AP clerk"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", or a custom role's "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"display_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" from "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET /v2/roles"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". You can assign only the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"https://www.brex.com/support/brex-role-types-and-permissions"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"roles available on your product tier"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Replaces the user's current role; their card access is unchanged."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true}}}},"components/schemas/UpdateUserStatus":{"id":"components/schemas/UpdateUserStatus","kind":"json-schema","title":"UpdateUserStatus","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Acceptable user status for update. The value you send is the status the user ends up in. Only transitions"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"that are legal for the user's current status are accepted; anything else is rejected with a 400."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"content":"  ACTIVE   <-->  DISABLED     suspend an active user / unsuspend a suspended one\n  INACTIVE <-->  ARCHIVED     archive an inactive user / restore an archived one\n\n  INVITED   -->  DELETED      withdraw an invitation and delete user\n  INACTIVE  -->  DELETED      delete an inactive user\n"},"children":[{"$$mdtype":"Node","attributes":{"content":"  ACTIVE   <-->  DISABLED     suspend an active user / unsuspend a suspended one\n  INACTIVE <-->  ARCHIVED     archive an inactive user / restore an archived one\n\n  INVITED   -->  DELETED      withdraw an invitation and delete user\n  INACTIVE  -->  DELETED      delete an inactive user\n"},"children":[],"type":"text"}],"type":"fence"}],"enum":["ACTIVE","DISABLED","ARCHIVED","INACTIVE","DELETED"]}},"components/schemas/UserOwner":{"id":"components/schemas/UserOwner","kind":"json-schema","title":"UserOwner","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CardOwner"},{"required":["type","user_id"],"properties":{"type":{"$ref":"#/components/schemas/OwnerType"},"user_id":{"type":"string"}}}]}},"components/schemas/UserResponse":{"id":"components/schemas/UserResponse","kind":"json-schema","title":"UserResponse","data":{"required":["email","first_name","id","last_name"],"type":"object","properties":{"id":{"type":"string"},"first_name":{"type":"string","description":"First name of the user"},"last_name":{"type":"string","description":"Last name of the user"},"email":{"type":"string","description":"Email address of the user"},"status":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/UserStatus"}]},"manager_id":{"type":"string","description":"The user id of the manager of this user","nullable":true},"department_id":{"type":"string","nullable":true},"location_id":{"type":"string","nullable":true},"title_id":{"type":"string","nullable":true},"cost_center_id":{"type":"string","nullable":true},"legal_entity_id":{"type":"string","nullable":true},"role_name":{"type":"string","description":"The user's role, as shown in the Brex dashboard.","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The metadata or customized attributes of the user. Maximum number of entries: 100","nullable":true},"remote_display_id":{"type":"string","description":"Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz","nullable":true},"custom_fields":{"type":"array","description":"A list of custom field values associated with the user.","nullable":true,"items":{"$ref":"#/components/schemas/CustomField"}}}}},"components/schemas/UserStatus":{"id":"components/schemas/UserStatus","kind":"json-schema","title":"UserStatus","data":{"type":"string","description":"Status of the user","enum":["INVITED","ACTIVE","DISABLED","PENDING_ACTIVATION","INACTIVE","ARCHIVED"]}},"schema_0":{"kind":"json-schema","data":{"type":"string","nullable":true},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"integer","format":"int32","nullable":true},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Currently only support filtering by a single email or a single remote_display_id."},"children":[],"type":"text"}],"type":"paragraph"}],"nullable":true},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"array","nullable":true,"items":{"type":"string"}},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"array","nullable":true,"items":{"type":"string","enum":["INVITED","ACTIVE","DISABLED","PENDING_ACTIVATION","INACTIVE","ARCHIVED"]}},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"type":"boolean","nullable":true},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"type":"string"},"id":"schema_6"}},"exampleStore":{},"securitySchemeStore":{"OAuth2":{"id":"OAuth2","type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","users.readonly":"View user data","users":"View and manage user data","locations.readonly":"View location data","locations":"View and manage location data","departments.readonly":"View department data","departments":"View and manage department data","titles":"View and manage title data","titles.readonly":"View title data","cost_centers":"View and manage cost center data","cost_centers.readonly":"View cost center data","cards":"View and manage card data","cards.readonly":"View card data","cards.pan":"View and Send card number data","legal_entities":"View and manage legal entities","legal_entities.readonly":"View legal entities","roles":"View and manage role data","roles.readonly":"View role data"}}}}},"specVersion":"3.0.1","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"logo":{"imageUrl":"https://www.brex.com/logo.png","href":"https://brex.com","altText":"Brex Logo"},"specType":"openapi"},"options":{"showConsole":false,"codeSamples":{"languages":[{"lang":"curl"},{"lang":"JavaScript"},{"lang":"Node.js"},{"lang":"Python"},{"lang":"Ruby"},{"lang":"Java"}],"skipOptionalParameters":true},"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/openapi/team_api.json?download"},{"url":"/_bundle/openapi/team_api.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Team API","description":"\nThe team API lets you manage users, departments, locations, and cards.\n"}},"baseSlug":"/openapi/team_api","routesMapping":{}}