GET
/api/public/v1/departments

List departments

List all departments in your organization.

GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/departments" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key"
200Example response
json
{
  "message": "Departments retrieved successfully!",
  "content": {
    "departments": [
      {
        "id": "dept_1",
        "name": "Engineering"
      }
    ]
  }
}