Documentation
Departments
Map organization structure in the external app.
Requires scope: departments
Endpoints
GET
/api/v1/integrations/departmentsBearer authList departments
Example response
{
"success": true,
"status": 200,
"data": {
"departments": [
{
"id": "665f1a2b3c4d5e6f7a8b9c11",
"name": "Engineering",
"isActive": true,
"managerId": "665f1a2b3c4d5e6f7a8b9c55"
}
]
}
}GET
/api/v1/integrations/departments/:idBearer authGet one department
Example response
{
"success": true,
"status": 200,
"data": {
"department": {
"id": "665f1a2b3c4d5e6f7a8b9c11",
"name": "Engineering",
"isActive": true,
"managerId": "665f1a2b3c4d5e6f7a8b9c55"
}
}
}