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

Get Online Users

Try With Your Install

Example JSON Response

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

    ],
    "customers": [

    ],
    "count": 2,
    "offlinecount": 5,
    "users": [
        {
            "id": "4145",
            "name": "Jack Smith",
            "email": "jack@somedomain.com",
            "time": "10m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "green",
            "type": "customer",
            "lastview": "",
            "online": 1
        },
        {
            "id": "23243",
            "name": "Joshua Post",
            "email": "joshua@somedomain.com",
            "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": "justin@somedomain.com",
            "time": "57m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "23111",
            "name": "Jesse Wolf",
            "email": "jesse@somedomain.com",
            "time": "1h 14m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "customer",
            "online": 0
        },
        {
            "id": "21780",
            "name": "Alejandro Cordova",
            "email": "alejando@somedomain.com",
            "time": "1h 19m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "10182",
            "name": "Juan Box.",
            "email": "juan@somedomain.com",
            "time": "3h 44m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "staff",
            "online": 0
        },
        {
            "id": "2072",
            "name": "CPA Business Name",
            "email": "cpa@somedomain.com",
            "time": "6h 59m",
            "status": 0,
            "link": "urllinktoticket",
            "color": "yellow",
            "type": "customer",
            "online": 0
        }
    ],
    "superadmin": 0,
    "self": 0,
    "elapsed": "0.403",
    "message": ""
}