GET
/
departments
curl --request GET \
  --url https://api.absentify.com/api/v1/departments \
  --header 'X-API-KEY: <api-key>'
[
  {
    "id": "<string>",
    "custom_id": "<string>",
    "name": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "approval_process": "Linear_all_have_to_agree",
    "maximum_absent": 123,
    "members": [
      {
        "id": "<string>",
        "name": "<string>",
        "email": "<string>",
        "custom_id": "<string>",
        "manager_type": "Member"
      }
    ]
  }
]

Authorizations

X-API-KEY
string
header
required

Response

200
application/json
Successful response

The response is of type object[].