Get a presigned URL to upload index data for a new index.
Initialize an upload session for creating a new index. Returns a presigned URL where you can upload your pre-computed index data, along with a jobId to use with startBuild once the upload completes.Required fields: indexName, modelId, docCount, dimension
Field
Type
Required
Notes
indexName
string
✅
Name for the new index.
modelId
string
✅
Embedding model identifier (e.g. moss-minilm).
docCount
integer
✅
Total number of documents being uploaded.
dimension
integer
✅
Embedding vector dimension (e.g. 384 for moss-minilm).
Presigned URL to PUT your index data. Expires after expiresIn seconds.
expiresIn
integer
Seconds until the upload URL expires (default 3600).
Errors
400 when docCount or dimension is missing or invalid.
404 if the project does not exist.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Moss Docs","public":true,"description":"Moss is a high-performance runtime for real-time semantic search. It delivers sub-10 ms lookups, instant index updates, and zero infra overhead. Moss runs where your agent lives - cloud, in-browser, or on-device - so search feels native and users never wait.","colors":{"primary":"#5C8A5C","light":"#ABE6C7","dark":"#8DD4AC"},"logo":{"light":"https://mintcdn.com/moss-afcfb0b6/ajTFkA1i1FLXX8GX/logo/moss-docs-logo.svg?fit=max\u0026auto=format\u0026n=ajTFkA1i1FLXX8GX\u0026q=85\u0026s=8df2ef0063df8040fea8bc955978ad25","dark":"https://mintcdn.com/moss-afcfb0b6/ajTFkA1i1FLXX8GX/logo/moss-docs-logo-dark.svg?fit=max\u0026auto=format\u0026n=ajTFkA1i1FLXX8GX\u0026q=85\u0026s=efa96bf1f71f8abbaf7345f9c624e672","href":"https://docs.moss.dev/"},"favicon":"https://mintcdn.com/moss-afcfb0b6/ajTFkA1i1FLXX8GX/logo/moss-docs-favicon.svg?fit=max\u0026auto=format\u0026n=ajTFkA1i1FLXX8GX\u0026q=85\u0026s=8919a155d2a6a3824f40c0bd6f194c0e","api":{},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FAFAFA","dark":"#0F1410"}},"navbar":{"links":[{"icon":"globe","href":"https://www.moss.dev/","label":"Website"}],"primary":{"type":"button","label":"Portal","href":"https://portal.usemoss.dev/auth/login"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/mossdev","x":"https://x.com/usemoss","github":"https://github.com/usemoss","discord":"https://discord.gg/eMXExuafBR"}},"search":{},"seo":{"metatags":{"og:title":"Moss - Real-time Semantic Search for Conversational AI","og:description":"Turn lagging, robotic AI interactions into natural, human-like experiences with sub-10 ms semantic search. Moss runs where your agent lives - cloud, in-browser, or on-device - so search feels native and users never wait.","og:image":"/logo/moss-icon.png","og:site_name":"Moss Documentation","keywords":"semantic search, real-time search, conversational AI, voice AI, sub-10ms latency, vector database, AI search, embeddings, voice agents, LiveKit integration, Pipecat, JavaScript SDK, Python SDK, local-first, RAG, retrieval augmented generation, on-device search, in-browser search"},"indexing":"navigable"},"fonts":{"heading":{"family":"Geist","weight":700,"source":"https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-sans/Geist-Bold.woff2","format":"woff2"},"body":{"family":"Geist","weight":400,"source":"https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-sans/Geist-Regular.woff2","format":"woff2"}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"section","latex":false},"integrations":{"gtm":{"tagId":"GTM-KQM4HW76"}},"errors":{"404":{"redirect":false,"title":"Oops! Page Not Found","description":"The page you're looking for doesn't exist. Try searching or return to the [homepage](/)."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"thumbnails":{},"interaction":{"drilldown":false},"metadata":{"timestamp":false},"navigation":{"global":{"anchors":[{"anchor":"Join our Community","icon":"discord","color":{"light":"#7289da","dark":"#7289da"},"href":"https://discord.gg/eMXExuafBR"},{"anchor":"GitHub","icon":"github","color":{"light":"#24292e","dark":"#24292e"},"href":"https://github.com/usemoss/moss"},{"anchor":"Request a Demo","icon":"comments","href":"https://form.typeform.com/to/KdqOaXWu"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"moss-afcfb0b6","hasAudioNarration":false,"actualSubdomain":"moss-afcfb0b6","customDomains":["docs.moss.dev"],"gitSource":{"type":"github","owner":"usemoss","repo":"moss-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aef8a219b06b349588d78bf","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"SDK","count":94},{"language":"default","tag":"Reference","count":67},{"language":"default","tag":"JavaScript","count":38},{"language":"default","tag":"Python","count":36},{"language":"default","tag":"Retrieval","count":29},{"language":"default","tag":"Inference","count":23},{"language":"default","tag":"API Reference","count":21},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"How it works","count":14},{"language":"default","tag":"Founding Agent","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Geist Mono\";font-style:normal;font-weight:400;font-display:swap;src:url(\"https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-mono/GeistMono-Regular.woff2\") format(\"woff2\")}code,pre,kbd,samp{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}body{color:#0F1410}.docs-diagram-frame{margin:1.5rem 0;overflow-x:auto}.docs-diagram-wide{width:100%;min-width:640px;max-width:none}.docs-diagram-vertical{width:min(100%, 240px);margin:0 auto}.dark body,body.dark{color:#F1F1F1}.docs-home-title{color:#0F1410!important}.dark .docs-home-title{color:#F1F1F1!important}#topbar-cta-button,#topbar-cta-button *{color:#0F1410!important}*{scrollbar-width:thin;scrollbar-color:transparent transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:transparent;border-radius:9999px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-corner{background:transparent}*:hover{scrollbar-color:rgba(120, 120, 120, 0.35) transparent}*:hover::-webkit-scrollbar-thumb{background-color:rgba(120, 120, 120, 0.3)}*::-webkit-scrollbar-thumb:hover{background-color:rgba(120, 120, 120, 0.5)}.dark *:hover{scrollbar-color:rgba(200, 200, 200, 0.3) transparent}.dark *:hover::-webkit-scrollbar-thumb{background-color:rgba(200, 200, 200, 0.25)}.dark *::-webkit-scrollbar-thumb:hover{background-color:rgba(200, 200, 200, 0.45)}"}],"page":{"pagePath":"docs/api-reference/v1/index-management/initUpload","slug":"/docs/api-reference/v1/index-management/initUpload","pageMetadata":{"title":"Init Upload","description":"Get a presigned URL to upload index data for a new index.","mode":"wide","href":"/docs/api-reference/v1/index-management/initUpload"},"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: \"Get a presigned URL to upload index data for a new index.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Initialize an upload session for creating a new index. Returns a presigned URL where you can upload your pre-computed index data, along with a `,_jsx(_components.code,{children:`jobId`}),` to use with `,_jsx(_components.code,{children:`startBuild`}),` once the upload completes.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required fields`}),`: `,_jsx(_components.code,{children:`indexName`}),`, `,_jsx(_components.code,{children:`modelId`}),`, `,_jsx(_components.code,{children:`docCount`}),`, `,_jsx(_components.code,{children:`dimension`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`indexName`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Name for the new index.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modelId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`✅`}),_jsxs(_components.td,{children:[`Embedding model identifier (e.g. `,_jsx(_components.code,{children:`moss-minilm`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`docCount`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Total number of documents being uploaded.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dimension`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`✅`}),_jsxs(_components.td,{children:[`Embedding vector dimension (e.g. `,_jsx(_components.code,{children:`384`}),` for `,_jsx(_components.code,{children:`moss-minilm`}),`).`]})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example request`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,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:` \"https://service.usemoss.dev/v1/manage\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-service-version: v1\"`}),_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:` \"x-project-key: moss_access_key_xxxxx\"`}),_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:` \"action\": \"initUpload\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"projectId\": \"project_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"indexName\": \"support-faq\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelId\": \"moss-minilm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"docCount\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dimension\": 384`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Responses`})}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`200 - OK`,numberOfLines:`5`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"jobId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"uploadUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://\u003cbucket>.r2.cloudflarestorage.com/temp-uploads/\u003cproject_id>/\u003cjob_id>/data.bin?\u003csigned_params>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiresIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3600`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`jobId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Use this ID with `,_jsx(_components.code,{children:`startBuild`}),` after uploading.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`uploadUrl`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Presigned URL to `,_jsx(_components.code,{children:`PUT`}),` your index data. Expires after `,_jsx(_components.code,{children:`expiresIn`}),` seconds.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expiresIn`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Seconds until the upload URL expires (default `,_jsx(_components.code,{children:`3600`}),`).`]})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Errors`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400`}),` when `,_jsx(_components.code,{children:`docCount`}),` or `,_jsx(_components.code,{children:`dimension`}),` is missing or invalid.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`404`}),` if the project does not exist.`]}),`\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":"Init Upload","description":"Get a presigned URL to upload index data for a new index.","mode":"wide","href":"/docs/api-reference/v1/index-management/initUpload"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"moss-afcfb0b6","siteName":"Moss Docs","title":"Moss - Real-time Semantic Search for Conversational AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-18T20:53:43.101Z","originalFileLocation":"docs/api-reference/v1/index-management/initUpload.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=\"Get a presigned URL to upload index data for a new index.\">\u003cmeta data-mint-head name=\"keywords\" content=\"semantic search, real-time search, conversational AI, voice AI, sub-10ms latency, vector database, AI search, embeddings, voice agents, LiveKit integration, Pipecat, JavaScript SDK, Python SDK, local-first, RAG, retrieval augmented generation, on-device search, in-browser search\">\u003cmeta data-mint-head name=\"application-name\" content=\"Moss 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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_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/moss-afcfb0b6/WxlP12c017nWLz_Y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Moss - Real-time Semantic Search for Conversational AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turn lagging, robotic AI interactions into natural, human-like experiences with sub-10 ms semantic search. Moss runs where your agent lives - cloud, in-browser, or on-device - so search feels native and users never wait.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Moss Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://moss-afcfb0b6.mintlify.site/logo/moss-icon.png\">\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=\"Moss - Real-time Semantic Search for Conversational AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turn lagging, robotic AI interactions into natural, human-like experiences with sub-10 ms semantic search. Moss runs where your agent lives - cloud, in-browser, or on-device - so search feels native and users never wait.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://moss-afcfb0b6.mintlify.site/logo/moss-icon.png\">\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/moss-afcfb0b6/WxlP12c017nWLz_Y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Moss Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5C8A5C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/v1/index-management/initUpload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.moss.dev/#organization\",\"name\":\"Moss Docs\",\"url\":\"https://docs.moss.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/moss-afcfb0b6/ajTFkA1i1FLXX8GX/logo/moss-docs-logo.svg?fit=max\u0026auto=format\u0026n=ajTFkA1i1FLXX8GX\u0026q=85\u0026s=8df2ef0063df8040fea8bc955978ad25\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.moss.dev#website\",\"name\":\"Moss Docs\",\"url\":\"https://docs.moss.dev\",\"publisher\":{\"@id\":\"https://docs.moss.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload#webpage\",\"url\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload\",\"name\":\"Init Upload\",\"description\":\"Get a presigned URL to upload index data for a new index.\",\"dateModified\":\"2026-02-18T20:53:43.101Z\",\"isPartOf\":{\"@id\":\"https://docs.moss.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Moss Docs\",\"item\":\"https://docs.moss.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Init Upload\",\"item\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload#article\",\"headline\":\"Init Upload\",\"name\":\"Init Upload\",\"description\":\"Get a presigned URL to upload index data for a new index.\",\"url\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.moss.dev/docs/api-reference/v1/index-management/initUpload#webpage\"},\"image\":\"https://docs.moss.dev/logo/moss-icon.png\",\"dateModified\":\"2026-02-18T20:53:43.101Z\",\"publisher\":{\"@id\":\"https://docs.moss.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.moss.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Moss Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Moss Docs","nav":{"global":{"anchors":[{"anchor":"Join our Community","icon":"discord","color":{"light":"#7289da","dark":"#7289da"},"href":"https://discord.gg/eMXExuafBR"},{"anchor":"GitHub","icon":"github","color":{"light":"#24292e","dark":"#24292e"},"href":"https://github.com/usemoss/moss"},{"anchor":"Request a Demo","icon":"comments","href":"https://form.typeform.com/to/KdqOaXWu"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/docs"}]},{"tab":"Inference","pages":[{"title":"Inference","href":"/docs/inference/overview"}]},{"tab":"Retrieval","pages":[{"title":"Retrieval","href":"/docs/start/what-is-moss"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/docs/reference/sdk"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/docs/integrations/livekit"}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/docs/cookbook/langgraph"}]},{"tab":"API Reference","pages":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Introduction","mode":"wide","href":"/docs/api-reference/v1/getting-started/introduction"},{"title":"Authentication","mode":"wide","href":"/docs/api-reference/v1/getting-started/authentication"},{"title":"Overview","description":"Control Plane endpoint structure and shared request schema.","mode":"wide","href":"/docs/api-reference/v1/getting-started/overview"}]},{"group":"Index Management","icon":"table-list","pages":[{"title":"Init Upload","mode":"wide","href":"/docs/api-reference/v1/index-management/initUpload"},{"title":"Start Build","description":"Trigger an index build after uploading data.","mode":"wide","href":"/docs/api-reference/v1/index-management/startBuild"},{"title":"Get Job Status","mode":"wide","href":"/docs/api-reference/v1/index-management/getJobStatus"},{"title":"Get Index","mode":"wide","href":"/docs/api-reference/v1/index-management/getIndex"},{"title":"List Indexes","mode":"wide","href":"/docs/api-reference/v1/index-management/listIndex"},{"title":"Delete Index","mode":"wide","href":"/docs/api-reference/v1/index-management/deleteIndex"}]},{"group":"Web Sources","icon":"globe","pages":[{"title":"Create Web Source","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/createWebSource"},{"title":"List Web Sources","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/listWebSources"},{"title":"Get Web Source","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/getWebSource"},{"title":"Resync Web Source","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/resyncWebSource"},{"title":"Update Web Source","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/updateWebSource"},{"title":"Delete Web Source","mode":"wide","tag":"Preview","href":"/docs/api-reference/v1/web-sources/deleteWebSource"}]},{"group":"Document Operations","icon":"file-text","pages":[{"title":"Add Documents","mode":"wide","href":"/docs/api-reference/v1/document-operations/addDocs"},{"title":"Get Documents","mode":"wide","href":"/docs/api-reference/v1/document-operations/getDocs"},{"title":"Delete Documents","mode":"wide","href":"/docs/api-reference/v1/document-operations/deleteDocs"}]},{"group":"Inference","icon":"message-bot","pages":[{"title":"Chat Completions","mode":"wide","href":"/docs/api-reference/v1/inference/chat-completions"},{"title":"Responses","mode":"wide","href":"/docs/api-reference/v1/inference/responses"},{"title":"List models","mode":"wide","href":"/docs/api-reference/v1/inference/models"}]}]},{"tab":"Founding Agent","pages":[{"title":"Founding Agent","href":"/docs/founding-agent/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Moss - Real-time Semantic Search for Conversational AI","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}