Skip to main content
Use this route to update online adaptive policy state and read prediction.<output_key> in the same response.
This route requires a configured adaptive policy. Use POST /api/v1/domains/{domain_id}/events to record an ordinary Domain event.

Request body

The keys inside values must match the domain’s query_templates.adaptive_interval_policy field mapping.

Response shape

The key under prediction comes from the template’s exact output_key. Policy thresholds determine when rows appear; an empty array can be a valid current prediction.

Operational notes

  • Send observations in their real order.
  • Use one writer per domain/session unless interleaving is intended.
  • Keep a stable event_id for auditable retries.
  • Use POST /api/v1/domains/{domain_id}/adapt/predict to read current state without adding an observation.
  • Consume the structured prediction directly in application code.

Read the current prediction

Inspect retained interval-policy state without adding an observation.