Departments

List departments

Changed on

This endpoint lists all departments.

get/v2/departments

Request

  • Base URL
    https://api.brex.com
  • Auth
    • OAuth 2
      Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorize
      Token URLhttps://accounts-api.brex.com/oauth2/default/v1/token
      Scopesdepartments.readonly
    • or OAuth 2
      Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorize
      Token URLhttps://accounts-api.brex.com/oauth2/default/v1/token
      Scopesdepartments
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Query parameters

cursorstring nullable
limitinteger nullable
namestring nullable

Response

listDepartments 200 response

next_cursorstring nullable

Changes