# API: Get clients list

# getClients

Get list of all clients. List is divided into pages, size of which is changeable in HostBill configuration section

TIP

This API call uses pagination for results.

# Optional parameters

Parameter Description
page Which page to return

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getClients

# PHP Samples

# Response

{
    "success": true,
    "clients": [
        {
            "id": "8",
            "firstname": "Jack",
            "lastname": "Black",
            "datecreated": "2011-11-12",
            "email": "[email protected]",
            "companyname": "",
            "services": 2
        },
        {
            "id": "6",
            "firstname": "Mike",
            "lastname": "Blue",
            "datecreated": "2011-11-12",
            "email": "[email protected]",
            "companyname": "",
            "services": 3
        },
        {
            "id": "4",
            "firstname": "Jonah",
            "lastname": "Hamon",
            "datecreated": "2011-10-28",
            "email": "[email protected]",
            "companyname": "",
            "services": 8
        },
        {
            "id": "3",
            "firstname": "Administrator",
            "lastname": "Hostbill",
            "datecreated": "2011-10-28",
            "email": "[email protected]",
            "companyname": "",
            "services": 1
        },
        {
            "id": "2",
            "firstname": "Random",
            "lastname": "Customer",
            "datecreated": "2011-10-05",
            "email": "[email protected]",
            "companyname": "companyname",
            "services": 13
        },
        {
            "id": "1",
            "firstname": "John",
            "lastname": "Doe",
            "datecreated": "2011-09-24",
            "email": "[email protected]",
            "companyname": "",
            "services": 26
        }
    ],
    "call": "getClients",
    "server_time": 1323444040
}
Last Updated: 9/30/2024, 2:47:06 PM