Departments
List departments
Changed onThis endpoint lists all departments.
get/v2/departments
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.
Query parameters
cursorstring nullable
limitinteger nullable
namestring nullable
Response
listDepartments 200 response
Changes
- info
the security scope
departmentswas removed from the endpoint's security schemeOAuth2
- info