List subscriber sessions

GET p8auth/subscribers/{id}/sessions

Example Request

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

Response Structure

  • data: array[object]
    • username: string
    • session_id: string
    • nas_ip: string
    • client_ip: string
    • duration: string
    • sessions: array[object]
      • download: int
      • upload: int
      • total: int
      • cause: string

Example Response

{
  "data": [
    {
      "username":"1212121212",
      "session_id":"sessionid",
      "nas_ip":"10.10.10.1",
      "client_ip":"11.11.11.1",
      "duration":"100",
      "sessions":[
        {
          "download":"10485760",
          "upload":"10485760",
          "total":"20971520",
          "cause":"disconnected"
        }
      ]
    }
  ]
}