Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hologram.io/llms.txt

Use this file to discover all available pages before exploring further.

How to determine device’s location via the REST API

You can query a device to retrieve its most recent location approximation via the REST API. The response includes a lastsession object with latitude and longitude when the network provides it.
Note: If you’re new to APIs, use a REST client and include your API key in the Authorization header. Pagination is supported via limit and startafter.
1

Get device details

Replace YOUR_DEVICE_ID with the integer device ID.
curl -X GET \
  'https://dashboard.hologram.io/api/1/devices/YOUR_DEVICE_ID' \
  -u apikey:YOUR_HOLOGRAM_API_KEY
Device details showing last session location
Warning: Not every network provides location information, and not every session includes it. For historical data, use session history or data usage by session reports.