latestOpenAPI 3.0.02026-08-1122089.2 KB
af3fca8cbe6f
Departments
List departments for the authenticated user
Returns departments created by the authenticated user. Supports optional search by department name.
get/api/departments
Query parameters
searchstring
Example:Sales
Filter departments by name (partial match)
Response
List of departments
Example response
{
"success": true,
"data": [
{
"id": 1,
"department_name": "Sales"
}
]
}