Users
Get user
Changed onThis endpoint gets a user by ID.
get/v2/users/{id}
Request
- Base URLhttps://api.brex.com
- Auth
- OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesusers.readonly
- or OAuth 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.
Path parameters
idstring required
Query parameters
load_custom_fieldsboolean nullable
Load custom field values for the users.
Response
getUserById 200 response
Example response
{
"custom_fields": [
{
"value": {
"data": {
"amount": 700,
"currency": "USD"
}
}
}
]
}Changes
- info
the security scope
userswas removed from the endpoint's security schemeOAuth2
- info
- info
added the new optional
queryrequest parameterload_custom_fields - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
removed the
CLOSEDenum value from the////response property for the response status - info
removed the
DELETEDenum value from the////response property for the response status
- info