--- id: "en/api-get-nd-api-enterprise-departments" title: "Obtain information from all departments of the enterprise" language: "en" description: "GET /nd/api/enterprise/departments: Get information about all departments of the enterprise. Interface description, including path, method, parameters and return information." canonical_url: "https://www.babel.cc/public/babelwiki/en/api-get-nd-api-enterprise-departments.html" markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-enterprise-departments.md" alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-enterprise-departments.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-get-nd-api-enterprise-departments.md"} reading_note: "文档记录不等于当前部署能力;以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明,勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts." --- # Get information about all departments of the enterprise | Properties | Values | | --- | --- | | HTTP methods | `GET` | | Interface path | `/nd/api/enterprise/departments` | | Category | Enterprise API | ## Interface description Interface path: `/nd/api/enterprise/departments` HTTP method: `GET` **HTTP method:** `GET` #### URL parameters None. #### Return field description | Field | Type | Description | | --- | --- | --- | | `departments` | array | Department information | | `tree` | object | Department parent-child structure | | `code` | `int` | Not specified | | `success` | `boolean` | Success flag; the confirmed response key is `success`. | ## Call instructions - Before calling, you need to complete [Get token](https://www.babel.cc/public/babelwiki/en/api-post-api-token-do.html) or the corresponding login-free authentication, and carry `Authorization: Bearer ` in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail. - Category: Enterprise API.