Index of subscribers

GET p8auth/subscribers

Example Request

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

Response Structure

  • data: array[object]
    • id: int
    • reseller: string
    • company: string
    • username: string
    • product: string
    • network: string
    • ip_address: string
    • provider: string
    • sim_number: string
    • is_capped: bool
    • is_suspended: bool
    • has_schedule: bool
    • status: string
    • has_quota: bool
    • quota_is_capped: bool
    • created_at: string ("2020-01-01T00:00:00+00:00")
    • updated_at: string ("2020-01-01T00:00:00+00:00")
    • labels: array[object]
      • data: array[object]
        • id: int
        • name: string
        • type_id: int
  • 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": 3,
      "reseller": "Example Reseller",
      "company": "Example Customer",
      "username": "1212121212",
      "product": "Example APN Product",
      "network": "Network 1",
      "ip_address": "192.168.0.2",
      "provider": "Provider 1",
      "sim_number": "0123456789",
      "is_capped": false,
      "is_suspended": false,
      "has_schedule": false,
      "status": "Enabled",
      "has_quota": false,
      "quota_is_capped": false,
      "created_at": "2018-04-24T16:13:35+00:00",
      "updated_at": "2018-04-25T10:35:24+00:00",
      "labels": {
        "data": [
          {
            "id": 1,
            "name": "Label 1",
            "type_id": 1
          }
        ]
      }
    },
  ]
  "meta": {
    "first_url": "https://tph.io/api/v1/p8auth/subscribers",
    "last_url": "https://tph.io/api/v1/p8auth/subscribers?page=1",
    "next_url": "https://tph.io/api/v1/p8auth/subscribers?page=1",
    "previous_url": "https://tph.io/api/v1/p8auth/subscribers?page=1",
    "total": 1,
    "per_page": 50,
    "current_page": 1,
    "last_page": 1,
    "from": 1,
    "to": 1
  }
}