Skip to main content
GET
/
sites
/
recent
List Recent Sites
curl --request GET \
  --url https://api.altostrat.io/sites/recent \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a",
    "pid": "site_2m3h5n7k9j8g7f6e5d4c3b2a1",
    "name": "Main Office Router",
    "model": "CCR2004-1G-12S+2XS",
    "version": "7.15.1",
    "ip_address": "203.0.113.54",
    "online": true,
    "last_seen": "just now",
    "accessed_at": "2025-10-29T11:47:50Z"
  }
]

Authorizations

Authorization
string
header
required

Authenticate requests by providing a JSON Web Token (JWT) in the Authorization header. Example: Authorization: Bearer <YOUR_JWT>

Response

200 - application/json

A list of recently accessed sites.

id
string<uuid>

The unique identifier (UUID) for the site.

Example:

"9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a"

pid
string | null

A time-sortable, prefixed unique identifier for the site.

Example:

"site_2m3h5n7k9j8g7f6e5d4c3b2a1"

name
string | null

The user-defined name for the site.

Example:

"Main Office Router"

model
string | null

The model of the MikroTik device.

Example:

"CCR2004-1G-12S+2XS"

version
string | null

The RouterOS software version.

Example:

"7.15.1"

ip_address
string<ipv4> | null

The last known public IP address of the device.

Example:

"203.0.113.54"

online
boolean

Indicates if the site is currently online.

Example:

true

last_seen
string | null

A human-readable string indicating when the last heartbeat was received.

Example:

"just now"

accessed_at
string<date-time>

The timestamp when the user last accessed this site.

Example:

"2025-10-29T11:47:50Z"