--- title: Obtain information from all departments of the enterprise description: GET /nd/api/enterprise/departments: Get information about all departments of the enterprise. Interface description, including path, method, parameters and return information. slug: api-get-nd-api-enterprise-departments lang: en category: Enterprise API category_order: 8 order: 141 api_method: GET api_path: /nd/api/enterprise/departments api_label: Obtain information from all departments of the enterprise keywords: - API - Obtain information from all departments of the enterprise - /nd/api/enterprise/departments --- # 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 Parameter name Comment (description) None #### Return field description Attribute name type description departments [] array returns all department information tree {}json data returns the parent-child structure information of the department code int successboolean ## Call instructions - Before calling, you need to complete [Get token](api-post-api-token-do.md) 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.