List teams in department

GET {{baseUrl}}/api/v1/departments/:department_id/teams

This API fetches details of all the teams in a particular department.

OAuth Scope

  • Desk.settings.READ
  • Desk.basic.READ

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"teams":[{"rolesWithSubordinates":["6000000008684","6000000008686"],"roles":["6000000011311","6000000011309","6000000011307"],"departmentId":"6000000007245","name":"Field Agents","derivedAgents":["6000000009086"],"description":"Field Agents team for customer issues","id":"6000000017039","subTeams":[],"agents":["6000000009086"]},{"rolesWithSubordinates":["6000000008684","6000000008686"],"roles":["6000000011311","6000000011309","6000000011307"],"departmentId":"6000000007245","name":"Managers","derivedAgents":["6000000009086"],"description":"Managers","id":"6000000016007","subTeams":["6000000016011","6000000014005"],"agents":["6000000009086"]}]}