Ver el historial de conexión

Usalo para ver cuándo se conectó y desconectó un número, del evento más reciente al más antiguo, por ejemplo para investigar cortes.

GET
/devices/{device}/connection-history

Lectura · requiere el permiso accounts:read.

Listado · perPage de 1 a 100 (por defecto 25) · orden fijo: created_at descendente · no acepta parámetros de orden.

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de la ruta

device*integer

The device ID

Parámetros de consulta

orderBy?string
orderByMethod?string
perPage?integer

Cuerpo de la respuesta

Paginated set of DeviceConnectionEventResource

application/json
  1. response
data*array<>
links*
meta*
curl -X GET "https://example.com/devices/0/connection-history"
{  "data": [    {      "id": 0,      "phone": "string",      "event": 0,      "created_at": "string"    }  ],  "links": {    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "links": [      {        "url": "string",        "label": "string",        "active": true      }    ],    "path": "string",    "per_page": 0,    "to": 1,    "total": 0  }}