GET [ employee ]
Production Endpoint: https://app.complyflow.com.au/app/public/index.php/api/acu/employee
Test Endpoint: https://test.complyflow.com.au/app/public/index.php/api/acu/employee
Overview
This endpoint returns the list of employees (i.e. Workers) from all contractors associated with the Enterprise Client/Organisation.
Authentication instructions
Refer to the Authentication method for Authentication Methods (for Login and Logout).
β
  Permissions Required
The user should possess the permissions below:
API User
User is Staff
Users have Access to View and Edit Staff Permission
Please also refer to the Permissions Overview guide.
Query parameters
FIELD  | TYPE  | DESCRIPTION  | REQUIRED  | DEFAULT  | PATTERN  | 
  | 
  | Employee updated time  | No  | 
  | 
 (E.g. 20221101T10:00:00)  | 
  | 
  | Contractor Attribute  | No  | 
  | 
  | 
Request Example
curl --location 'http://test.complyflow.com.au/app/public/index.php/api/acu/employee' \
--header 'Authorization: [...]' \
--header 'Cookie: [...]'
Response Example
The API Request returns a list of employees from all contractors in an organisation:
{
    "token": "",
    "data": [
        {
            "id": 3269,
            "first_name": "lol",
            "last_name": "lol",
            "email": "shughi.test@gmail.com",
            "contractor_id": 1554,
            "company_name": "asda13123213",
            "company_trade_name": "asda123123123123123",
            "projects": [
                "a"
            ],
            "hr_custom_fields": null,
            "departments": null,
            "category_status": "Pending",
            "attributes": [
                {
                    "name": "PersonA",
                    "value": "No"
                }
            ],
            "invite_date": "2024-07-02 19:59:16",
            "phone": "0356133611",
            "photo_status": 0,
            "indigenous_status": "",
            "gender": "Female",
            "address_street1": null,
            "address_street2": null,
            "address_suburb": null,
            "address_state": null,
            "address_country": "",
            "postcode": null,
            "emergency_contact_address_number": null,
            "emergency_contact_address_street": null,
            "emergency_contact_address_suburb": null,
            "emergency_contact_address_state": null,
            "emergency_contact_address_postcode": null,
            "online_training": null,
            "worker_categories": [
                {
                    "id": 76,
                    "name": "WorkerCateB"
                }
            ],
            "documents": [
                {
                    "id": 167,
                    "name": "DocB2",
                    "expiry": null,
                    "status": "Approved",
                    "filename": "mpdf.pdf",
                    "global_document": 0
                }
            ],
            "job_title": null,
            "account_status": "Active",
            "last_updated": "2024-07-03 13:12:50"
        }
    ]
}
  Photo status (photo_status); 0 - NOT_APPROVED; 1 - APPROVED