API Documentation

The REST API allows developers to hook into Clientexec and connect it to third-party applications.

Get Online Users

Example JSON Response

{
    "timestamp": 1391189699,
    "staff": [

    ],
    "customers": [

    ],
    "count": 2,
    "offlinecount": 5,
    "users": [
        {
            "id": "4145",
            "name": "Jack Smith",
            "email": "[email protected]",
            "time": "10m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "green",
            "type": "customer",
            "lastview": "",
            "online": 1
        },
        {
            "id": "23243",
            "name": "Joshua Post",
            "email": "[email protected]",
            "time": "6m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "green",
            "type": "staff",
            "lastview": {
                "m": "support",
                "v": "getticket",
                "t": "ticketid|105792"
            },
            "online": 1
        }
    ],
    "offlineusers": [
        {
            "id": "21150",
            "name": "Justin Patterson",
            "email": "[email protected]",
            "time": "57m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "23111",
            "name": "Jesse Wolf",
            "email": "[email protected]",
            "time": "1h 14m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "customer",
            "online": 0
        },
        {
            "id": "21780",
            "name": "Alejandro Cordova",
            "email": "[email protected]",
            "time": "1h 19m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "10182",
            "name": "Juan Box.",
            "email": "[email protected]",
            "time": "3h 44m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "2072",
            "name": "CPA Business Name",
            "email": "[email protected]",
            "time": "6h 59m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "customer",
            "online": 0
        }
    ],
    "superadmin": 0,
    "self": 0,
    "elapsed": "0.403",
    "message": ""
}