Skip to main content

Topology

GET /topology returns your fleet as declared and as observed: the latest network config, and the newest value of each telemetry field per antenna and satellite within a freshness window.

GET /topology

Auth: x-api-key, scope topology:read. config is filled when the key also has config:read, config:write, or workflows:write, and is null otherwise. See Authentication.

Query parameters​

ParameterTypeDefaultDescription
as_of_utcISO 8601 datetimenowEnd of the read window, exclusive. A sample exactly at this timestamp is outside the window.
freshness_secondsfloat, 1 to 3600300Look-back window. Only samples within freshness_seconds before as_of_utc are considered.
ground_station_id, ground_antenna_id, satellite_idstring, repeatablenoneRestrict state to these IDs.
layersstringnoneContext layers to add to state, comma-separated: weather, ssa.

Semantics​

  • Latest per link. Each antenna, satellite, radio and dataset with at least one record inside the window returns one row in state: the newest value of each field, stamped with the newest record's time. Links silent for longer than the window are absent; treat absence as stale, not deleted.
  • Config alongside state. config is the latest network config, or null when none has been uploaded.
  • No pagination. There is no cursor or offset. Use the ID filters and freshness window to size the response.

Response​

{
"config": {
"version": 2,
"document": { "ground_stations": { ... }, "satellites": { ... } }
},
"state": [
{
"measurement": "telemetry_v2",
"time": "2026-07-09T14:31:42Z",
"tags": { "ground_station_id": "gs-1", "ground_antenna_id": "ant-1", "satellite_id": "sat-1" },
"fields": { "elevation_deg": 22.8, "c_n0_dbhz": 62.4, "carrier_locked": true, "contact_id": "pass-0042" },
"field_times": { "elevation_deg": "2026-07-09T14:31:42Z", "c_n0_dbhz": "2026-07-09T14:31:42Z", "carrier_locked": "2026-07-09T14:31:12Z", "contact_id": "2026-07-09T14:31:12Z" }
}
],
"declined": {}
}
FieldDescription
config.versionThe version of the latest network config.
config.documentThe document, as GET /topology/config returns it.
state[].timeTimestamp of the newest record for this link.
state[].tagsThe link's ground_station_id, ground_antenna_id and satellite_id, plus radio_id and dataset when the records name them.
state[].fieldsThe newest value of each field.
state[].field_timesWhen each field's value in fields was recorded. Fields can come from different records, so check a value's own time before treating it as current.
state[] with typeAn entity of a requested layer instead of a link. A weather entity has ground_station_id, rain_rate_mm_h, attenuation_db, at and source.
declinedEach requested layer that has nothing to add, keyed by layer, with the reason, such as "ssa": "unavailable:not_served".

Example​

curl -sS \
-H "x-api-key: $CONSTELLATION_API_KEY" \
"https://api.constellation.space/topology?satellite_id=sat-1&freshness_seconds=900&as_of_utc=2026-07-09T14:32:00Z"

Replay: stepping as_of_utc​

To replay history, step as_of_utc through a time range at a fixed interval and issue one request per step. Each response is the fleet as it was known at that instant.

for t in 2026-07-09T12:00:00Z 2026-07-09T12:05:00Z 2026-07-09T12:10:00Z; do
curl -sS -H "x-api-key: $CONSTELLATION_API_KEY" \
"https://api.constellation.space/topology?freshness_seconds=300&as_of_utc=${t}"
done

Choose freshness_seconds for your sampling cadence and check each row's time. Budget replay loops against the rate limits.

For a few named links, use GET /topology/series instead: one request returns the whole window.

Series reads​

GET /topology/series

Auth: x-api-key, scope topology:read.

GET /topology/series returns the telemetry records written between two times. It is the read path for POST /telemetry.

Query parameters​

ParameterTypeDefaultDescription
startISO 8601 datetimenoneRequired. Range start, inclusive.
endISO 8601 datetimenoneRequired. Range end, exclusive.
ground_station_id, ground_antenna_id, satellite_idstring, repeatablenoneRestrict to these IDs.
fieldstring, repeatableall fieldsRestrict to these field names.
interval15s, 30s, 1m, 5m, 15m, 1hnoneAggregation window. Required beyond a one-hour raw span.
aggmean, min, max, lastmeanAggregation function, used with interval. Aggregation drops booleans and strings.

Response​

A JSON array of records with measurement, time, tags and fields, as in state in GET /topology but without field_times. A raw read returns each record as written; an aggregated read returns one record per link and window, labeled by the window's start.

Series errors​

StatusBodyCause
400{"error": "invalid_input", "field": "<field>"}An ID or field name the store rejects, or an unsupported interval or agg.
422{"error": "invalid_range", ...}end is not after start.
422{"error": "interval_required"}Raw span over one hour. Retry with an interval.
422{"error": "too_many_points"}A series has more points than one read returns. Narrow the window or the IDs.
503{"error": "telemetry_unavailable", ...}The time-series store is temporarily unavailable. Retry after the delay.

Passes​

GET /topology/passes?from=...&to=...&step_s=...

Auth: x-api-key, scope topology:read.

Passes are part of workflows. Where workflows are not on, this route answers 404 workflows_not_enabled.

GET /topology/passes lists the passes between from and to, past or future, computed from your satellites' orbits and your antennas' elevation masks and sampled every step_s seconds. The window is sampled from from up to, not at, to. A window shorter than a step is refused with 422 window_shorter_than_step. Filter with repeated satellite_id and antenna_id.

A window over 10,080 steps is refused with 422 window_too_long. More than 200,000 link steps (satellites times antennas times steps) is refused with 422 too_many_link_steps. An id outside your network config is refused with 422 unknown_antennas or 422 unknown_satellites, listing it in ids. from and to need a UTC offset (422 times_need_a_utc_offset), and to must be after from (422 to_must_be_after_from). Below Operator, a listing over more than 2 satellites is refused with 403 plan_required. With no network config, the answer is 404 no_network_config.

{
"network_config_version": 2,
"step_s": 60,
"items": [
{
"pass_id": "...",
"link_id": "ant-1:sat-1",
"ground_station_id": "gs-1",
"antenna_id": "ant-1",
"satellite_id": "sat-1",
"aos_utc": "2026-07-09T14:20:00+00:00",
"los_utc": "2026-07-09T14:31:00+00:00",
"duration_s": 660.0,
"max_elevation_deg": 41.3,
"source": "computed"
}
],
"declined": {}
}

A pass keeps its pass_id across windows. A pass already in view at from starts there.

A pass on an antenna of a linked ground network (a ground_network dataset) also carries a booking facet, read from what the network last answered, so this route never calls a network. A pass on an antenna with no link has none.

"booking": {
"state": "bookable",
"offers": [{ "link": "ds_...", "network": "KSAT", "slot_id": "...", "price": { "amount": 4.5, "currency": "USD", "unit": "per_minute", "source": "contract" }, "cancel_deadline_utc": "2026-07-09T14:05:00Z" }],
"held": null,
"networks": ["KSAT"]
}
stateMeaning
bookableThe network sells at least one slot for the pass; offers lists them, cheapest first, then earliest deadline
bookedYou hold a booking for it; held names it with its link, network, booking_id, cancel_deadline_utc and state
unavailableThe network publishes availability and sells no slot for it, and you hold none
unknownThe network publishes no availability and you hold no booking for it

link is the ground network dataset's id and network its name; networks names every link on the antenna. Booking and cancelling happen in the network's own system.

Scenarios​

POST /topology/scenarios stores a what-if overlay on your network config, such as antennas taken down or extra attenuation in dB per antenna, and returns a scenario_id for prediction workflows to run against. Extra attenuation is added to the weather lane's fade for that antenna, on top of the climatology or the weather model's answer, and the lane's source ends in +scenario. GET /topology/scenarios lists them. Writing needs config:write, and listing needs config:read or config:write. Where workflows are not on, both answer 404 workflows_not_enabled.

The body takes name (required), antennas_down, stations_down, weather_quantile (p50 or p90), extra_attenuation_db (antenna ID to dB, not negative), add_antennas and add_satellites, each with at most 1,000 entries. A stored scenario answers 201.

Delete a scenario​

DELETE /topology/scenarios/{scenario_id} deletes a scenario and answers 204. It needs config:write. A run that names it from then on is 404 unknown_scenario; the runs already made against it stay readable by run_id. An ID that is not one of your scenarios is 404 unknown_scenario.

curl --fail-with-body -sS -X DELETE \
-H "x-api-key: $CONSTELLATION_API_KEY" \
"https://api.constellation.space/topology/scenarios/$SCENARIO_ID"

Errors​

StatusBodyCause
400{"error": "invalid_input", "field": "<field>"}An ID the store rejects, or an unknown layer in layers (field is layers).
422{"error": "validation_error", "detail": [...]}Unparseable as_of_utc, or freshness_seconds outside 1 to 3600.
401 / 403auth_failed / insufficient_scopeKey invalid, or the key lacks topology:read. See Authentication.
429rate_limited or auth_lockoutSee Errors and limits.
503{"error": "telemetry_unavailable", "upstream": "influx", "retry_after_seconds": 5}The time-series store is temporarily unavailable. Retry after the delay.

Next: Predictions, forecasts computed from the same telemetry.