List All Users

To retrieve a list of all of the users, send a GET request to /v1/users

GET https://beta.picosbs.com/api /v1/users

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

X-API-Token

<token>

Response

{
    "success": true,
    "message": "Business Users fetched successfully",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "username": "admin",
                "role_id": 1,
                "business_id": 1,
                "default_location_id": 2,
                "access_location_ids": "a:1:{i:0;i:0;}",
                "email": "[email protected]",
                "personal_info_id": 1,
                "is_active": 1,
                "created_at": "2025-03-15T13:27:21.000000Z",
                "updated_at": "2025-03-15T13:27:21.000000Z"
            },
            {
                "id": 2,
                "username": "cashier",
                "role_id": 2,
                "business_id": 1,
                "default_location_id": 1,
                "access_location_ids": "a:1:{i:0;s:1:\"1\";}",
                "email": null,
                "personal_info_id": 2,
                "is_active": 1,
                "created_at": "2025-03-19T16:17:53.000000Z",
                "updated_at": "2025-03-19T16:17:53.000000Z"
            },
        ],
        "first_page_url": "https://beta.picosbs.com/api/v1/users?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://beta.picosbs.com/api/v1/users?page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "https://beta.picosbs.com/api/v1/users?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://beta.picosbs.com/api/v1/users",
        "per_page": 10,
        "prev_page_url": null,
        "to": 4,
        "total": 4
    }
}

Last updated