Skip to main content
GET
/
organization
/
structure
/
api
/
departments
List departments
curl --request GET \
  --url https://{host}/organization/structure/api/departments \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "id": 48,
      "name": "IT",
      "code": "IT",
      "description": null,
      "parentId": "/1/2/",
      "parentLuccaId": null,
      "hierarchy": "/1/2/2/",
      "isActive": true,
      "headId": 1080,
      "createdAt": "2000-01-01T00:00:00+00:00",
      "lastModifiedAt": "2000-01-01T00:00:00+00:00",
      "sortOrderInSiblings": null
    }
  ],
  "count": 1,
  "prev": "<unknown>",
  "next": "<unknown>"
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Response

200 - application/json

OK

items
Department (v4) · object[]
count
integer
Required range: x >= 0
prev
null | string
next
null | string