Skip to main content
GET
/
v1
/
monitoring
/
last-seen
/
{siteId}
Get Last Seen Time
curl --request GET \
  --url https://api.altostrat.io/v1/monitoring/last-seen/{siteId} \
  --header 'Authorization: Bearer <token>'
{
  "last_seen": "2 minutes ago"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

siteId
string<uuid>
required

The unique identifier for the site.

Example:

"d8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8"

Response

The last seen time for the device.

last_seen
string | null

A human-readable string indicating how long ago the device last checked in.

Example:

"2 minutes ago"