{"openapi":"3.1.0","info":{"title":"Open Star API","version":"0.1.0"},"paths":{"/api/health":{"get":{"summary":"Read API, engine and catalog availability","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string","enum":["openstar-api"]},"engine":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string","minLength":1}},"required":["name","version"],"additionalProperties":false},"catalog":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"],"additionalProperties":false}},"required":["ok","service","engine","catalog"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/health":{"get":{"summary":"Read API, engine and catalog availability","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string","enum":["openstar-api"]},"engine":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string","minLength":1}},"required":["name","version"],"additionalProperties":false},"catalog":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"],"additionalProperties":false}},"required":["ok","service","engine","catalog"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/api/revision":{"get":{"summary":"Read the running release revision","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"string","minLength":1},"built_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},{"type":"null"}]}},"required":["revision","built_at"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/revision":{"get":{"summary":"Read the running release revision","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"string","minLength":1},"built_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},{"type":"null"}]}},"required":["revision","built_at"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/api/openapi.json":{"get":{"summary":"Read this OpenAPI document","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/.well-known/openagents.json":{"get":{"summary":"Read the OpenAgents manifest","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/api/v1/agents/manifest":{"get":{"summary":"Read the OpenAgents manifest","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/api/v1/status":{"get":{"summary":"Read capability statuses","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"capabilities":{"type":"array","items":{"type":"object","properties":{"tool_key":{"type":"string","minLength":1},"status":{"type":"string","enum":["live","planned"]}},"required":["tool_key","status"],"additionalProperties":false}}},"required":["capabilities"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}}}},"/api/v1/objects/search":{"get":{"summary":"Search solar-system bodies by name or alias. Includes bright stars when the offline catalog is available.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"kind":{"type":"string","enum":["solar_system","star"]},"provenance":{"type":"object","properties":{"dataset_version":{"type":"integer"},"licence":{"type":"string","minLength":1},"sources":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"licence":{"type":"string","minLength":1}},"required":["citation","url","licence"],"additionalProperties":false}}},"required":["dataset_version","licence","sources"],"additionalProperties":false}},"required":["id","name","kind"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"stars":{"type":"string","enum":["available","unavailable"]}},"required":["stars"],"additionalProperties":false}},"required":["objects","coverage"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}},"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Object name or alias."}}]}},"/api/v1/objects/{id}/position":{"get":{"summary":"Calculate topocentric position and horizon events for a solar-system body observable from Earth.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},"raDeg":{"type":"number","description":"Degrees."},"decDeg":{"type":"number","description":"Degrees."},"azimuthDeg":{"type":"number","description":"Degrees."},"altitudeDeg":{"type":"number","description":"Degrees."},"distanceAu":{"type":"number","description":"Astronomical units."},"refraction":{"type":"string","enum":["none","normal"]},"visibility":{"type":"string","enum":["above_horizon","below_horizon"],"description":"Based on returned centre altitude."},"frame":{"type":"string","minLength":1},"engine":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string","minLength":1}},"required":["name","version"],"additionalProperties":false},"observer":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude in degrees, north positive.","minimum":-90,"maximum":90},"lon":{"type":"number","description":"Longitude in degrees, east positive.","minimum":-180,"maximum":180},"height_m":{"type":"number","description":"Metres."}},"required":["lat","lon","height_m"],"additionalProperties":false},"computed_at":{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},"rise":{"anyOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},{"type":"null"}],"description":"Rise within 24 hours using standard atmospheric refraction and the upper limb."},"set":{"anyOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},{"type":"null"}],"description":"Set within 24 hours using standard atmospheric refraction and the upper limb."},"culmination":{"anyOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."},{"type":"null"}],"description":"Next occurrence within 24 hours of time, or null if absent in that window."}},"required":["id","time","raDeg","decDeg","azimuthDeg","altitudeDeg","distanceAu","refraction","visibility","frame","engine","observer","computed_at","rise","set","culmination"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"404":{"description":"Object not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1},"message":{"type":"string","minLength":1}},"required":["error","message"],"additionalProperties":false}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Latitude in degrees, north positive.","minimum":-90,"maximum":90}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","description":"Longitude in degrees, east positive.","minimum":-180,"maximum":180}},{"name":"height_m","in":"query","required":false,"schema":{"type":"number","minimum":-500,"maximum":100000,"default":0,"description":"Observer elevation in metres. Range supported by the rise/set atmospheric model."}},{"name":"time","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","description":"ISO-8601 UTC timestamp ending in Z, with optional milliseconds."}},{"name":"refraction","in":"query","required":false,"schema":{"type":"string","enum":["none","normal"],"default":"none"}}]}}}}