Get a department by ID
Departments
Get a department by ID
Fetch a single department by _id with populated managers/users; rejects cross-org reads.
GET
Get a department by ID
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Department returned
Example:
{
"_id": "65c1a0b0c0d0e0f0a0b0c0d1",
"name": "Sales",
"description": "Inbound + outbound sales reps",
"organizationId": "65a0e0e0e0e0e0e0e0e0e0e0",
"managerIds": [
{
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com",
"accessRole": "ADMIN"
}
],
"userIds": [
{
"_id": "65b1f0a2c3d4e5f6a7b8c9d0",
"fullName": "Alice Rivera",
"email": "alice@example.com",
"accessRole": "AGENT"
}
],
"createdBy": {
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com"
},
"updatedBy": {
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com"
},
"createdAt": "2026-01-12T09:00:00.000Z",
"updatedAt": "2026-04-04T12:30:00.000Z"
}