New API version v7.4.2 has been released! 🎉
REST Documentation
GET Departments

Get All Departments

You can use this endpoint to call up a paginated list of all departments.

Request

GET /api/v1/departments
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/departments' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Response

{
	"data": [
		{
			"id": 1,
			"parent_id": null,
			"name": "Company GmbH",
			"description": null,
			"comments": null,
			"status": 1,
			"manager_count": 2,
			"children_count": 10,
			"created": null,
			"modified": "2023-12-21T07:52:50.000000Z"
		},
		{
			"id": 2,
			"parent_id": 1,
			"name": "Development",
			"description": null,
			"comments": null,
			"status": 1,
			"manager_count": 17,
			"children_count": 0,
			"created": null,
			"modified": "2025-04-04T06:40:01.000000Z"
		},
		{
			"id": 3,
			"parent_id": 1,
			"name": "Sales",
			"description": "Sales and Business Development",
			"comments": null,
			"status": 1,
			"manager_count": 1,
			"children_count": 0,
			"created": null,
			"modified": null
		}
	]
}