Departments
Get department
Changed onThis endpoint gets a department by ID.
get/v2/departments/{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/tokenScopesdepartments.readonly
- or OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesdepartments
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Response
getDepartmentById 200 response
Changes
- info
the security scope
departmentswas removed from the endpoint's security schemeOAuth2
- info