Generates a full unit of learning: sequenced lessons, curriculum mapping against
learning outcomes, Bloom’s taxonomy classification, and assessment milestones.
The persisted unit plan is stored on the units table in the unit_plan
column. Several older integrations assume a differently named column — check
against the live schema before writing a reader.
Unit planning is the only capability with a session concept. POST /create
returns a sessionId, and GET /session reads it back.
Sessions are held in memory, in the serving isolate. They are not persisted
to the database and are not shared between isolates. A worker recycle, a cold
start, or a request landing on a different isolate loses the session — and
Supabase gives no guarantee that two consecutive calls hit the same one.Treat sessionId as a best-effort convenience within a single burst of
activity. Anything that must survive belongs in units, written by the client.
Reports the resolved agent and whether credentials are configured. Echoes no secret values.
GET /session
Reads back a session, subject to the caveat above.
The generation call accepts three body shapes: an explicit /create path, a
wrapped { "inputs": { ... } }, or a flat body carrying subject. All three
are equivalent.
usage.provider reads "vertex-agent". The TypeScript type still declares
"bedrock" — the type lags the running code, which moved to the Vertex agents
on 2026-08-18. Trust the response, not the type.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MESO Docs","description":"API reference and integration guides for the MESO educational planning platform.","colors":{"primary":"#B64B00","light":"#FF720F","dark":"#D15600"},"logo":{"light":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-light.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=0f20c795a69b624ef3f0c4a575470a08","dark":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-dark.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=1d9fa741f7aa99dd1e47f67e8eb49463","href":"https://www.mesolab.ai"},"favicon":"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/favicon.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=c4320af2e933ad7e7c740b0839692bb6","navbar":{"links":[{"href":"https://www.mesolab.ai","label":"Marketing site"},{"href":"mailto:contact@mesolab.ai","label":"Support"}],"primary":{"type":"button","label":"Open MESO","href":"https://app.mesolab.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/mesolab","x":"https://x.com/mesolab"},"links":[{"header":"Legal","items":[{"label":"Privacy","href":"https://www.mesolab.ai/privacy"},{"label":"Terms","href":"https://www.mesolab.ai/terms"},{"label":"Cookies","href":"https://www.mesolab.ai/cookies"}]}]},"search":{"prompt":"Search MESO docs"},"fonts":{"family":"Geist"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meso-lab","hasAudioNarration":false,"actualSubdomain":"meso-lab","customDomains":["docs.mesolab.ai"],"gitSource":{"type":"github","owner":"mesolab","repo":"meso-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6a8ecb641a367802b31e2e69","collectionId":"caa2c304-bfc1-4b2a-a0c5-fd9d73fe9e6d","liveDeploymentHistoryId":"6a8ecb641a367802b31e2e69","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a8ecb641a367802b31e2e69","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Teachers","count":21},{"language":"default","tag":"Developers","count":20},{"language":"default","tag":"Schools \u0026 publishers","count":7},{"language":"default","tag":"Running MESO","count":7},{"language":"default","tag":"Planning","count":6},{"language":"default","tag":"Assessment","count":5},{"language":"default","tag":"Curriculum","count":5},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Assist","count":3},{"language":"default","tag":"Content","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/planning/unit-planning","slug":"/api-reference/planning/unit-planning","pageMetadata":{"title":"Unit planning","api":"POST /unit-planning","description":"Turn curriculum learning outcomes into a sequenced unit plan.","icon":"calendar-days","href":"/api-reference/planning/unit-planning"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Turn curriculum learning outcomes into a sequenced unit plan.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Info,ParamField,ResponseField,Table,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Generates a full unit of learning: sequenced lessons, curriculum mapping against\nlearning outcomes, Bloom’s taxonomy classification, and assessment milestones.`}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,required:true,id:`param-subject`,children:_jsxs(_components.p,{children:[`Curriculum subject, e.g. `,_jsx(_components.code,{children:`\"Science\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`topic`,type:`string`,required:true,id:`param-topic`,children:_jsxs(_components.p,{children:[`The unit topic, e.g. `,_jsx(_components.code,{children:`\"Photosynthesis\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`learningOutcomes`,type:`string[]`,required:true,id:`param-learning-outcomes`,children:_jsxs(_components.p,{children:[`Specification codes for the outcomes this unit covers, e.g. `,_jsx(_components.code,{children:`[\"1.1\", \"1.5\"]`}),`.`]})}),`\n`,_jsx(ParamField,{body:`yearGroup`,type:`string`,required:true,id:`param-year-group`,children:_jsxs(_components.p,{children:[`Post-primary year, `,_jsx(_components.code,{children:`\"1\"`}),` through `,_jsx(_components.code,{children:`\"6\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`lessonsCount`,type:`number`,required:true,id:`param-lessons-count`,children:_jsx(_components.p,{children:`How many lessons the unit should span.`})}),`\n`,_jsx(ParamField,{body:`assessment`,type:`object`,required:true,id:`param-assessment`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`method`,type:`string`,required:true,id:`param-method`,children:`How learning is assessed.`}),_jsx(ParamField,{body:`timing`,type:`string`,required:true,id:`param-timing`,children:`When assessment occurs.`}),_jsx(ParamField,{body:`category`,type:`string`,required:true,id:`param-category`,children:`Formative, summative, and so on.`})]})}),`\n`,_jsx(ParamField,{body:`lessonLength`,type:`number`,default:`60`,id:`param-lesson-length`,children:_jsx(_components.p,{children:`Lesson length in minutes.`})}),`\n`,_jsx(ParamField,{body:`additionalConstraints`,type:`string`,id:`param-additional-constraints`,children:_jsx(_components.p,{children:`Free-text constraints — available equipment, prior knowledge, access needs.`})}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`fast`,id:`param-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"fast\"`}),` runs the single-pass flow. `,_jsx(_components.code,{children:`\"detailed\"`}),` runs the slower multi-agent\nflow surfaced in the product as `,_jsx(_components.strong,{children:`MESO Think`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`curriculumMapping`,type:`object[]`,id:`param-curriculum-mapping`,children:_jsxs(_components.p,{children:[`One entry per mapped outcome, carrying `,_jsx(_components.code,{children:`active_verb`}),`, `,_jsx(_components.code,{children:`learning_outcome`}),`,\n`,_jsx(_components.code,{children:`lesson_implementation`}),`, `,_jsx(_components.code,{children:`bloom_domain`}),`, `,_jsx(_components.code,{children:`bloom_taxonomy_level`}),` and\n`,_jsx(_components.code,{children:`assessment`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`lessons`,type:`object[]`,id:`param-lessons`,children:_jsxs(_components.p,{children:[`Sequenced lesson entries, each numbered by `,_jsx(_components.code,{children:`lesson_number`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`assessmentMilestones`,type:`object[]`,id:`param-assessment-milestones`,children:_jsxs(_components.p,{children:[`Milestones with a `,_jsx(_components.code,{children:`milestone_number`}),`, a `,_jsx(_components.code,{children:`description`}),`, and the `,_jsx(_components.code,{children:`lessons`}),` array\nthey span.`]})}),`\n`,`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The persisted unit plan is stored on the `,_jsx(_components.code,{children:`units`}),` table in the `,_jsx(_components.code,{children:`unit_plan`}),`\ncolumn. Several older integrations assume a differently named column — check\nagainst the live schema before writing a reader.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sessions`,children:`Sessions`}),`\n`,_jsxs(_components.p,{children:[`Unit planning is the only capability with a session concept. `,_jsx(_components.code,{children:`POST /create`}),`\nreturns a `,_jsx(_components.code,{children:`sessionId`}),`, and `,_jsx(_components.code,{children:`GET /session`}),` reads it back.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sessions are held in memory, in the serving isolate.`}),` They are not persisted\nto the database and are not shared between isolates. A worker recycle, a cold\nstart, or a request landing on a different isolate loses the session — and\nSupabase gives no guarantee that two consecutive calls hit the same one.`]}),_jsxs(_components.p,{children:[`Treat `,_jsx(_components.code,{children:`sessionId`}),` as a best-effort convenience within a single burst of\nactivity. Anything that must survive belongs in `,_jsx(_components.code,{children:`units`}),`, written by the client.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sub-paths`,children:`Sub-paths`}),`\n`,_jsx(_components.p,{children:`Besides the generation call, the handler answers:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /health`})}),_jsx(_components.td,{children:`Liveness.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /debug`})}),_jsx(_components.td,{children:`Reports the resolved agent and whether credentials are configured. Echoes no secret values.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /session`})}),_jsx(_components.td,{children:`Reads back a session, subject to the caveat above.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The generation call accepts three body shapes: an explicit `,_jsx(_components.code,{children:`/create`}),` path, a\nwrapped `,_jsx(_components.code,{children:`{ \"inputs\": { ... } }`}),`, or a flat body carrying `,_jsx(_components.code,{children:`subject`}),`. All three\nare equivalent.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usage.provider`}),` reads `,_jsx(_components.code,{children:`\"vertex-agent\"`}),`. The TypeScript type still declares\n`,_jsx(_components.code,{children:`\"bedrock\"`}),` — the type lags the running code, which moved to the Vertex agents\non 2026-08-18. Trust the response, not the type.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Unit planning","api":"POST /unit-planning","description":"Turn curriculum learning outcomes into a sequenced unit plan.","icon":"calendar-days","href":"/api-reference/planning/unit-planning"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Generates a full unit of learning: sequenced lessons, curriculum mapping against\nlearning outcomes, Bloom’s taxonomy classification, and assessment milestones.`}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,required:true,id:`param-subject`,children:_jsxs(_components.p,{children:[`Curriculum subject, e.g. `,_jsx(_components.code,{children:`\"Science\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`topic`,type:`string`,required:true,id:`param-topic`,children:_jsxs(_components.p,{children:[`The unit topic, e.g. `,_jsx(_components.code,{children:`\"Photosynthesis\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`learningOutcomes`,type:`string[]`,required:true,id:`param-learning-outcomes`,children:_jsxs(_components.p,{children:[`Specification codes for the outcomes this unit covers, e.g. `,_jsx(_components.code,{children:`[\"1.1\", \"1.5\"]`}),`.`]})}),`\n`,_jsx(ParamField,{body:`yearGroup`,type:`string`,required:true,id:`param-year-group`,children:_jsxs(_components.p,{children:[`Post-primary year, `,_jsx(_components.code,{children:`\"1\"`}),` through `,_jsx(_components.code,{children:`\"6\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`lessonsCount`,type:`number`,required:true,id:`param-lessons-count`,children:_jsx(_components.p,{children:`How many lessons the unit should span.`})}),`\n`,_jsx(ParamField,{body:`assessment`,type:`object`,required:true,id:`param-assessment`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`method`,type:`string`,required:true,id:`param-method`,children:`How learning is assessed.`}),_jsx(ParamField,{body:`timing`,type:`string`,required:true,id:`param-timing`,children:`When assessment occurs.`}),_jsx(ParamField,{body:`category`,type:`string`,required:true,id:`param-category`,children:`Formative, summative, and so on.`})]})}),`\n`,_jsx(ParamField,{body:`lessonLength`,type:`number`,default:`60`,id:`param-lesson-length`,children:_jsx(_components.p,{children:`Lesson length in minutes.`})}),`\n`,_jsx(ParamField,{body:`additionalConstraints`,type:`string`,id:`param-additional-constraints`,children:_jsx(_components.p,{children:`Free-text constraints — available equipment, prior knowledge, access needs.`})}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`fast`,id:`param-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"fast\"`}),` runs the single-pass flow. `,_jsx(_components.code,{children:`\"detailed\"`}),` runs the slower multi-agent\nflow surfaced in the product as `,_jsx(_components.strong,{children:`MESO Think`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`curriculumMapping`,type:`object[]`,id:`param-curriculum-mapping`,children:_jsxs(_components.p,{children:[`One entry per mapped outcome, carrying `,_jsx(_components.code,{children:`active_verb`}),`, `,_jsx(_components.code,{children:`learning_outcome`}),`,\n`,_jsx(_components.code,{children:`lesson_implementation`}),`, `,_jsx(_components.code,{children:`bloom_domain`}),`, `,_jsx(_components.code,{children:`bloom_taxonomy_level`}),` and\n`,_jsx(_components.code,{children:`assessment`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`lessons`,type:`object[]`,id:`param-lessons`,children:_jsxs(_components.p,{children:[`Sequenced lesson entries, each numbered by `,_jsx(_components.code,{children:`lesson_number`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`assessmentMilestones`,type:`object[]`,id:`param-assessment-milestones`,children:_jsxs(_components.p,{children:[`Milestones with a `,_jsx(_components.code,{children:`milestone_number`}),`, a `,_jsx(_components.code,{children:`description`}),`, and the `,_jsx(_components.code,{children:`lessons`}),` array\nthey span.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/unit-planning\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Science\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"topic\": \"Photosynthesis\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"learningOutcomes\": [\"1.1\", \"1.5\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"yearGroup\": \"2\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lessonsCount\": 6,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"assessment\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\": \"Investigation\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"timing\": \"End of unit\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"category\": \"Formative\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lessonLength\": 40,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"fast\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The persisted unit plan is stored on the `,_jsx(_components.code,{children:`units`}),` table in the `,_jsx(_components.code,{children:`unit_plan`}),`\ncolumn. Several older integrations assume a differently named column — check\nagainst the live schema before writing a reader.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sessions`,children:`Sessions`}),`\n`,_jsxs(_components.p,{children:[`Unit planning is the only capability with a session concept. `,_jsx(_components.code,{children:`POST /create`}),`\nreturns a `,_jsx(_components.code,{children:`sessionId`}),`, and `,_jsx(_components.code,{children:`GET /session`}),` reads it back.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sessions are held in memory, in the serving isolate.`}),` They are not persisted\nto the database and are not shared between isolates. A worker recycle, a cold\nstart, or a request landing on a different isolate loses the session — and\nSupabase gives no guarantee that two consecutive calls hit the same one.`]}),_jsxs(_components.p,{children:[`Treat `,_jsx(_components.code,{children:`sessionId`}),` as a best-effort convenience within a single burst of\nactivity. Anything that must survive belongs in `,_jsx(_components.code,{children:`units`}),`, written by the client.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sub-paths`,children:`Sub-paths`}),`\n`,_jsx(_components.p,{children:`Besides the generation call, the handler answers:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /health`})}),_jsx(_components.td,{children:`Liveness.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /debug`})}),_jsx(_components.td,{children:`Reports the resolved agent and whether credentials are configured. Echoes no secret values.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /session`})}),_jsx(_components.td,{children:`Reads back a session, subject to the caveat above.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The generation call accepts three body shapes: an explicit `,_jsx(_components.code,{children:`/create`}),` path, a\nwrapped `,_jsx(_components.code,{children:`{ \"inputs\": { ... } }`}),`, or a flat body carrying `,_jsx(_components.code,{children:`subject`}),`. All three\nare equivalent.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usage.provider`}),` reads `,_jsx(_components.code,{children:`\"vertex-agent\"`}),`. The TypeScript type still declares\n`,_jsx(_components.code,{children:`\"bedrock\"`}),` — the type lags the running code, which moved to the Vertex agents\non 2026-08-18. Trust the response, not the type.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Unit planning","api":"POST /unit-planning","description":"Turn curriculum learning outcomes into a sequenced unit plan.","icon":"calendar-days","href":"/api-reference/planning/unit-planning"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Sessions","slug":"sessions","depth":2,"children":[]},{"title":"Sub-paths","slug":"sub-paths","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$BASE_URL\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/unit-planning\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ACCESS_TOKEN\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subject\": \"Science\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"topic\": \"Photosynthesis\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"learningOutcomes\": [\"1.1\", \"1.5\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"yearGroup\": \"2\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"lessonsCount\": 6,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"assessment\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"method\": \"Investigation\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"timing\": \"End of unit\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"category\": \"Formative\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"lessonLength\": 40,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mode\": \"fast\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Unit planning","path":"/unit-planning","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"subject":[{"type":"string","description":"Curriculum subject, e.g. `\"Science\"` .","required":true}],"topic":[{"type":"string","description":"The unit topic, e.g. `\"Photosynthesis\"` .","required":true}],"learningOutcomes":[{"type":"array","items":[{"type":"string"}],"description":"Specification codes for the outcomes this unit covers, e.g. `[\"1.1\", \"1.5\"]` .","required":true}],"yearGroup":[{"type":"string","description":"Post-primary year, `\"1\"` through `\"6\"` .","required":true}],"lessonsCount":[{"type":"number","description":"How many lessons the unit should span.","required":true}],"assessment":[{"type":"object","properties":{"method":[{"type":"string","description":"How learning is assessed.","required":true}],"timing":[{"type":"string","description":"When assessment occurs.","required":true}],"category":[{"type":"string","description":"Formative, summative, and so on.","required":true}]},"required":true}],"lessonLength":[{"type":"number","description":"Lesson length in minutes."}],"additionalConstraints":[{"type":"string","description":"Free-text constraints — available equipment, prior knowledge, access needs."}],"mode":[{"type":"string","description":"`\"fast\"` runs the single-pass flow. `\"detailed\"` runs the slower multi-agent flow surfaced in the product as MESO Think ."}]}}],"examples":{"example":{"value":{"subject":"\u003cstring>","topic":"\u003cstring>","learningOutcomes":["\u003cstring>"],"yearGroup":"\u003cstring>","lessonsCount":123,"assessment":{"method":"\u003cstring>","timing":"\u003cstring>","category":"\u003cstring>"},"lessonLength":123,"additionalConstraints":"\u003cstring>","mode":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"curriculumMapping":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"One entry per mapped outcome, carrying `active_verb` , `learning_outcome` , `lesson_implementation` , `bloom_domain` , `bloom_taxonomy_level` and `assessment` ."}],"lessons":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Sequenced lesson entries, each numbered by `lesson_number` ."}],"assessmentMilestones":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Milestones with a `milestone_number` , a `description` , and the `lessons` array they span."}]}}],"examples":{"example":{"value":{"curriculumMapping":[{}],"lessons":[{}],"assessmentMilestones":[{}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"meso-lab","siteName":"MESO Docs","title":"Unit planning - MESO Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-21T18:27:01.198Z","originalFileLocation":"api-reference/planning/unit-planning.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Turn curriculum learning outcomes into a sequenced unit plan.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MESO Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Unit planning - MESO Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turn curriculum learning outcomes into a sequenced unit plan.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MESO Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mesolab.ai/api-reference/planning/unit-planning\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meso-lab.mintlify.app/_mintlify/api/og/v2?division=Planning\u0026amp;title=Unit+planning\u0026amp;description=Turn+curriculum+learning+outcomes+into+a+sequenced+unit+plan.\u0026amp;theme=7df8d1f9585a44d32f08d999\u0026amp;signature=dd11cbe386c42a2d6b5c106528bed194973110bd17f2aa2dcc9181ef03857454\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Unit planning - MESO Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turn curriculum learning outcomes into a sequenced unit plan.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meso-lab.mintlify.app/_mintlify/api/og/v2?division=Planning\u0026amp;title=Unit+planning\u0026amp;description=Turn+curriculum+learning+outcomes+into+a+sequenced+unit+plan.\u0026amp;theme=7df8d1f9585a44d32f08d999\u0026amp;signature=dd11cbe386c42a2d6b5c106528bed194973110bd17f2aa2dcc9181ef03857454\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meso-lab/xgmBOAoGJ_cgEBgb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MESO Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#B64B00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mesolab.ai/api-reference/planning/unit-planning\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/planning/unit-planning.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mesolab.ai/#organization\",\"name\":\"MESO Docs\",\"url\":\"https://docs.mesolab.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meso-lab/4fn_Y-YWQ1gkm2sT/logo/meso-light.svg?fit=max\u0026auto=format\u0026n=4fn_Y-YWQ1gkm2sT\u0026q=85\u0026s=0f20c795a69b624ef3f0c4a575470a08\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mesolab.ai#website\",\"name\":\"MESO Docs\",\"url\":\"https://docs.mesolab.ai\",\"publisher\":{\"@id\":\"https://docs.mesolab.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning#webpage\",\"url\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning\",\"name\":\"Unit planning\",\"description\":\"Turn curriculum learning outcomes into a sequenced unit plan.\",\"dateModified\":\"2026-08-21T18:27:01.198Z\",\"isPartOf\":{\"@id\":\"https://docs.mesolab.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MESO Docs\",\"item\":\"https://docs.mesolab.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unit planning\",\"item\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning#apireference\",\"headline\":\"Unit planning\",\"name\":\"Unit planning\",\"description\":\"Turn curriculum learning outcomes into a sequenced unit plan.\",\"url\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mesolab.ai/api-reference/planning/unit-planning#webpage\"},\"dateModified\":\"2026-08-21T18:27:01.198Z\",\"publisher\":{\"@id\":\"https://docs.mesolab.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mesolab.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MESO Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MESO Docs","nav":{"global":null,"tabs":[{"tab":"Teachers","icon":"graduation-cap","pages":[{"title":"Teachers","href":"/teachers/get-started"}]},{"tab":"Schools \u0026 publishers","icon":"building","pages":[{"title":"Schools \u0026 publishers","href":"/schools/rollout"}]},{"tab":"Developers","icon":"code","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Authentication","icon":"key","href":"/authentication"}]},{"group":"Concepts","icon":"diagram-project","pages":[{"title":"Architecture","icon":"sitemap","href":"/concepts/architecture"},{"title":"Capabilities","icon":"cubes","href":"/concepts/capabilities"},{"title":"Conventions","icon":"list-check","href":"/concepts/conventions"}]},{"group":"Overview","icon":"circle-info","pages":[{"title":"API reference","icon":"circle-info","href":"/api-reference/introduction"},{"title":"Errors","description":"Status codes MESO returns and what to do about each.","icon":"triangle-exclamation","href":"/api-reference/errors"}]},{"group":"Planning","icon":"calendar-days","pages":[{"title":"Unit planning","api":"POST /unit-planning","icon":"calendar-days","href":"/api-reference/planning/unit-planning"},{"title":"Lesson planning","api":"POST /lesson-planning","description":"Expand a lesson into a full plan with activities and timings.","icon":"chalkboard-user","href":"/api-reference/planning/lesson-planning"}]},{"group":"Assessment","icon":"clipboard-check","pages":[{"title":"Rubric","api":"POST /rubric","icon":"table-list","href":"/api-reference/assessment/rubric"},{"title":"Assessment","api":"POST /assessment","icon":"clipboard-check","href":"/api-reference/assessment/assessment"}]},{"group":"Content","icon":"shapes","pages":[{"title":"Resource","api":"POST /resource","icon":"folder-open","href":"/api-reference/content/resource"},{"title":"Slides","api":"POST /slides","icon":"display","href":"/api-reference/content/slides"},{"title":"Hero image","api":"POST /unit-hero-image","icon":"image","href":"/api-reference/content/unit-hero-image"}]},{"group":"Assist","icon":"comments","pages":[{"title":"Chat","api":"POST /chat","icon":"comments","href":"/api-reference/assist/chat"},{"title":"AI actions","api":"POST /ai-actions","icon":"wand-magic-sparkles","href":"/api-reference/assist/ai-actions"},{"title":"Transcription","api":"POST /whisper-transcribe","icon":"microphone","href":"/api-reference/assist/whisper-transcribe"}]},{"group":"Curriculum","icon":"compass","pages":[{"title":"Recommend learning outcomes","api":"POST /recommend-lo","icon":"compass","href":"/api-reference/curriculum/recommend-lo"},{"title":"Recommend assessments","api":"POST /recommend-as","icon":"scale-balanced","href":"/api-reference/curriculum/recommend-as"}]},{"group":"Documents","icon":"file-lines","pages":[{"title":"Document ingestion","api":"POST /ingest-teacher-document","icon":"file-arrow-up","href":"/api-reference/documents/ingest-teacher-document"}]}]}]},"basePath":"","title":"Unit planning - MESO Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js"]}