Skip to main content
GET
/
organization
/
{organizationId}
/
department
/
{departmentId}
cURL
curl --request GET \
  --url http://127.0.0.1:3000/api/organization/{organizationId}/department/{departmentId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "hasChildren": true,
  "parentId": "<string>",
  "path": [
    "<string>"
  ],
  "pathName": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required
departmentId
string
required

Response

200 - application/json

Get department successfully

id
string
required
name
string
required
hasChildren
boolean
required
parentId
string
path
string[]
pathName
string[]
Last modified on December 10, 2025