> For the complete documentation index, see [llms.txt](https://openapi-docs.exosp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openapi-docs.exosp.com/guide/organization/get-department.md).

# 그룹(부서) 조회

<mark style="background-color:green;">GET</mark> `https://openapi.exosp.com/organization/v1/department`

그룹(부서) 정보를 조회하는 API 입니다.

### Response Schema

<table><thead><tr><th width="162">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>code</td><td>int</td><td><p><strong>응답 처리 결과 코드</strong> </p><p>0 : 성공, 1 : 실패</p></td></tr><tr><td>message</td><td>string</td><td><p><strong>응답 처리 결과 메세지</strong></p><p>success : 성공, 그 외 : 실패</p></td></tr><tr><td>body</td><td>object</td><td><a data-mention href="#body">#body</a></td></tr></tbody></table>

#### **body 상세**

<table><thead><tr><th width="164">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>departmentName</td><td>string</td><td><strong>그룹 이름</strong></td></tr><tr><td>departmentFull</td><td>string</td><td><strong>그룹 전체 경로</strong> </td></tr><tr><td>subDepartments</td><td>array</td><td><a data-mention href="#undefined">#undefined</a></td></tr></tbody></table>

#### 하위 부서 상세

<table><thead><tr><th width="164">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>departmentName</td><td>string</td><td><strong>그룹 이름</strong></td></tr><tr><td>departmentFull</td><td>string</td><td><strong>그룹 전체 경로</strong> </td></tr><tr><td>subDepartments</td><td>array</td><td><a data-mention href="#undefined">#undefined</a></td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="200 Success" %}

```javascript
curl -X 'GET' \
  'https://openapi.exosp.com/organization/v1/department' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: YOUR_ACCESS_KEY' \
  -H 'x-exosp-secret: YOUR_ACCESS_SECRET' 

{
  "code": 0,
  "message": "success",
  "body": {
    "name": "test",
    "fullName": "test",
    "subDepartments": [
      {
        "name": "test2",
        "fullName": "test > test2",
        "subDepartments": []
      },
      {
        "name": "test3",
        "fullName": "test > test3",
        "subDepartments": []
      },
      {
        "name": "test4",
        "fullName": "test > test4",
        "subDepartments": [
          {
            "name": "dev",
            "fullName": "test > test4 > dev",
            "subDepartments": []
          },
          {
            "name": "test5",
            "fullName": "test > test4 > test5",
            "subDepartments": []
          }
        ]
      },
      {
        "name": "test5",
        "fullName": "test > test5",
        "subDepartments": []
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
