create_draft_figure_v1_figures_drafts_post
Create a draft figure snapshot from inline data and visualization spec for handoff to the figure editor, with limits on data size and draft count per origin.
Instructions
POST /v1/figures/drafts (auth: Bearer OPENDATA_API_KEY) ā Create a draft figure (snapshot mode) ā Create a snapshot draft figure on the authenticated user's profile.
Designed for external clients (MCP today, web sandbox tomorrow) that already have rendered data in hand and want to hand the user off into the figure editor.
Behavior:
Caps
inline_dataat 1000 rows / 512KB serialized. Anything larger is truncated andtruncated=trueis returned.Per-user soft cap of 100 drafts per
origin. Over-limit clients get a 429 asking them to delete or publish before creating more.Idempotent within 60 seconds on the SHA256 of
(viz_spec, inline_data, creator_id). Re-posts inside the window return the existing draft id.Creates the row as a private, standalone figure. Pre-pā¦
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (application/json) for POST /v1/figures/drafts |