Dashboard v3

Resolve an AI-add figure from an intent

The AI-add omnibox: infer the chart kind (unless pinned), bind the fields via one Haiku call, clamp them deterministically, then resolve the figure through dash-render with FIELDS ONLY (never the intent — ADR D5; the LLM never authors the spec or numbers). Returns the resolved preview directly. Synchronous (not the async-job path chat/ask use): there is no canvas append and no bake to run — just one small Haiku call + one engine-route resolve — and the editor awaits this result to open the studio, so a job + poll would only add latency. The blocking LLM/profile/render work runs off the event loop.

post/dashboards/{dashboard_id}/figure-intent

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/dashboards/{dashboard_id}/figure-intent
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

dashboard_idinteger required

Request body

Response

A resolved add-figure preview

kindstring required
addedobject nullable
specobject nullable
emptyboolean nullable
captionstring nullable
caveatstring nullable
intent_appliedboolean required

Changes

No recorded changes to this operation across all 3 revisions of this API.