/api/v1/healthHealth#
Check that the daemon is alive.
Returns {"status": "ok"} whenever the daemon is serving requests. It does not
check the radio: use /api/v1/chain for that.
Responses
200Process is aliveapplication/json
statusrequiredstring
Request
curl "http://192.168.2.1:8080/api/v1/health"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/health")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/health"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"status": "string"
}/api/v1/metricsMetrics#
The daemon's Prometheus metrics, as JSON, on the API port.
The same metrics as the Prometheus exposition on the observability port, in a form a browser client can use directly. Returns 404 when this daemon has no metrics exporter, rather than an empty list.
Responses
200OKapplication/json
array of MetricFamilyDRO
Request
curl "http://192.168.2.1:8080/api/v1/metrics"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/metrics")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/metrics"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
[
{}
]/api/v1/system/capabilitiesCapabilities#
Get device capabilities.
Lists the supported modulations and symbol rates, the number of receive and
transmit channels, and whether the daemon is running in simulation mode
(mock).
Responses
200OKapplication/json
modulationsrequiredarray of string
Supported modulations (strings matching the profile enum).
rx_channels requiredinteger · int32
Number of RX channels exposed by the platform.
tx_channels requiredinteger · int32
Number of TX channels exposed by the platform.
mockrequiredboolean
true when the daemon runs against simulated hardware.
symbol_rates requiredarray of SymbolRateDRO
The symbol rates this modem supports, plus the ones it cannot produce
(listed with available: false and the bound they hit).
The set is fixed by the hardware: each rate is the AD9361 sample rate divided by 4 samples per symbol and by an interpolation factor of 1 to 32. Clients should offer these values rather than a free-form rate.
SymbolRateDRO · 6 fields
baudrequirednumber · double
The exact rate in baud. May be fractional (e.g. 39 062.5); it is not rounded.
labelrequiredstring
As an operator writes it, e.g. "39.063 ksym/s".
availablerequiredboolean
False when this rate cannot be produced at all.
ad9361_rate_sps integer · int64 · nullable
What the AD9361 must be clocked at to realise it. null when unavailable.
interpinteger · int32 · nullable
The interpolation factor that realises it. null when unavailable.
unavailable_reason string · nullable
Which bound it hits. Present exactly when available is false.
Request
curl "http://192.168.2.1:8080/api/v1/system/capabilities"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/system/capabilities")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/system/capabilities"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"modulations": [
"string"
],
"rx_channels": 0,
"tx_channels": 0,
"mock": true,
"symbol_rates": [
{
"baud": 0.0,
"label": "string",
"available": true,
"ad9361_rate_sps": 0,
"interp": 0,
"unavailable_reason": "string"
}
]
}/api/v1/system/clocksClocks#
Get clock status.
Reports the device's main clocks. enable and prepare tell whether a clock is
running; rate_hz is a nominal value reported even for a stopped clock.
available is false when clock information cannot be read on this system.
Responses
200OKapplication/json
availablerequiredboolean
False when the clock tree cannot be read on this system, which is distinct from an empty clock list.
sourcerequiredstring
clocksrequiredarray of ClockDRO
ClockDRO · 4 fields
namerequiredstring
enablerequiredinteger · int32
Non-zero when the clock is enabled. Use this, not rate_hz, to tell whether
the clock runs.
preparerequiredinteger · int32
Authoritative: non-zero means it is prepared.
rate_hz requiredinteger · int64
Nominal rate in Hz, computed from the parent clock and dividers. Reported even when the clock is stopped: informational only.
Request
curl "http://192.168.2.1:8080/api/v1/system/clocks"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/system/clocks")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/system/clocks"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"available": true,
"source": "string",
"clocks": [
{
"name": "string",
"enable": 0,
"prepare": 0,
"rate_hz": 0
}
]
}/api/v1/system/statusStatus#
Get system status.
Returns the daemon uptime, the hardware access mode, and the health of the daemon's services.
Responses
200OKapplication/json
uptime_seconds requiredinteger · int64
pl_driver requiredstring
Hardware access mode: mock when the daemon runs without the radio hardware, otherwise the
identifier of the hardware driver in use.
servicesrequiredarray of ServiceStatusDRO
ServiceStatusDRO · 2 fields
namerequiredstring
healthyrequiredboolean
storagerequiredStorageDRO · 4 fields
run_reports requiredStorageLocationDRO · 3 fields
pathstring · nullable
null when this is not kept at all.
persistentrequiredboolean
false when it is lost at the next reboot; note then says why.
notestring · nullable
run_reports_kept requiredinteger
How many runs keep their full report; older runs keep their summary only.
run_reports_max_bytes integer · int64 · nullable
The space the full reports may take, in bytes, when bounded.
campaign_state requiredStorageLocationDRO · 3 fields
pathstring · nullable
null when this is not kept at all.
persistentrequiredboolean
false when it is lost at the next reboot; note then says why.
notestring · nullable
Request
curl "http://192.168.2.1:8080/api/v1/system/status"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/system/status")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/system/status"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"uptime_seconds": 0,
"pl_driver": "string",
"services": [
{
"name": "string",
"healthy": true
}
],
"storage": {
"run_reports": {
"path": "string",
"persistent": true,
"note": "string"
},
"run_reports_kept": 0,
"run_reports_max_bytes": 0,
"campaign_state": {
"path": "string",
"persistent": true,
"note": "string"
}
}
}/api/v1/versionVersion#
Get version information.
Returns the daemon version, the API version, the release identifier, and the identifier of the hardware design loaded on the device.
Responses
200OKapplication/json
firmwarerequiredstring
Version of the stellarlinkd daemon.
apirequiredstring
API contract version (v1).
fpgastring · nullable
Identifier of the hardware image currently loaded on the device, read live.
null in simulation (mock) mode.
releaserequiredstring
Release this daemon was built for, or "unreleased". It should equal the
release you deployed.
auth_required requiredboolean
Whether changes (POST, PUT, DELETE) and the transmit stream need
an API token on this unit ([api] auth_required). Lets a client — the
web console first — ask for a token instead of failing on a 401.
Request
curl "http://192.168.2.1:8080/api/v1/version"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/version")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/version"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"firmware": "string",
"api": "string",
"fpga": "string",
"release": "string",
"auth_required": true
}