List

List the available departments

List

GET https://{{account_id}}.acquire.io/api/v1/account/department

List all departments and users who belong to those departments.

Query Parameters

Name
Type
Description

select

array

Specify which fields you'd like in the response

relations

object

Specify relations with other entities

where

object

Specify a condition to limit the response

order

object

Specify the descending or ascending order

Headers

Name
Type
Description

Authorization

string

Bearer {{API_KEY}}

{
  "data": {
    "count": 8,
    "data": [
      {
        "id": 6,
        "name": "eswweew ",
        "status": "active",
        "users": []
      },
      {
        "id": 7,
        "name": "fdhfthnfgg",
        "status": "active",
        "users": []
      },
      {
        "id": 8,
        "name": "Youpps",
        "status": "active",
        "users": [
          {
            "firstName": "set2",
            "lastName": "",
            "id": 20,
            "type": "user",
            "status": "active",
            "lastLoginId": null,
            "parentId": null,
            "ownerId": null,
            "name": "set2",
            "email": "set2@acquire.io",
            "phone": null,
            "photo": null,
            "inviteToken": null,
            "language": null,
            "clientId": null,
            "clientAppId": null,
            "clientAuthorizer": null,
            "clientPermissions": null,
            "stateId": null,
            "countryId": null,
            "dateCreated": "2021-02-03T17:00:26.000Z"
          }
        ]
      },
      {
        "id": 9,
        "name": "robust",
        "status": "active",
        "users": [
          {
            "firstName": "hello user1",
            "lastName": "",
            "id": 19,
            "type": "user",
            "status": "active",
            "lastLoginId": null,
            "parentId": null,
            "ownerId": null,
            "name": "hello user1",
            "email": "hello@acquire.io",
            "phone": null,
            "photo": null,
            "inviteToken": null,
            "language": null,
            "clientId": null,
            "clientAppId": null,
            "clientAuthorizer": null,
            "clientPermissions": null,
            "stateId": null,
            "countryId": null,
            "dateCreated": "2021-02-03T16:59:45.000Z"
          }
        ]
      },
      {
        "id": 10,
        "name": "qwe",
        "status": "active",
        "users": []
      },
      {
        "id": 11,
        "name": "moi",
        "status": "active",
        "users": []
      },
      {
        "id": 12,
        "name": "roi",
        "status": "active",
        "users": []
      },
      {
        "id": 13,
        "name": "eoi",
        "status": "active",
        "users": []
      }
    ]
  }
}

Last updated