Vega
API Reference

Code examples

Read Link Quality and send a pass from Python and JavaScript.

The API is plain JSON over HTTPS, so any HTTP client works. These examples read the key from the VEGA_API_KEY environment variable; never hard-code it.

Python

import os
import requests

BASE = "https://admin.vega.space/api/v1/frontend"
HEADERS = {"Authorization": f"Bearer {os.environ['VEGA_API_KEY']}"}
ORG = 1556

resp = requests.get(f"{BASE}/organizations/{ORG}/polaris/passes", headers=HEADERS, timeout=60)
resp.raise_for_status()
for p in resp.json()["data"]["passes"]:
    peak = max((v for v in p["seconds"]["esn0_db"] if v is not None), default=None)
    print(p["started_at"], p["satellite_name"], p["station_name"], p["source"], peak)

JavaScript

const BASE = "https://admin.vega.space/api/v1/frontend";
const headers = { Authorization: `Bearer ${process.env.VEGA_API_KEY}` };
const ORG = 1556;

const resp = await fetch(`${BASE}/organizations/${ORG}/polaris/passes`, { headers });
if (!resp.ok) throw new Error(`${resp.status} ${await resp.text()}`);
const { data } = await resp.json();
for (const p of data.passes) {
	const peak = Math.max(...p.seconds.esn0_db.filter((v) => v !== null));
	console.log(p.started_at, p.satellite_name, p.station_name, p.source, peak);
}

Send a pass

Python (continues from the example above)

pass_ = {
    "id": "pass-123",
    "norad_id": 38763,
    "station": {"name": "Your station"},  # a station Vega has for you, by name or id
    "frequency_hz": 437405000,
    "bandwidth_hz": 20000,
    "modulation": "GMSK",
    "symbol_rate_baud": 9600,
    "measurements": [  # in your provider's units; Vega converts to Es/N0
        {"t": "2026-11-06T04:13:02Z", "c_n0_dbhz": 49.2},
        {"t": "2026-11-06T04:13:03Z", "c_n0_dbhz": 49.8},
    ],
}

resp = requests.post(
    f"{BASE}/organizations/{ORG}/forwarded_passes",
    params={"dry_run": "true"},  # remove once the dry run is clean
    json={"pass": pass_},
    headers=HEADERS,
    timeout=60,
)
if resp.status_code == 422:
    for problem in resp.json()["errors"]:
        print("Invalid:", problem["field"], problem["message"])
resp.raise_for_status()
data = resp.json()["data"]
print(data)
# Once sent for real (202), check later whether processing succeeded:
# requests.get(data["status_url"], headers=HEADERS).json()["data"]["status"]

JavaScript

const pass = {
	id: "pass-123",
	norad_id: 38763,
	station: { name: "Your station" },
	frequency_hz: 437405000,
	bandwidth_hz: 20000,
	modulation: "GMSK",
	symbol_rate_baud: 9600,
	measurements: [
		{ t: "2026-11-06T04:13:02Z", c_n0_dbhz: 49.2 },
		{ t: "2026-11-06T04:13:03Z", c_n0_dbhz: 49.8 },
	],
};

// Remove ?dry_run=true once the dry run is clean.
const sent = await fetch(`${BASE}/organizations/${ORG}/forwarded_passes?dry_run=true`, {
	method: "POST",
	headers: { ...headers, "Content-Type": "application/json" },
	body: JSON.stringify({ pass }),
});
const body = await sent.json();
if (!sent.ok)
	throw new Error(body.errors?.map((e) => `${e.field}: ${e.message}`).join("; ") ?? sent.status);
console.log(body.data); // after a real send (202), GET body.data.status_url to see the outcome

On a 5xx, retry with backoff and send the same pass id: Vega never stores a pass twice. See Sending passes for every field and reply.

Building the connection with an AI coding agent? Pass Data → Connect your passes in the app has a ready-made prompt for it, with your organization's endpoint filled in.

On this page