/hubs/{hub_id}/logs
Read a hub's logs
Needs the
hubs:read
scope.
The hub's most recent log lines (firmware, radio, network), oldest first, read live from the hub. See logs and black box.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
hub_id
|
path |
string
|
The hub ID printed on the hub (lowercase). |
lines
|
query |
integer, 1–500, default 200
|
How many lines, 1 to 500. Default 200. |
Responses
200
The log.
Errors
invalid_request
The request is malformed or a field is invalid.
unauthenticated
Missing, malformed, revoked or unknown API key.
insufficient_scope
The key lacks the scope this operation needs.
not_found
No such resource, or it is not your organization's.
hub_offline
hub_offline: the hub is not connected. hub_unavailable: it is connected but cannot do it now, for example its radio is down or it does not know the time yet.