{"openapi":"3.1.0","info":{"title":"SpaceDebris API","version":"0.1.0","summary":"Public space-debris data, SGP4 conjunction screening and AI assessments.","description":"Public REST API behind the SpaceDebris dashboard. No operation needs credentials.\n\n**Cost.** 8 of the 14 operations are deterministic and make no AI call. Most of them pass public data through: /api/debris and /api/iss relay Space-Track.org element sets and CDMs, /api/spaceweather relays NOAA SWPC indices (deriving the G-scale and a drag regime), and /api/health and /api/openapi report subsystem status and the OpenAPI document. Two run physics server-side: /api/screen (SGP4 conjunction screening with a 2-D probability of collision) and /api/cola (two-body ascent screened against the SGP4-propagated catalog sample). The other 6 operations are Claude-backed and spend the project's own Anthropic credits. Each operation says which it is in x-cost (deterministic | claude): please do not script the Claude-backed ones.\n\n**Rate limit.** Token buckets per client IP (IPv6: per /64). Every /api/* request spends from the general bucket: burst 120, refill 2/s (120 requests/min sustained). Expensive requests — every POST (all Claude-backed), GET /api/screen and GET /api/cola (uncached Space-Track lookup and/or up to ~20 s of server CPU per call), and GET /api/debris with `search` or with a `limit` other than 500 or 2000 (a fresh Space-Track query) — must also pass a stricter bucket: burst 20, 10 requests/min. Responses carry X-RateLimit-Tier plus X-RateLimit-Limit / X-RateLimit-Remaining of the bucket that applies; an empty bucket returns 429 { error, retryAfterSeconds } with a Retry-After header. Enforced in Edge middleware per instance — best-effort, not a global guarantee. Each operation's tier is in x-rate-limit.\n\n**CORS.** GET and HEAD responses carry Access-Control-Allow-Origin: *, and preflights asking for GET or HEAD are answered with 204 and the same header. Preflights for POST get no CORS headers, so browsers refuse cross-origin POSTs, and a POST whose Origin header names another host is rejected with 403 before it reaches a route. Server-side callers such as curl send no Origin and are unaffected.\n\n**Scope.** Screening results, Pc values, maneuver trades and COLA verdicts are estimates under stated assumptions on public Space-Track element sets — not 18 SDS CDMs, not an operational conjunction-assessment service and not flight software.\n\nResponse examples are illustrative and abbreviated. Space-Track fields are passed through as strings, exactly as Space-Track publishes them. For local development, `next dev` serves the same paths at port 3000.","license":{"name":"All rights reserved","url":"https://github.com/IQEmperor24/SpaceDebris"}},"servers":[{"url":"https://space-debris-two.vercel.app","description":"Production (Vercel)"}],"security":[],"tags":[{"name":"Catalog","description":"Space-Track gp element sets (public TLE catalog sample)."},{"name":"Risk & maneuvers","description":"Claude-backed risk scoring and maneuver planning."},{"name":"Conjunctions","description":"Public CDMs, deterministic SGP4 screening and Claude-written assessments."},{"name":"Fleet","description":"Aggregate fleet intelligence brief."},{"name":"ISS","description":"International Space Station element set and public CDMs."},{"name":"Launch","description":"Launch collision-avoidance window screening."},{"name":"Space weather","description":"NOAA SWPC geomagnetic and solar-flux indices."},{"name":"Ops","description":"Health, request budget and this document."}],"paths":{"/api/debris":{"get":{"operationId":"getDebris","summary":"Newest-epoch element-set sample (list mode) / Look up one object by name or NORAD ID (search mode)","description":"### Newest-epoch element-set sample (list mode)\n\nReturns the `limit` most recently updated objects from Space-Track's gp class (newest EPOCH first) — the sample the 3D map and every catalog panel use. All Space-Track fields are strings. The sample is dominated by recently updated payloads (Starlink); it is not the ~46,000-object catalog.\n\n**Cost:** deterministic — $0 — no Claude call. **Cache:** 10 min per limit (route) + shared per-instance Space-Track dataset cache. **Upstream:** Space-Track.org gp. **Rate limit:** general tier — burst 120, 120 requests/min per IP. Only limit 500 or 2000 (or no limit) is in the general tier; any other value is a fresh Space-Track pull and uses the expensive tier.\n\n### Look up one object by name or NORAD ID (search mode)\n\nWhen `search` is present the route switches to single-object lookup: a numeric value matches NORAD_CAT_ID, anything else is a wildcard OBJECT_NAME match ordered by newest epoch. `object` is null (HTTP 200) when nothing matches. Note the bare word ISS also matches ISS DEB objects by wildcard — use 25544 for the station.\n\n**Cost:** deterministic — $0 — no Claude call. **Cache:** 10 min per search term (route). **Upstream:** Space-Track.org gp. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Catalog"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"examples":{"debris-list":{"summary":"Newest-epoch element-set sample (list mode)","value":{"count":2000,"objects":[{"OBJECT_NAME":"ISS (ZARYA)","OBJECT_ID":"1998-067A","NORAD_CAT_ID":"25544","EPOCH":"2024-01-01T12:00:00.000000","TLE_LINE1":"1 25544U 98067A   24001.50000000  .00016717  00000-0  10270-3 0  9997","TLE_LINE2":"2 25544  51.6400 208.9163 0006703 130.5360 325.0288 15.49560532 25006","INCLINATION":"51.6400","RA_OF_ASC_NODE":"208.9163","ECCENTRICITY":"0.0006703","ARG_OF_PERICENTER":"130.5360","MEAN_ANOMALY":"325.0288","MEAN_MOTION":"15.49560532","SEMIMAJOR_AXIS":"6796.148","PERIOD":"92.930","APOAPSIS":"422.566","PERIAPSIS":"413.455"}]}},"debris-search":{"summary":"Look up one object by name or NORAD ID (search mode)","value":{"object":{"OBJECT_NAME":"ISS (ZARYA)","OBJECT_ID":"1998-067A","NORAD_CAT_ID":"25544","EPOCH":"2024-01-01T12:00:00.000000","TLE_LINE1":"1 25544U 98067A   24001.50000000  .00016717  00000-0  10270-3 0  9997","TLE_LINE2":"2 25544  51.6400 208.9163 0006703 130.5360 325.0288 15.49560532 25006","INCLINATION":"51.6400","RA_OF_ASC_NODE":"208.9163","ECCENTRICITY":"0.0006703","ARG_OF_PERICENTER":"130.5360","MEAN_ANOMALY":"325.0288","MEAN_MOTION":"15.49560532","SEMIMAJOR_AXIS":"6796.148","PERIOD":"92.930","APOAPSIS":"422.566","PERIAPSIS":"413.455"}}}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track fetch failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"deterministic","x-cost-estimate":"$0 — no Claude call","x-cache":"10 min per limit (route) + shared per-instance Space-Track dataset cache; 10 min per search term (route)","x-upstream":["Space-Track.org gp"],"x-rate-limit":[{"endpoint":"debris-list","tier":"general","burst":120,"perMinute":120,"note":"Only limit 500 or 2000 (or no limit) is in the general tier; any other value is a fresh Space-Track pull and uses the expensive tier."},{"endpoint":"debris-search","tier":"expensive","burst":20,"perMinute":10}],"parameters":[{"name":"limit","in":"query","required":false,"description":"Newest-epoch element-set sample (list mode): Rows to return. Non-numeric or ≤ 0 falls back to 500; the Space-Track client clamps to 10,000. The dashboard uses 2000 — reuse it to share the server's cached sample.","schema":{"type":"integer","default":500},"example":2000},{"name":"search","in":"query","required":false,"description":"Look up one object by name or NORAD ID (search mode): Satellite name or NORAD catalog number. Takes precedence over `limit`.","schema":{"type":"string"},"example":"25544"}]}},"/api/analyze":{"post":{"operationId":"postAnalyze","summary":"AI collision-risk score for one satellite","description":"Resolves the object on Space-Track, gathers up to 15 objects within ±100 km of its mean altitude from a 300-object sample, and asks Claude (temperature 0) for a scored risk assessment: three 0-100 bars, a threat level and plain-English advice. The resolved Space-Track row is attached as `tle` (all fields strings) so callers can chain POST /api/maneuver without a second lookup. Scores are model judgement, not a computed Pc.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.006 / call (est.). **Cache:** None at the route — every call spends tokens (context sample uses the shared Space-Track cache). **Upstream:** Space-Track.org gp, Anthropic Claude. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Risk & maneuvers"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"collisionProbability":12,"debrisDensity":46,"orbitalStability":88,"overallThreat":"LOW","closestApproach":"4.1 km in 6.2 hours","recommendation":"No maneuver required; continue routine screening.","summary":"ISS operates in a moderately populated 420 km shell…","altitudeKm":418,"periodMinutes":92.93,"inclinationDeg":51.64,"tle":{"OBJECT_NAME":"ISS (ZARYA)","NORAD_CAT_ID":"25544","TLE_LINE1":"1 25544U …","TLE_LINE2":"2 25544 …"}}}}},"400":{"description":"Body is not JSON or `query` is missing — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/CrossOriginForbidden"},"404":{"description":"No catalog object matches `query` — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track or Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Claude returned an unparseable score — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.006 / call (est.)","x-cache":"None at the route — every call spends tokens (context sample uses the shared Space-Track cache)","x-upstream":["Space-Track.org gp","Anthropic Claude"],"x-rate-limit":[{"endpoint":"analyze","tier":"expensive","burst":20,"perMinute":10}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Satellite name (wildcard match) or NORAD catalog number.","example":"25544"}}},"example":{"query":"25544"}}}}}},"/api/maneuver":{"post":{"operationId":"postManeuver","summary":"AI collision-avoidance maneuver plan","description":"Takes a risk score (as returned by POST /api/analyze) and asks Claude for a plain-text plan — primary maneuver, alternatives, confidence, rationale — with hydrazine estimates (Tsiolkovsky, Isp 220 s and 1,000 kg wet mass assumed) and a trailing RECOMMENDATION line, extracted into `recommendation` (MONITOR | PREPARE | EXECUTE | EMERGENCY; PREPARE when the line is missing). For the deterministic Clohessy-Wiltshire trade study see the Avoidance Burn Planner panel on the dashboard.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.008 / call (est.). **Cache:** 2 min per satelliteName | noradId | overallThreat | collisionProbability. **Upstream:** Anthropic Claude. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Risk & maneuvers"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"satelliteName":"ISS (ZARYA)","text":"PRIMARY MANEUVER\nDirection: PROGRADE\n…\nRECOMMENDATION: PREPARE","recommendation":"PREPARE","generatedAt":"2024-01-01T12:00:00.000Z"}}}},"400":{"description":"Missing / mistyped fields — { error } lists the required ones.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/CrossOriginForbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.008 / call (est.)","x-cache":"2 min per satelliteName | noradId | overallThreat | collisionProbability","x-upstream":["Anthropic Claude"],"x-rate-limit":[{"endpoint":"maneuver","tier":"expensive","burst":20,"perMinute":10}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["satelliteName","noradId","altitudeKm","periodMinutes","inclinationDeg","collisionProbability","debrisDensity","orbitalStability","overallThreat","closestApproach"],"properties":{"satelliteName":{"type":"string","description":"Display name.","example":"ISS (ZARYA)"},"noradId":{"type":"string","description":"NORAD catalog number.","example":"25544"},"altitudeKm":{"type":"number","description":"Mean altitude (km).","example":418},"periodMinutes":{"type":"number","description":"Orbital period (min).","example":92.93},"inclinationDeg":{"type":"number","description":"Inclination (deg).","example":51.64},"collisionProbability":{"type":"number","description":"0-100 score from /api/analyze (not a Pc).","example":12},"debrisDensity":{"type":"number","description":"0-100 score from /api/analyze.","example":46},"orbitalStability":{"type":"number","description":"0-100 score from /api/analyze.","example":88},"overallThreat":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"],"description":"Threat level from /api/analyze.","example":"MEDIUM"},"closestApproach":{"type":"string","description":"Free-text closest approach from /api/analyze.","example":"4.1 km in 6.2 hours"},"tleLine1":{"type":"string","description":"Optional raw TLE line 1."},"tleLine2":{"type":"string","description":"Optional raw TLE line 2."}}},"example":{"satelliteName":"ISS (ZARYA)","noradId":"25544","altitudeKm":418,"periodMinutes":92.93,"inclinationDeg":51.64,"collisionProbability":12,"debrisDensity":46,"orbitalStability":88,"overallThreat":"MEDIUM","closestApproach":"4.1 km in 6.2 hours"}}}}}},"/api/conjunctions":{"get":{"operationId":"getConjunctions","summary":"Upcoming public CDMs with AI plain-English summaries","description":"The 10 soonest-TCA conjunction data messages from Space-Track's cdm_public class (owner/operator-released messages only), merged with ONE batched Claude call that adds `plainEnglish`, `recommendation` and `urgency`. CDM fields stay strings exactly as Space-Track publishes them. No Claude call is made when the feed is empty.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.04 / cache refresh (est., one batched call). **Cache:** 60 s (single key) — matches the dashboard's 60 s poll. **Upstream:** Space-Track.org cdm_public, Anthropic Claude. **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["Conjunctions"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"count":10,"alerts":[{"cdmId":"812345678","sat1Name":"STARLINK-1234","sat1Id":"44935","sat2Name":"FENGYUN 1C DEB","sat2Id":"31141","tca":"2024-01-01T18:42:10.000000","missDistanceKm":"0.412","probability":"0.0000312","plainEnglish":"A Starlink satellite passes 412 m from a Fengyun-1C fragment…","recommendation":"Operator should evaluate an avoidance maneuver.","urgency":"HIGH"}]}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track or Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.04 / cache refresh (est., one batched call)","x-cache":"60 s (single key) — matches the dashboard's 60 s poll","x-upstream":["Space-Track.org cdm_public","Anthropic Claude"],"x-rate-limit":[{"endpoint":"conjunctions","tier":"general","burst":120,"perMinute":120}]}},"/api/cascade":{"post":{"operationId":"postCascade","summary":"AI Kessler-cascade scenario for one conjunction","description":"Takes one alert from GET /api/conjunctions and asks Claude for a 5-section worst-case fragmentation narrative ending in a CASCADE STATUS line, extracted into `status` (CONTAINED | WARNING | CRITICAL | CATASTROPHIC; WARNING when the line is missing). Narrative scenario, not a debris-evolution model run.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.008 / call (est.). **Cache:** 5 min per full event identity (cdmId | sat ids | tca | miss | Pc). **Upstream:** Anthropic Claude. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Conjunctions"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"cdmId":"812345678","text":"1. INITIAL IMPACT\n…\nCASCADE STATUS: WARNING","status":"WARNING","generatedAt":"2024-01-01T12:00:00.000Z"}}}},"400":{"description":"Invalid JSON or a missing / non-string field — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/CrossOriginForbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.008 / call (est.)","x-cache":"5 min per full event identity (cdmId | sat ids | tca | miss | Pc)","x-upstream":["Anthropic Claude"],"x-rate-limit":[{"endpoint":"cascade","tier":"expensive","burst":20,"perMinute":10}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cdmId","sat1Name","sat1Id","sat2Name","sat2Id","tca","missDistanceKm","probability"],"properties":{"cdmId":{"type":"string","description":"CDM_ID of the alert.","example":"812345678"},"sat1Name":{"type":"string","description":"Primary object name.","example":"STARLINK-1234"},"sat1Id":{"type":"string","description":"Primary NORAD ID.","example":"44935"},"sat2Name":{"type":"string","description":"Secondary object name.","example":"FENGYUN 1C DEB"},"sat2Id":{"type":"string","description":"Secondary NORAD ID.","example":"31141"},"tca":{"type":"string","description":"Time of closest approach as published.","example":"2024-01-01T18:42:10.000000"},"missDistanceKm":{"type":"string","description":"Miss distance in km as a STRING (converted from the CDM's MIN_RNG, which Space-Track publishes in metres).","example":"0.412"},"probability":{"type":"string","description":"Pc — a STRING, as in the CDM.","example":"0.0000312"}}},"example":{"cdmId":"812345678","sat1Name":"STARLINK-1234","sat1Id":"44935","sat2Name":"FENGYUN 1C DEB","sat2Id":"31141","tca":"2024-01-01T18:42:10.000000","missDistanceKm":"0.412","probability":"0.0000312"}}}}}},"/api/screen":{"get":{"operationId":"getScreen","summary":"Deterministic SGP4 conjunction screen of one target","description":"All-on-one screen of the target against the 2,000-object sample: perigee/apogee band prefilter (±75 km) → 60 s coarse SGP4 sweep → golden-section refinement of each local minimum → miss distance, relative velocity, RIC separation in the target frame, 2-D encounter-plane Pc under an ASSUMED TLE-grade covariance (1-σ RIC 0.3 / 1.0 / 0.3 km per object, hard-body radius 20 m) and the NASA ISS keep-out box test. Closest approach per secondary, sorted by miss distance. The compute budget (≤ 20 s) sets `truncated` when it trips. Each approach also carries both ECI (TEME) states at TCA.\n\n**Cost:** deterministic — $0 — pure SGP4. **Cache:** 5 min per target | hours (≤ 64 entries). **Upstream:** Space-Track.org gp. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Conjunctions"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"target":{"noradId":"25544","name":"ISS (ZARYA)","meanAltitudeKm":418,"inclinationDeg":51.64,"periodMinutes":92.93,"epoch":"2024-01-01T12:00:00.000Z"},"generatedAt":"2024-01-01T12:00:00.000Z","windowStart":"2024-01-01T12:00:00.000Z","windowEnd":"2024-01-02T12:00:00.000Z","sampleSize":2000,"candidatesScreened":412,"propagations":1268544,"computeMs":1384,"truncated":false,"assumptions":{"sigmaRicKm":[0.3,1,0.3],"hardBodyRadiusM":20,"keepOutBoxKm":{"radial":2,"inTrack":25,"crossTrack":25},"coarseStepSeconds":60,"windowHours":24,"reportThresholdKm":50},"closeApproaches":[{"noradId":"49863","name":"COSMOS 1408 DEB","objectClass":"DEBRIS","tca":"2024-01-02T03:17:42.315Z","missDistanceKm":3,"relativeVelocityKmS":13.13,"radialKm":-2.298,"inTrackKm":-0.997,"crossTrackKm":1.65,"altitudeKm":420.4,"probabilityOfCollision":1.5e-11,"insideKeepOutBox":false,"severity":"MEDIUM","targetStateEci":{"position":[-2228.49,-4808.38,4244.899],"velocity":[6.7553,0.0808,3.62]},"secondaryStateEci":{"position":[-2229.177,-4805.597,4244.015],"velocity":[-0.8413,-4.819,-5.8985]}}]}}}},"400":{"description":"Missing / over-long target, or hours not in 6 | 12 | 24 | 48 — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Target not found in the catalog — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track fetch or screening failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"deterministic","x-cost-estimate":"$0 — pure SGP4","x-cache":"5 min per target | hours (≤ 64 entries)","x-upstream":["Space-Track.org gp"],"x-rate-limit":[{"endpoint":"screen","tier":"expensive","burst":20,"perMinute":10}],"parameters":[{"name":"target","in":"query","required":true,"description":"Satellite name or NORAD ID, 1-64 chars. The bare word ISS is aliased to NORAD 25544.","schema":{"type":"string","maxLength":64},"example":"ISS"},{"name":"hours","in":"query","required":false,"description":"Screening window length from now (hours).","schema":{"type":"integer","enum":[6,12,24,48],"default":24},"example":24}]}},"/api/assess":{"post":{"operationId":"postAssess","summary":"AI conjunction-assessment memo for a screening run","description":"Forward the corresponding fields of a GET /api/screen result. The body is validated strictly (finite numbers, enum fields, ≤ 500 approaches) and the 8 lowest-miss approaches are sent to Claude, which writes a CARA-style 5-section memo ending in a DISPOSITION line → `disposition` GREEN | YELLOW | RED (YELLOW when missing). Claude interprets the screening numbers; it never recomputes them. ECI state vectors are accepted but not forwarded to the model.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.01 / call (est.). **Cache:** 5 min per SHA-256 of the validated body (≤ 128 entries). **Upstream:** Anthropic Claude. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Conjunctions"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"targetNoradId":"25544","text":"SCREENING SUMMARY\n…\nDISPOSITION: GREEN","disposition":"GREEN","generatedAt":"2024-01-01T12:00:00.000Z"}}}},"400":{"description":"Invalid JSON or a malformed field — { error } names it.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"$ref":"#/components/responses/CrossOriginForbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.01 / call (est.)","x-cache":"5 min per SHA-256 of the validated body (≤ 128 entries)","x-upstream":["Anthropic Claude"],"x-rate-limit":[{"endpoint":"assess","tier":"expensive","burst":20,"perMinute":10}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target","windowStart","windowEnd","candidatesScreened","assumptions","closeApproaches"],"properties":{"target":{"type":"object","description":"ScreeningTarget: { noradId, name, epoch } strings + finite meanAltitudeKm, inclinationDeg, periodMinutes."},"windowStart":{"type":"string","description":"ISO window start from the screen.","example":"2024-01-01T12:00:00.000Z"},"windowEnd":{"type":"string","description":"ISO window end from the screen.","example":"2024-01-02T12:00:00.000Z"},"candidatesScreened":{"type":"number","description":"Finite, ≥ 0.","example":412},"assumptions":{"type":"object","description":"ScreeningAssumptions: sigmaRicKm[3], hardBodyRadiusM, keepOutBoxKm { radial, inTrack, crossTrack }, coarseStepSeconds, windowHours, reportThresholdKm."},"closeApproaches":{"type":"array","description":"ScreeningCloseApproach[] (≤ 500; may be empty). Each: noradId, name, objectClass, tca, missDistanceKm, relativeVelocityKmS, radialKm, inTrackKm, crossTrackKm, altitudeKm, probabilityOfCollision, insideKeepOutBox, severity."}}},"example":{"target":{"noradId":"25544","name":"ISS (ZARYA)","meanAltitudeKm":418,"inclinationDeg":51.64,"periodMinutes":92.93,"epoch":"2024-01-01T12:00:00.000Z"},"windowStart":"2024-01-01T12:00:00.000Z","windowEnd":"2024-01-02T12:00:00.000Z","candidatesScreened":412,"assumptions":{"sigmaRicKm":[0.3,1,0.3],"hardBodyRadiusM":20,"keepOutBoxKm":{"radial":2,"inTrack":25,"crossTrack":25},"coarseStepSeconds":60,"windowHours":24,"reportThresholdKm":50},"closeApproaches":[{"noradId":"49863","name":"COSMOS 1408 DEB","objectClass":"DEBRIS","tca":"2024-01-02T03:17:42.315Z","missDistanceKm":3,"relativeVelocityKmS":13.13,"radialKm":-2.298,"inTrackKm":-0.997,"crossTrackKm":1.65,"altitudeKm":420.4,"probabilityOfCollision":1.5e-11,"insideKeepOutBox":false,"severity":"MEDIUM"}]}}}}}},"/api/fleet":{"get":{"operationId":"getFleet","summary":"Fleet intelligence brief","description":"Counts are computed server-side from the 2,000-object sample and the 25 soonest public CDMs (heuristic thresholds: CRITICAL Pc ≥ 1e-3 or miss < 0.1 km; HIGH Pc ≥ 1e-4 or miss < 1 km). ONE Claude call then adds shell statuses, the executive brief, risk trend, top-3 threat reasoning and three recommended actions.\n\n**Cost:** Claude (Anthropic tokens) — ~$0.012 / cache refresh (est.). **Cache:** 2 min (single key) — matches the dashboard's 120 s poll. **Upstream:** Space-Track.org gp, Space-Track.org cdm_public, Anthropic Claude. **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["Fleet"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"generatedAt":"2024-01-01T12:00:00.000Z","totalObjects":2000,"activeConjunctions":25,"highPriorityCount":3,"criticalCount":0,"shells":{"leo":{"count":1815,"status":"ELEVATED"},"meo":{"count":42,"status":"NOMINAL"},"geo":{"count":143,"status":"NOMINAL"}},"executiveBrief":"LEO congestion remains the dominant risk driver…","riskTrend":"STABLE","topThreats":[{"name":"STARLINK-1234 ↔ FENGYUN 1C DEB","reasoning":"412 m miss at 1e-5-class Pc…","severity":"HIGH"}],"recommendedActions":["Starlink operations: confirm autonomous avoidance for the 44935 conjunction…"]}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track or Claude call failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Claude returned an unparseable brief — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"claude","x-cost-estimate":"~$0.012 / cache refresh (est.)","x-cache":"2 min (single key) — matches the dashboard's 120 s poll","x-upstream":["Space-Track.org gp","Space-Track.org cdm_public","Anthropic Claude"],"x-rate-limit":[{"endpoint":"fleet","tier":"general","burst":120,"perMinute":120}]}},"/api/iss":{"get":{"operationId":"getIss","summary":"ISS element set + public CDMs involving NORAD 25544","description":"Latest ISS gp element set plus any public CDMs naming 25544, filtered from the 100 soonest-TCA messages catalogue-wide (an ISS CDM further out than that window will not appear). An empty `cdms` array is a valid NOMINAL state. HTTP 200 when at least one source answered — per-source failures are reported in `errors`. The dashboard derives ground track, JSC passes and RED/YELLOW grading (Pc ≥ 1e-4 / 1e-5) client-side.\n\n**Cost:** deterministic — $0 — no Claude call. **Cache:** 5 min (full success), 60 s (one source failed), 503 never cached. **Upstream:** Space-Track.org gp, Space-Track.org cdm_public. **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["ISS"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"tle":{"OBJECT_NAME":"ISS (ZARYA)","OBJECT_ID":"1998-067A","NORAD_CAT_ID":"25544","EPOCH":"2024-01-01T12:00:00.000000","TLE_LINE1":"1 25544U 98067A   24001.50000000  .00016717  00000-0  10270-3 0  9997","TLE_LINE2":"2 25544  51.6400 208.9163 0006703 130.5360 325.0288 15.49560532 25006","INCLINATION":"51.6400","RA_OF_ASC_NODE":"208.9163","ECCENTRICITY":"0.0006703","ARG_OF_PERICENTER":"130.5360","MEAN_ANOMALY":"325.0288","MEAN_MOTION":"15.49560532","SEMIMAJOR_AXIS":"6796.148","PERIOD":"92.930","APOAPSIS":"422.566","PERIAPSIS":"413.455"},"cdms":[],"fetchedAt":"2024-01-01T12:00:00.000Z","errors":{}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Unexpected server error — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"BOTH Space-Track sources failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"deterministic","x-cost-estimate":"$0 — no Claude call","x-cache":"5 min (full success), 60 s (one source failed), 503 never cached","x-upstream":["Space-Track.org gp","Space-Track.org cdm_public"],"x-rate-limit":[{"endpoint":"iss","tier":"general","burst":120,"perMinute":120}]}},"/api/cola":{"get":{"operationId":"getCola","summary":"Launch collision-avoidance (COLA) window screen","description":"For every liftoff minute in the window, a simplified ascent model inserts the vehicle into the target orbit at T+9 min, 20° downrange in the plane through the pad, coasts it two-body for 20 min and screens it at 30 s steps against the catalog sample (±50 km altitude prefilter). Each minute is NO-GO (< 5 km), CAUTION (< 25 km) or GO; `summary.nextClearWindow` is the first run of consecutive GO minutes. Every model constant is returned in `assumptions`. 400 when the orbit's inclination is below the site latitude (no direct-ascent plane). Simplified model — not a range-safety COLA product. The compute budget sets `truncated` when it trips.\n\n**Cost:** deterministic — $0 — two-body propagation. **Cache:** 5 min per site | orbit | minutes | start minute (≤ 64 entries). **Upstream:** Space-Track.org gp. **Rate limit:** expensive tier — burst 20, 10 requests/min per IP, on top of the general bucket.","tags":["Launch"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"site":{"id":"slc-40","label":"SLC-40 · Cape Canaveral SFS","latitudeDeg":28.5619,"longitudeDeg":-80.5772,"heightKm":0.003},"orbit":{"id":"starlink-550","label":"Starlink 550 km / 53° (Gen1 design shell)","altitudeKm":550,"inclinationDeg":53},"windowStart":"2024-01-01T12:00:00.000Z","windowEnd":"2024-01-01T14:00:00.000Z","stepMinutes":1,"minutes":[{"launchTime":"2024-01-01T12:00:00.000Z","status":"GO","minMissKm":41.7,"objectName":"STARLINK-3121","noradId":"53122","tca":"2024-01-01T12:21:30.000Z"}],"candidatesScreened":640,"sampleSize":2000,"propagations":183360,"computeMs":912,"truncated":false,"summary":{"go":117,"caution":3,"noGo":0,"nextClearWindow":{"start":"2024-01-01T12:00:00.000Z","minutes":37}},"assumptions":{"insertionDelayS":540,"downrangeDeg":20,"screenAfterInsertionS":1200,"screenStepS":30,"altBandKm":50,"redKm":5,"yellowKm":25}}}}},"400":{"description":"site / orbit / minutes not in the allowed sets, bad start, or an unreachable site-orbit pair — { error }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Space-Track fetch or screening failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"deterministic","x-cost-estimate":"$0 — two-body propagation","x-cache":"5 min per site | orbit | minutes | start minute (≤ 64 entries)","x-upstream":["Space-Track.org gp"],"x-rate-limit":[{"endpoint":"cola","tier":"expensive","burst":20,"perMinute":10}],"parameters":[{"name":"site","in":"query","required":false,"description":"Launch site: SLC-40 · Cape Canaveral SFS; LC-39A · Kennedy Space Center; SLC-4E · Vandenberg SFB; Starbase · Boca Chica.","schema":{"type":"string","enum":["slc-40","lc-39a","slc-4e","starbase"],"default":"slc-40"},"example":"slc-40"},{"name":"orbit","in":"query","required":false,"description":"Target orbit: Starlink 550 km / 53° (Gen1 design shell); Starlink Gen2 530 km / 43°; ISS 420 km / 51.64°; SSO 560 km / 97.6°.","schema":{"type":"string","enum":["starlink-550","starlink-gen2-530","iss","sso-560"],"default":"starlink-550"},"example":"starlink-550"},{"name":"minutes","in":"query","required":false,"description":"Launch-window length (minutes), one liftoff time per minute.","schema":{"type":"integer","enum":[60,120,240],"default":120},"example":120},{"name":"start","in":"query","required":false,"description":"Window start as an ISO-8601 date-time (YYYY-MM-DDTHH:MM[:SS]Z; no offset means UTC) within ±7 days of the request; rounded down to the minute. Defaults to now.","schema":{"type":"string","maxLength":64,"format":"date-time"}}]}},"/api/spaceweather":{"get":{"operationId":"getSpaceweather","summary":"Planetary Kp, F10.7 solar flux and LEO drag regime","description":"Two public NOAA SWPC feeds (planetary K-index and F10.7 cm radio flux); each parser picks the NEWEST time tag. Derives the NOAA G-scale from Kp and a heuristic LEO atmospheric-drag regime (LOW | MODERATE | ELEVATED | HIGH | UNKNOWN). HTTP 200 when at least one feed parsed — the other feed's failure is in `errors`.\n\n**Cost:** deterministic — $0 — no Claude call, no credentials. **Cache:** 15 min (both feeds), 2 min (one feed failed), 503 never cached. **Upstream:** NOAA SWPC. **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["Space weather"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"fetchedAt":"2024-01-01T12:00:00.000Z","kp":{"value":2.33,"timeTag":"2024-01-01 09:00:00.000"},"f107":{"value":142,"timeTag":"2024-01-01T20:00:00"},"gScale":"G0","dragRegime":"MODERATE","errors":{}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"description":"Unexpected server error — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"BOTH SWPC feeds failed — { error, detail }.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-cost":"deterministic","x-cost-estimate":"$0 — no Claude call, no credentials","x-cache":"15 min (both feeds), 2 min (one feed failed), 503 never cached","x-upstream":["NOAA SWPC"],"x-rate-limit":[{"endpoint":"spaceweather","tier":"general","burst":120,"perMinute":120}]}},"/api/health":{"get":{"operationId":"getHealth","summary":"Subsystem health + live Space-Track request budget","description":"Times one uncached limit-1 Space-Track gp query (ONLINE < 4 s, DEGRADED ≥ 4 s, OFFLINE on error/timeout), reports whether an Anthropic key is configured (NO API call is made), the serving region and instance uptime. `spaceTrackBudget` is recomputed on every response, even when the probe is cached. Never returns 500.\n\n**Cost:** deterministic — $0 — key presence check only. **Cache:** Probe 5 min (single key); budget counters live on every response. **Upstream:** Space-Track.org gp (probe). **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["Ops"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"checkedAt":"2024-01-01T12:00:00.000Z","region":"iad1","uptimeSeconds":812,"spaceTrack":{"status":"ONLINE","latencyMs":640,"newestEpoch":"2024-01-01T11:58:02.000000"},"anthropic":{"status":"READY"},"spaceTrackCredentials":true,"spaceTrackBudget":{"requestsLastHour":41,"requestsLastMinute":2,"hourlyLimit":300,"perMinuteLimit":30,"lastLoginAt":"2024-01-01T11:31:09.000Z","sessionCookieAgeSeconds":1731,"sharedCacheEntries":2,"sharedCacheHits":57,"sharedCacheMisses":6}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"x-cost":"deterministic","x-cost-estimate":"$0 — key presence check only","x-cache":"Probe 5 min (single key); budget counters live on every response","x-upstream":["Space-Track.org gp (probe)"],"x-rate-limit":[{"endpoint":"health","tier":"general","burst":120,"perMinute":120}]}},"/api/openapi":{"get":{"operationId":"getOpenapi","summary":"This API as an OpenAPI 3.1 document","description":"Machine-readable description of every route on this page, generated from the same endpoint list that renders /docs. Import it into Postman, Insomnia or an OpenAPI code generator.\n\n**Cost:** deterministic — $0 — static document. **Cache:** Cache-Control: public, max-age=300. **Upstream:** none. **Rate limit:** general tier — burst 120, 120 requests/min per IP.","tags":["Ops"],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"type":"object"},"example":{"openapi":"3.1.0","info":{"title":"SpaceDebris API","version":"0.1.0"},"paths":{"/api/debris":{"get":{"operationId":"getDebris"}}}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"x-cost":"deterministic","x-cost-estimate":"$0 — static document","x-cache":"Cache-Control: public, max-age=300","x-upstream":[],"x-rate-limit":[{"endpoint":"openapi","tier":"general","burst":120,"perMinute":120}]}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable error."},"detail":{"type":"string","description":"Underlying cause (5xx only)."}}},"RateLimitError":{"type":"object","required":["error","retryAfterSeconds"],"properties":{"error":{"type":"string","example":"Rate limit exceeded"},"retryAfterSeconds":{"type":"integer","minimum":1}}}},"headers":{"X-RateLimit-Limit":{"description":"Capacity of the bucket that applies: 120 (general) or 20 (expensive tier). On a 429 it is the bucket that denied the request.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Whole tokens left in that bucket for this client after the request.","schema":{"type":"integer"}},"X-RateLimit-Tier":{"description":"Tier of this request: general (general bucket only) or expensive (both buckets).","schema":{"type":"string","enum":["general","expensive"]}},"Retry-After":{"description":"Seconds until one token is available again.","schema":{"type":"integer"}}},"responses":{"TooManyRequests":{"description":"Rate limit exceeded (general: 120 requests/min per IP, burst 120; expensive tier: 10 requests/min, burst 20).","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"},"example":{"error":"Rate limit exceeded","retryAfterSeconds":1}}}},"CrossOriginForbidden":{"description":"A browser on another origin sent this POST (its Origin header names another host). Server-side callers that send no Origin header are unaffected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Cross-origin requests may only use GET."}}}}}}}