v1

latestOpenAPI 3.0.02026-08-0622087.9 KB
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

successboolean

Example response

{
  "success": true,
  "data": [
    {
      "id": 1,
      "department_name": "Sales"
    }
  ]
}