The Homeworks API provides endpoints to manage homework assignments and student submissions. This API allows teachers to create assignments, manage files, and view student submissions, while also enabling students to submit their homework for AI-powered review.
The submission is processed asynchronously, and the AI review is generated in the background
The chat interface becomes available immediately after submission
The review process analyzes the student’s submission against the homework requirements and solution criteria
Keep your API key secure and do not expose it in client-side code
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lexicon Labs API","colors":{"primary":"#8D6553","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/lexiconlabssro/aeH2Vgt_hMq_N5Yy/logo/light.svg?fit=max\u0026auto=format\u0026n=aeH2Vgt_hMq_N5Yy\u0026q=85\u0026s=c29e50beeefcdb0eba42fbb10ecf6c85","dark":"https://mintcdn.com/lexiconlabssro/aeH2Vgt_hMq_N5Yy/logo/dark.svg?fit=max\u0026auto=format\u0026n=aeH2Vgt_hMq_N5Yy\u0026q=85\u0026s=4e3f8a5f7eecbc651d8fbe13f25f2c4f"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:hi@mintlify.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.lexiconlabs.ai"},{"anchor":"Website","icon":"globe","href":"https://lexiconlabs.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lexiconlabssro","hasAudioNarration":false,"actualSubdomain":"lexiconlabssro","customDomains":["docs.lexiconlabs.ai"],"gitSource":{"type":"github","owner":"lexiconlabsai","repo":"ll-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9280b38a52af76f41ce2c:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":10},{"language":"default","tag":"Chats","count":7},{"language":"default","tag":"Homeworks","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/homeworks/introduction","slug":"/api-reference/homeworks/introduction","pageMetadata":{"title":"Homeworks API","description":"Endpoints for managing homework assignments and submissions","href":"/api-reference/homeworks/introduction"},"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: \"Endpoints for managing homework assignments and submissions\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`homeworks-api-overview`,children:`Homeworks API Overview`}),`\n`,_jsx(_components.p,{children:`The Homeworks API provides endpoints to manage homework assignments and student submissions. This API allows teachers to create assignments, manage files, and view student submissions, while also enabling students to submit their homework for AI-powered review.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`All API endpoints require an API key for authentication, which should be included in the request header.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Header`}),`: `,_jsx(_components.code,{children:`x-tenant-api-secret`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Value`}),`: `,_jsx(_components.code,{children:`YOUR_API_KEY`})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`This API key is unique to your tenant and should be kept secure.`})}),`\n`,_jsx(Heading,{level:`2`,id:`key-concepts`,children:`Key Concepts`}),`\n`,_jsx(Heading,{level:`3`,id:`homework-assignments`,children:`Homework Assignments`}),`\n`,_jsx(_components.p,{children:`Homework assignments are created by teachers and contain information such as:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Subject`}),`\n`,_jsx(_components.li,{children:`Course information`}),`\n`,_jsx(_components.li,{children:`Assignment files`}),`\n`,_jsx(_components.li,{children:`Submission requirements`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`homework-submissions`,children:`Homework Submissions`}),`\n`,_jsx(_components.p,{children:`Students can submit their homework solutions through the API, which:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Supports various file formats`}),`\n`,_jsx(_components.li,{children:`Provides automated review through an AI-powered chatbot`}),`\n`,_jsx(_components.li,{children:`Allows for chat-based interaction about the submission`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Many endpoints that return collections support pagination using `,_jsx(_components.code,{children:`limit`}),` and `,_jsx(_components.code,{children:`offset`}),` parameters:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`limit`}),`: The maximum number of results to return (default 10)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`offset`}),`: The number of items to skip before starting to collect results (default 0)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The response includes `,_jsx(_components.code,{children:`prevPage`}),` and `,_jsx(_components.code,{children:`nextPage`}),` boolean fields to indicate if additional pages exist.`]}),`\n`,_jsx(Heading,{level:`2`,id:`supported-file-types`,children:`Supported File Types`}),`\n`,_jsx(_components.p,{children:`The API supports various file formats including:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Text files (`,_jsx(_components.code,{children:`.txt`}),`, `,_jsx(_components.code,{children:`.md`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Programming files (`,_jsx(_components.code,{children:`.py`}),`, `,_jsx(_components.code,{children:`.java`}),`, `,_jsx(_components.code,{children:`.js`}),`, `,_jsx(_components.code,{children:`.ts`}),`, `,_jsx(_components.code,{children:`.c`}),`, `,_jsx(_components.code,{children:`.cpp`}),`, `,_jsx(_components.code,{children:`.cs`}),`, `,_jsx(_components.code,{children:`.go`}),`, `,_jsx(_components.code,{children:`.rb`}),`, `,_jsx(_components.code,{children:`.php`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Web files (`,_jsx(_components.code,{children:`.html`}),`, `,_jsx(_components.code,{children:`.css`}),`, `,_jsx(_components.code,{children:`.json`}),`, `,_jsx(_components.code,{children:`.xml`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Document files (`,_jsx(_components.code,{children:`.docx`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`PDF files (`,_jsx(_components.code,{children:`.pdf`}),`)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`using-the-chat-interface`,children:`Using the Chat Interface`}),`\n`,_jsxs(_components.p,{children:[`After a successful submission, the API returns a `,_jsx(_components.code,{children:`chatId`}),` that can be used to access the AI review chat interface.`]}),`\n`,_jsx(Heading,{level:`3`,id:`chat-interface-url`,children:`Chat Interface URL`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://chat.lexiconlabs.ai/?chat_id={chatId}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`{chatId}`}),` with the actual chatId returned from the submission API.`]}),`\n`,_jsx(Heading,{level:`3`,id:`embedding-the-chat-interface`,children:`Embedding the Chat Interface`}),`\n`,_jsx(_components.p,{children:`You can embed the chat interface in your application using an iframe:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`iframe`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://chat.lexiconlabs.ai/?chat_id={chatId}\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` width`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"100%\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` height`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"600px\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` frameborder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`iframe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`chat-interface-features`,children:`Chat Interface Features`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Students can interact with an AI tutor about their submission`}),`\n`,_jsxs(_components.li,{children:[`The AI provides feedback based on:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The student’s submitted files`}),`\n`,_jsx(_components.li,{children:`The homework requirements`}),`\n`,_jsx(_components.li,{children:`The solution criteria`}),`\n`,_jsx(_components.li,{children:`The subject matter context`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The submission is processed asynchronously, and the AI review is generated in the background`}),`\n`,_jsx(_components.li,{children:`The chat interface becomes available immediately after submission`}),`\n`,_jsx(_components.li,{children:`The review process analyzes the student’s submission against the homework requirements and solution criteria`}),`\n`,_jsx(_components.li,{children:`Keep your API key secure and do not expose it in client-side code`}),`\n`]})]})}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":"Homeworks API","description":"Endpoints for managing homework assignments and submissions","href":"/api-reference/homeworks/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Homeworks API Overview","slug":"homeworks-api-overview","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Key Concepts","slug":"key-concepts","depth":2,"children":[{"title":"Homework Assignments","slug":"homework-assignments","depth":3,"children":[]},{"title":"Homework Submissions","slug":"homework-submissions","depth":3,"children":[]}]},{"title":"Pagination","slug":"pagination","depth":2,"children":[]},{"title":"Supported File Types","slug":"supported-file-types","depth":2,"children":[]},{"title":"Using the Chat Interface","slug":"using-the-chat-interface","depth":2,"children":[{"title":"Chat Interface URL","slug":"chat-interface-url","depth":3,"children":[]},{"title":"Embedding the Chat Interface","slug":"embedding-the-chat-interface","depth":3,"children":[]}]},{"title":"Chat Interface Features","slug":"chat-interface-features","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"lexiconlabssro","siteName":"Lexicon Labs API","title":"Homeworks API - Lexicon Labs API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:05:02.989Z","originalFileLocation":"api-reference/homeworks/introduction.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=\"Endpoints for managing homework assignments and submissions\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lexicon Labs API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_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/lexiconlabssro/yAchMQgn3TFPLUit/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Homeworks API - Lexicon Labs API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Endpoints for managing homework assignments and submissions\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lexicon Labs API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lexiconlabssro.mintlify.site/_mintlify/api/og/v2?division=Homeworks\u0026amp;title=Homeworks+API\u0026amp;description=Endpoints+for+managing+homework+assignments+and+submissions\u0026amp;theme=2c403c8378ccb8fb17b6aaf4\u0026amp;signature=78f27d74d75b9bcbb9a9e97969c2a8c4522ca163613dd6f0caf13d894fb456ac\">\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=\"Homeworks API - Lexicon Labs API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Endpoints for managing homework assignments and submissions\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lexiconlabssro.mintlify.site/_mintlify/api/og/v2?division=Homeworks\u0026amp;title=Homeworks+API\u0026amp;description=Endpoints+for+managing+homework+assignments+and+submissions\u0026amp;theme=2c403c8378ccb8fb17b6aaf4\u0026amp;signature=78f27d74d75b9bcbb9a9e97969c2a8c4522ca163613dd6f0caf13d894fb456ac\">\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/lexiconlabssro/yAchMQgn3TFPLUit/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lexicon Labs API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8D6553\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/homeworks/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lexiconlabs.ai/#organization\",\"name\":\"Lexicon Labs API\",\"url\":\"https://docs.lexiconlabs.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lexiconlabssro/aeH2Vgt_hMq_N5Yy/logo/light.svg?fit=max\u0026auto=format\u0026n=aeH2Vgt_hMq_N5Yy\u0026q=85\u0026s=c29e50beeefcdb0eba42fbb10ecf6c85\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lexiconlabs.ai#website\",\"name\":\"Lexicon Labs API\",\"url\":\"https://docs.lexiconlabs.ai\",\"publisher\":{\"@id\":\"https://docs.lexiconlabs.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction#webpage\",\"url\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction\",\"name\":\"Homeworks API\",\"description\":\"Endpoints for managing homework assignments and submissions\",\"dateModified\":\"2026-01-07T08:05:02.989Z\",\"isPartOf\":{\"@id\":\"https://docs.lexiconlabs.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lexicon Labs API\",\"item\":\"https://docs.lexiconlabs.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Homeworks API\",\"item\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction#article\",\"headline\":\"Homeworks API\",\"name\":\"Homeworks API\",\"description\":\"Endpoints for managing homework assignments and submissions\",\"url\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lexiconlabs.ai/api-reference/homeworks/introduction#webpage\"},\"dateModified\":\"2026-01-07T08:05:02.989Z\",\"publisher\":{\"@id\":\"https://docs.lexiconlabs.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lexiconlabs.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lexicon Labs API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lexicon Labs API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/homeworks/introduction.md","siteName":"Lexicon Labs API","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.lexiconlabs.ai"},{"anchor":"Website","icon":"globe","href":"https://lexiconlabs.ai"}]},"tabs":[{"tab":"API Reference","groups":[{"group":"Chats","pages":[{"title":"Chat API","href":"/api-reference/chats/introduction"},{"title":"Create Chat","api":"POST /api/v1/chats/","href":"/api-reference/chats/create"},{"title":"List User Chats","api":"GET /api/v1/chats/user/{user_id}","href":"/api-reference/chats/list-user-chats"},{"title":"Get Chat","api":"GET /api/v1/chats/{chat_id}","href":"/api-reference/chats/get-chat"},{"title":"Get Chat Messages","api":"GET /api/v1/chats/{chat_id}/messages","href":"/api-reference/chats/get-messages"},{"title":"Delete Chat","api":"DELETE /api/v1/chats/{chat_id}","href":"/api-reference/chats/delete-chat"},{"title":"WebSocket Integration","description":"Real-time messaging with streaming AI responses","href":"/api-reference/chats/websocket"}]},{"group":"Homeworks","pages":[{"title":"Homeworks API","href":"/api-reference/homeworks/introduction"},{"title":"Get Homework Assignments","api":"GET /v1/homeworks","description":null,"href":"/api-reference/homeworks/get"},{"title":"Create Homework Submission","api":"POST /v1/homeworks/:homeworkId/submissions","href":"/api-reference/homeworks/submissions/create"}]}]}]},"basePath":"","title":"Homeworks API - Lexicon Labs API","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}