{"openapi":"3.1.0","info":{"title":"GET /api/v1/dashboards/models/drafts/{draft_id}","version":"1.0.0","description":"Read a proposed model in full"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/dashboards/models/drafts/{draft_id}":{"get":{"tags":["dashboards"],"summary":"Read a proposed model in full","description":"The complete plan behind a draft: **every** row of every sheet, the formula or resolved ledgers behind each one, and a sample column of real values.\n\nThe chat card shows a windowed version of this — long sheets are sampled from both ends — so this route is what backs 'show all rows' and a re-read of a plan whose card has been sitting open. It reports the draft's *live* remaining time, not the value it was rendered with, so an expired plan is discovered before the Build button is pressed rather than after.","operationId":"get_model_draft_api_v1_dashboards_models_drafts__draft_id__get","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"full","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Full"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope_ModelPlanResponse_"}}}},"400":{"description":"Bad Request - Invalid input","content":{"application/json":{"example":{"detail":"Invalid request parameters"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"404":{"description":"Not Found - Resource does not exist","content":{"application/json":{"example":{"detail":"Resource not found"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ModelPlanResponse":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"headline":{"type":"string","title":"Headline","default":""}},"additionalProperties":false,"type":"object","required":["draft_id"],"title":"ModelPlanResponse","description":"A proposed, unbuilt model returned for review.\n\n``plan`` is the open-shaped payload from\n``app.dashboards.model_specs.plan.build_plan`` — period axis, per-sheet\nsummaries, assumptions and open questions. It is deliberately not modelled\nfield-by-field here: the plan card renders whatever the planner produces,\nand pinning the shape twice would guarantee drift."},"SuccessEnvelope_ModelPlanResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"data":{"anyOf":[{"$ref":"#/components/schemas/ModelPlanResponse"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"SuccessEnvelope[ModelPlanResponse]"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}