Departments

This endpoint gets a department by ID.

get/v2/departments/{id}

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.

Path parameters

idstring required

Response

getDepartmentById 200 response

idstring required
namestring required

Name of the department

descriptionstring nullable

Description of the department

Changes