Departments

Get a department by ID

GET
/api/departments/{id}

Fetch a single department by _id with populated managers/users; rejects cross-org reads.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/departments/string"
{  "department": {    "_id": "65c1a0b0c0d0e0f0a0b0c0d1",    "name": "Sales",    "description": "Inbound + outbound sales reps",    "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0",    "createdAt": "2026-01-12T09:00:00.000Z",    "updatedAt": "2026-04-04T12:30:00.000Z"  }}