Index of API user accounts

GET /accounts

Example Request

GET /api/v1/accounts 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
    • suspended: bool
    • archived: bool
    • created_at: string ("2020-01-01T00:00:00+00:00")
    • updated_at: string ("2020-01-01T00: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":"Example",
      "last_name":"User",
      "suspended":false,
      "archived":false,
      "created_at":"2018-04-27T15:10:27+00:00",
      "updated_at":"2018-04-27T15:10:27+00:00"
    }
  ],
  "meta":{
    "first_url":"https://tph.io/api/v1/accounts",
    "last_url":"https://tph.io/api/v1/accounts?page=1",
    "next_url":"https://tph.io/api/v1/accounts?page=1",
    "previous_url":"https://tph.io/api/v1/accounts?page=1",
    "total":1,
    "per_page":25,
    "current_page":1,
    "last_page":1,
    "from":1,
    "to":1
  }
}