Index of all users

GET /admin/users

Example Request

GET /api/v1/admin/users HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b

Response Structure

  • data: array[object]
    • id: int
    • first_name: string
    • last_name: string
    • email: string
    • telephone_number: string
    • mobile_number: string
    • is_active: bool
    • is_enabled: bool
    • last_login: string ("2020-12-31 00:00:00")
    • created_at: string ("2020-12-31 00:00:00+00:00")
  • meta: object
    • first_url: string
    • last_url: string
    • next_url: string
    • previous_url: string
    • total: int
    • per_page: int
    • current_page: int
    • last_page: int
    • from: int
    • to: int

Example Response

{
  "data":[
    {
      "id":2,
      "first_name":"Reseller Admin",
      "last_name":"Example",
      "email":"reselleradmin@example.com",
      "telephone_number":null,
      "mobile_number":null,
      "is_active":true,
      "is_enabled":true,
      "last_login":"2018-04-25 14:57:11",
      "created_at":"2018-04-11T10:10:17+00:00"
    },
    {
      "id":3,
      "first_name":"Reseller Staff",
      "last_name":"Example",
      "email":"resellerstaff@example.com",
      "telephone_number":null,
      "mobile_number":null,
      "is_active":true,
      "is_enabled":true,
      "last_login":null,
      "created_at":"2018-04-11T10:10:17+00:00"
    }
  ],
  "meta":{
    "first_url":"https://tph.io/api/v1/admin/users",
    "last_url":"https://tph.io/api/v1/admin/users?page=1",
    "next_url":"https://tph.io/api/v1/admin/users?page=1",
    "previous_url":"https://tph.io/api/v1/admin/users?page=1",
    "total":16,
    "per_page":50,
    "current_page":1,
    "last_page":1,
    "from":1,
    "to":16
  }
}