Skip to main content

Devices

Gateways, access points, switches, and Starlink terminals synced from your integrations. A terminal's location fields (latitude, longitude, administrativeArea, locality) come from its service address; gateways, access points, and switches take them from the Starlink terminal serving the same site.

The device object​

  • projectNamestring

    The project or workspace name this device belongs to.

  • siteCodestring

    Unique site identifier for the device.

  • siteNamestring

    Human-readable site name.

  • deviceNamestring

    Display name of the device.

  • deviceTypestring

    Gateway, Access Point, Switch, or Terminal (a Starlink dish).

  • serialNumberstring | null

    Hardware serial number.

  • ipAddressstring | null

    Last known IP address.

  • macAddressstring | null

    MAC address.

  • gatewayIdstring | null

    Serial number of the upstream gateway this device connects through. For a gateway row this is its own serial; for downstream access points and switches this is the nearest gateway in the uplink chain. null for a terminal. Matches gatewayId on /v1/connected_clients.

  • gatewayMacAddressstring | null

    MAC address of the upstream gateway.

  • latitudefloat | null

    Device latitude coordinate.

  • longitudefloat | null

    Device longitude coordinate.

  • administrativeAreastring | null

    Province, state, or region.

  • localitystring | null

    City or locality.

  • uptimeinteger | null

    Current uptime in seconds.

  • alertsstring | null

    Active alert codes from the device, if any.


List all devices GET /v1/devices​

Returns devices accessible by your token, paginated.

Query parameters​

  • pageSizeinteger

    Number of records to return. Default 50, min 1, max 500.

  • pageTokenstring

    Cursor from the previous response's pageInfo.nextPageToken. Omit for the first page.

  • namestring

    Matches any part of the device's name (deviceName), ignoring case. For example, name=barangay returns every device whose name contains "barangay". A device with no name never matches. Send the same name with each pageToken when paging a filtered list.

  • excludeTerminalsboolean

    Leaves out Starlink terminals, returning only gateways, access points, and switches. Defaults to false.

  • exclude_endedboolean

    Omits devices whose Starlink service line has ended (terminated subscriptions). Defaults to true. Pass exclude_ended=false to include them.

  • workspaceIdstring

    Limit the response to one workspace. Use an id returned by GET /v1/workspaces: the token's own workspace or one nested under it. Leave it out to include every workspace your token can reach. An id your token can't reach returns 403.

Pagination​

The response includes a pageInfo object. Pass pageInfo.nextPageToken as pageToken in the next request to retrieve the following page. When hasNextPage is false you have reached the end.

GET/v1/devices
curl "https://polaris.revlv.com/v1/devices?pageSize=100&name=Barangay%20Hall" \
-H "Authorization: Bearer {token}"
Response
{
"data": [
{
"projectName": "Main Fleet",
"siteCode": "REV-001-001",
"siteName": "Site A",
"deviceName": "Site A Gateway",
"deviceType": "Gateway",
"serialNumber": "0000000000-00000000",
"ipAddress": "192.168.1.1",
"macAddress": "aa:bb:cc:dd:ee:ff",
"gatewayId": "0000000000-00000000",
"gatewayMacAddress": "aa:bb:cc:dd:ee:ff",
"latitude": 10.5924,
"longitude": 122.6904,
"administrativeArea": "Iloilo",
"locality": "San Lorenzo",
"uptime": 86400,
"alerts": null
}
],
"pageInfo": {
"hasNextPage": true,
"nextPageToken": "ZjQ3YWMxMGItNThjYy00MzcyLWE1NjctMGUwMmIyYzNkNDc5"
}
}