Documentation Index
Fetch the complete documentation index at: https://www.mireye.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/ask accepts a US coordinate and a natural-language question. A planner model picks the relevant fields from the catalog, fetches them in parallel, and a synthesizer model writes a cited prose answer. Every citation names the federal source, the source URL, and when the value was fetched. Expect 2–6 s on warm requests and up to 60 s on a cold start.
Request
Endpoint:POST https://mireye-earth.fly.dev/v1/ask
Latitude of the query point. Must be within
[18, 72] (US envelope).Longitude of the query point. Must be within
[-180, -65] (US envelope).Natural-language question about the coordinate. Maximum 2000 characters.
When
true, the response includes a trace object with planner reasoning and a latency breakdown. Useful for debugging which fields the planner selected and why.Response (200)
ISO 8601 UTC timestamp of when the answer was generated.
Prose answer citing the fetched values. Written by the synthesizer model based on the fields the planner selected.
Overall confidence in the answer:
HIGH, MEDIUM, or LOW. Drops to MEDIUM if any field was downgraded or if more than 30% of planned fields were unavailable.One citation object per source used. Groups all fields from the same source into a single citation.
List of field names the answer depends on. A flat array of strings — use this for quick filtering without parsing full citation objects.
Fields that could not be fetched. Empty array if all planned fields succeeded. The answer prose notes any missing data explicitly;
confidence drops one bucket if more than 30% of fields failed.Trace (optional)
When you setinclude_trace: true, the response includes a trace object with planner-internal diagnostics.
planner_reasoning field shows why the planner chose those specific fields. Use it to understand which catalog fields are most relevant to different question types, or to build your own planner prompt against GET /v1/meta/fields.
Error responses
| Status | Error code | Meaning |
|---|---|---|
| 400 | coord_out_of_bounds | Coordinate is outside the US envelope (lat ∈ [18, 72], lng ∈ [-180, -65]). |
| 500 | internal | Orchestrator crash. The response includes a request_id — include it when reporting the issue. |