Get department details by department IDs

GET {{baseUrl}}/api/v1/departmentsByIds?departmentIds=:department_ids?departmentIds=<long>

This API fetches the details of the departments whose IDs are passed in the API request.

OAuth Scope

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

Request Params

KeyDatatypeRequiredDescription
departmentIdsstringComma-separated array of department IDs. Maximum number of IDs allowed is 50.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;isAssignToTeamEnabled&quot;:true,&quot;chatStatus&quot;:&quot;AVAILABLE&quot;,&quot;isDefault&quot;:true,&quot;hasLogo&quot;:true,&quot;isVisibleInCustomerPortal&quot;:true,&quot;isEnabled&quot;:true,&quot;name&quot;:&quot;Zylker&quot;,&quot;creatorId&quot;:&quot;1892000000042001&quot;,&quot;description&quot;:&quot;Zylker Inc. is a multinational technology company that designs, develops, and sells consumer electronics.&quot;,&quot;createdTime&quot;:&quot;2019-07-26T13:11:02.000Z&quot;,&quot;id&quot;:&quot;1892000000082069&quot;,&quot;nameInCustomerPortal&quot;:&quot;ZylCares&quot;},{&quot;isAssignToTeamEnabled&quot;:true,&quot;chatStatus&quot;:&quot;DISABLED&quot;,&quot;isDefault&quot;:false,&quot;hasLogo&quot;:true,&quot;isVisibleInCustomerPortal&quot;:true,&quot;isEnabled&quot;:true,&quot;name&quot;:&quot;zPad&quot;,&quot;creatorId&quot;:&quot;1892000000042001&quot;,&quot;description&quot;:&quot;zPad is the most advanced tablet that brings you the never-experienced-before processing power.&quot;,&quot;createdTime&quot;:&quot;2018-07-06T13:11:12.000Z&quot;,&quot;id&quot;:&quot;1892000000082085&quot;,&quot;nameInCustomerPortal&quot;:&quot;zPad&quot;}]}