This page describes all REST endpoints provided by Meshview.
Returns a list of mesh nodes.
| Parameter | Description |
|---|---|
| role | Filter by node role |
| channel | Filter by channel |
| hw_model | Hardware model filter |
| days_active | Only nodes seen within X days |
/api/nodes?days_active=3
Fetch packets with many filters. Returns decoded packet data.
| Parameter | Description |
|---|---|
| packet_id | Return exactly one packet |
| limit | Max number of results (1–100) |
| since | Only packets newer than import_time_us |
| from_node_id | Filter by sender node |
| to_node_id | Filter by destination node |
| node_id | Legacy: match either from or to |
| portnum | Filter by port number |
| contains | Substring filter for payload |
/api/packets?from_node_id=123&limit=100
Returns list of gateways that heard the packet (RSSI/SNR/hops).
/api/packets_seen/3314808102
Returns aggregated packet statistics for a node or globally.
| Parameter | Description |
|---|---|
| period_type | "hour" or "day" |
| length | How many hours/days |
| node | Node ID for combined sent+seen stats |
| from_node | Filter by sender |
| to_node | Filter by receiver |
| portnum | Filter by port |
| channel | Filter by channel |
/api/stats?node=1128180332&period_type=day&length=1
Returns total packets and total packet_seen entries. When no filters are provided, it returns global totals. When filters are specified, they narrow the time, channel, direction, or specific packet.
| Parameter | Description |
|---|---|
| period_type | "hour" or "day" |
| length | Number of hours or days (depends on period_type) |
| channel | Filter by channel |
| from_node | Only packets sent by this node |
| to_node | Only packets received by this node |
| packet_id | Filter seen counts for specific packet_id |
/api/stats/count?from_node=1128180332&period_type=day&length=1
Returns traceroute and/or neighbor edges for graph rendering.
| Parameter | Description |
|---|---|
| type | "traceroute", "neighbor", or omitted for both |
/api/edges?type=neighbor
Returns Meshview configuration (site, MQTT, cleanup, etc.).
/api/config
Returns translated text for the UI.
| lang | Language code (e.g. "en") |
|---|---|
| section | Optional UI section (firehose, map, top...) |
/api/lang?lang=en§ion=firehose
Returns API + database status.
Returns Meshview version and Git revision.
Meshview API — generated documentation