Users
Create user
Changed onThis 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 with Invite user, on the Dashboard, or by using auto-invite rules.
The user is assigned to legal_entity_id when provided, and to your account's default legal entity otherwise.
post/v2/users/create
Request
- Base URLhttps://api.brex.com
- AuthOAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesusers
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring nullable
Request body
Response
addUser 200 response
Example response
{
"custom_fields": [
{
"value": {
"data": {
"amount": 700,
"currency": "USD"
}
}
}
]
}Changes
- info
endpoint added
- info