Use this instead of Upload Media for large
files and browser uploads — the bytes go directly to storage and never pass
through the Dreep API.The flow is three steps:
POST /api/v1/upload/presign → returns an id and an uploadUrl.
PUT the raw file bytes to uploadUrl, with a Content-Type matching the
contentType you declared.
Until step 3 the asset stays pending and is excluded from media listings.
Destination
The destination folder is named exactly as it is for a direct upload — with
folder, key, or folderId — and missing folders are created for you. When
you pass a key, its last segment supplies the filename, so filename becomes
optional. See Folders & Paths.
Skipping the upload for content Dreep already has
Send contentHash (the SHA-256 of the file). If it matches content already in
storage, the response has "alreadyExists": true and no uploadUrl — skip the
PUT and go straight to confirm.
The uploadUrl is short-lived and single-purpose. Generate it server-side and
hand it to the client immediately; don’t cache or reuse it.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
contentType
string
required
Example:
"image/webp"
sizeBytes
integer
required
Example:
438720
filename
string
Name to store the file under. Optional if key is given (its last segment supplies it), or if omitted entirely a name is generated for you.
Example:
"me.webp"
folder
string
Slug path of the destination folder. Missing folders are created.
Example:
"avatars/2024"
key
string
Full S3-style object key (folder path + filename).
Example:
"avatars/2024/me.webp"
folderId
string<uuid>
UUID of an existing destination folder.
autoCreateFolders
enum<string>
default:true
Available options:
true,
false
format
string
Target format to re-encode to on confirm.
presetKey
string
contentHash
string
SHA-256 of the file, used to skip re-uploading content Dreep already has.
autoTag
boolean
default:false
Set to true to tag the image in the background once the upload is confirmed. Charged per image. Ignored for files.
autoIndex
boolean
default:false
Set to true to index the image for similar and text search once the upload is confirmed. Charged per image. Ignored for files.
Response
Presigned upload created
id
string<uuid>
Pass this to the confirm endpoint.
uploadUrl
string
Short-lived URL to PUT the file bytes to. Absent when alreadyExists is true.
contentType
string
alreadyExists
boolean
tagStatus
enum<string> | null
Where tagging has got to. skipped means the account had no credit left for tagging. Null when tagging was never asked for.
Available options:
pending,
done,
failed,
skipped
indexStatus
enum<string> | null
Where search indexing has got to. skipped means the account had no credit left for indexing. Null when indexing was never asked for.
Available options:
pending,
done,
failed,
skipped
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dreep API Documentation","colors":{"primary":"#10B981","light":"#34D399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/light.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=17d21f346b62521c576a44e667803e4b","dark":"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/dark.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=df259f51557b6b7e99e6d7ea6a7766e8"},"favicon":"https://mintcdn.com/dreep/8uHSPvhv7SPM0QJk/favicon.ico?fit=max\u0026auto=format\u0026n=8uHSPvhv7SPM0QJk\u0026q=85\u0026s=77d50b88312fb792ec51954806d22ec7","api":{"openapi":"openapi.yaml","playground":{"display":"interactive","proxy":false}},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Website","href":"https://dreep.cloud"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dreep","hasAudioNarration":false,"actualSubdomain":"dreep","customDomains":["docs.dreep.cloud"],"gitSource":{"type":"github","owner":"indigosoftwares21","repo":"dreep_docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f6e89ffae5051c419d2b"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b135966151e8e3916c8feb4","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Guides","count":28},{"language":"default","tag":"Node SDK","count":28},{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Python SDK","count":20},{"language":"default","tag":"Media","count":19},{"language":"default","tag":"Go SDK","count":18},{"language":"default","tag":"Presets","count":12},{"language":"default","tag":"Upload","count":12},{"language":"default","tag":"Image Tags","count":10},{"language":"default","tag":"Folders","count":8}]},"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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/upload/create-presigned-upload","slug":"/api-reference/upload/create-presigned-upload","pageMetadata":{"title":"Create Presigned Upload","description":"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.","openapi":"POST /api/v1/upload/presign","href":"/api-reference/upload/create-presigned-upload"},"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 short-lived URL to upload file bytes straight to storage, bypassing the API.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use this instead of `,_jsx(_components.a,{href:`/api-reference/upload/upload-media`,children:`Upload Media`}),` for large\nfiles and browser uploads — the bytes go directly to storage and never pass\nthrough the Dreep API.`]}),`\n`,_jsx(_components.p,{children:`The flow is three steps:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`POST /api/v1/upload/presign`}),` → returns an `,_jsx(_components.code,{children:`id`}),` and an `,_jsx(_components.code,{children:`uploadUrl`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`PUT`}),` the raw file bytes to `,_jsx(_components.code,{children:`uploadUrl`}),`, with a `,_jsx(_components.code,{children:`Content-Type`}),` matching the\n`,_jsx(_components.code,{children:`contentType`}),` you declared.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/upload/confirm-upload`,children:_jsx(_components.code,{children:`POST /api/v1/upload/{id}/confirm`})}),` to\nfinalize the asset.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Until step 3 the asset stays `,_jsx(_components.code,{children:`pending`}),` and is excluded from media listings.`]}),`\n`,_jsx(Heading,{level:`2`,id:`destination`,children:`Destination`}),`\n`,_jsxs(_components.p,{children:[`The destination folder is named exactly as it is for a direct upload — with\n`,_jsx(_components.code,{children:`folder`}),`, `,_jsx(_components.code,{children:`key`}),`, or `,_jsx(_components.code,{children:`folderId`}),` — and missing folders are created for you. When\nyou pass a `,_jsx(_components.code,{children:`key`}),`, its last segment supplies the filename, so `,_jsx(_components.code,{children:`filename`}),` becomes\noptional. See `,_jsx(_components.a,{href:`/guides/folders-and-paths`,children:`Folders \u0026 Paths`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`skipping-the-upload-for-content-dreep-already-has`,children:`Skipping the upload for content Dreep already has`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`contentHash`}),` (the SHA-256 of the file). If it matches content already in\nstorage, the response has `,_jsx(_components.code,{children:`\"alreadyExists\": true`}),` and no `,_jsx(_components.code,{children:`uploadUrl`}),` — skip the\n`,_jsx(_components.code,{children:`PUT`}),` and go straight to confirm.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`uploadUrl`}),` is short-lived and single-purpose. Generate it server-side and\nhand it to the client immediately; don’t cache or reuse it.`]})})]})}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":"Create Presigned Upload","description":"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.","openapi":"POST /api/v1/upload/presign","href":"/api-reference/upload/create-presigned-upload"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Destination","slug":"destination","depth":2,"children":[]},{"title":"Skipping the upload for content Dreep already has","slug":"skipping-the-upload-for-content-dreep-already-has","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dreep/94f2727abcb3c306/update_openapi.js"],"openApiReferenceData":{"operation":{"summary":"Create Presigned Upload","description":"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.","tags":["Upload"],"requestBody":"92f563f1-ce3f-4daa-a099-71da4e64484c","responses":{"201":"52ff08da-f8da-4121-82a0-5ac0e41619f6","400":"e38fa458-958b-4727-981e-433bde851582","401":"ae9e23f3-27a2-44d7-99c6-c5ac496ef9ae","402":"257e00dc-eda8-4b5f-8752-c735ce0469fb","404":"31dacfef-5eab-4dbd-b32c-bab4f615b92e"},"method":"post","type":"path","servers":["40dcd937-d68e-4980-97fa-24b3ab1f5f59"],"security":["1aa709a2-cd4e-42c2-8c83-d292be0daa2e"],"path":"/api/v1/upload/presign","baseUrlOptions":["https://api.dreep.cloud"],"title":"Create Presigned Upload","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","example":"image/webp","isRequired":true,"uniqueKey":"contentType","typeLabel":"string"},"sizeBytes":{"type":"integer","example":438720,"isRequired":true,"uniqueKey":"sizeBytes","typeLabel":"integer"},"filename":{"type":"string","description":"Name to store the file under. Optional if `key` is given (its last segment supplies it), or if omitted entirely a name is generated for you.\n","example":"me.webp","uniqueKey":"filename","typeLabel":"string"},"folder":{"type":"string","description":"Slug path of the destination folder. Missing folders are created.","example":"avatars/2024","uniqueKey":"folder","typeLabel":"string"},"key":{"type":"string","description":"Full S3-style object key (folder path + filename).","example":"avatars/2024/me.webp","uniqueKey":"key","typeLabel":"string"},"folderId":{"type":"string","format":"uuid","description":"UUID of an existing destination folder.","uniqueKey":"folderId","typeLabel":"string\u003cuuid>"},"autoCreateFolders":{"type":"string","enum":["true","false"],"default":"true","uniqueKey":"autoCreateFolders","typeLabel":"enum\u003cstring>"},"format":{"type":"string","description":"Target format to re-encode to on confirm.","uniqueKey":"format","typeLabel":"string"},"presetKey":{"type":"string","uniqueKey":"presetKey","typeLabel":"string"},"contentHash":{"type":"string","description":"SHA-256 of the file, used to skip re-uploading content Dreep already has.","uniqueKey":"contentHash","typeLabel":"string"},"autoTag":{"type":"boolean","default":false,"description":"Set to `true` to tag the image in the background once the upload is confirmed. Charged per image. Ignored for files.\n","uniqueKey":"autoTag","typeLabel":"boolean"},"autoIndex":{"type":"boolean","default":false,"description":"Set to `true` to index the image for similar and text search once the upload is confirmed. Charged per image. Ignored for files.\n","uniqueKey":"autoIndex","typeLabel":"boolean"}},"required":["contentType","sizeBytes"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"contentType":"image/webp","sizeBytes":438720,"filename":"me.webp","folder":"avatars/2024","key":"avatars/2024/me.webp","folderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","autoCreateFolders":"true","format":"\u003cstring>","presetKey":"\u003cstring>","contentHash":"\u003cstring>","autoTag":false,"autoIndex":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"52ff08da-f8da-4121-82a0-5ac0e41619f6":{"description":"Presigned upload created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Pass this to the confirm endpoint.","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"uploadUrl":{"type":"string","description":"Short-lived URL to PUT the file bytes to. Absent when `alreadyExists` is true.","uniqueKey":"uploadUrl","typeLabel":"string"},"contentType":{"type":"string","uniqueKey":"contentType","typeLabel":"string"},"alreadyExists":{"type":"boolean","uniqueKey":"alreadyExists","typeLabel":"boolean"},"tagStatus":{"oneOf":[{"type":"string","enum":["pending","done","failed","skipped"],"description":"Where tagging has got to. `skipped` means the account had no credit left for tagging. Null when tagging was never asked for.\n","uniqueKey":"tagStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","done","failed","skipped"],"description":"Where tagging has got to. `skipped` means the account had no credit left for tagging. Null when tagging was never asked for.\n","uniqueKey":"tagStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"tagStatus","typeLabel":"enum\u003cstring> | null"},"indexStatus":{"oneOf":[{"type":"string","enum":["pending","done","failed","skipped"],"description":"Where search indexing has got to. `skipped` means the account had no credit left for indexing. Null when indexing was never asked for.\n","uniqueKey":"indexStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","done","failed","skipped"],"description":"Where search indexing has got to. `skipped` means the account had no credit left for indexing. Null when indexing was never asked for.\n","uniqueKey":"indexStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"indexStatus","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","uploadUrl":"\u003cstring>","contentType":"\u003cstring>","alreadyExists":true,"tagStatus":"pending","indexStatus":"pending"}}},"exampleType":"generated"}},"exampleType":"generated"},"e38fa458-958b-4727-981e-433bde851582":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"ae9e23f3-27a2-44d7-99c6-c5ac496ef9ae":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"257e00dc-eda8-4b5f-8752-c735ce0469fb":{"description":"A plan limit for this feature has been reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"},"31dacfef-5eab-4dbd-b32c-bab4f615b92e":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","example":true,"uniqueKey":"error","typeLabel":"boolean"},"message":{"type":"string","example":"Invalid request parameters","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"invalid_request","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":true,"message":"Invalid request parameters","code":"invalid_request"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1aa709a2-cd4e-42c2-8c83-d292be0daa2e":{"ApiKeyAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"40dcd937-d68e-4980-97fa-24b3ab1f5f59":{"url":"https://api.dreep.cloud","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"dreep","siteName":"Dreep API Documentation","title":"Create Presigned Upload - Dreep API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T06:29:24.855Z","originalFileLocation":"api-reference/upload/create-presigned-upload.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 short-lived URL to upload file bytes straight to storage, bypassing the API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_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/dreep/J4ca-p5ijThJrjBG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Presigned Upload - Dreep API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dreep.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Create+Presigned+Upload\u0026amp;description=Get+a+short-lived+URL+to+upload+file+bytes+straight+to+storage%2C+bypassing+the+API.\u0026amp;theme=9c1bcf76cf08ac46df0f4cfe\u0026amp;signature=45c6490cc528054731a2c6658af0f60478a793037f385d402faf412a4e5ae6c6\">\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=\"Create Presigned Upload - Dreep API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dreep.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Create+Presigned+Upload\u0026amp;description=Get+a+short-lived+URL+to+upload+file+bytes+straight+to+storage%2C+bypassing+the+API.\u0026amp;theme=9c1bcf76cf08ac46df0f4cfe\u0026amp;signature=45c6490cc528054731a2c6658af0f60478a793037f385d402faf412a4e5ae6c6\">\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/dreep/J4ca-p5ijThJrjBG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dreep API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/upload/create-presigned-upload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dreep.cloud/#organization\",\"name\":\"Dreep API Documentation\",\"url\":\"https://docs.dreep.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dreep/B5OflqGFw_jNEs7c/logo/light.svg?fit=max\u0026auto=format\u0026n=B5OflqGFw_jNEs7c\u0026q=85\u0026s=17d21f346b62521c576a44e667803e4b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dreep.cloud#website\",\"name\":\"Dreep API Documentation\",\"url\":\"https://docs.dreep.cloud\",\"publisher\":{\"@id\":\"https://docs.dreep.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload#webpage\",\"url\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload\",\"name\":\"Create Presigned Upload\",\"description\":\"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.\",\"dateModified\":\"2026-08-03T06:29:24.855Z\",\"isPartOf\":{\"@id\":\"https://docs.dreep.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Upload\",\"item\":\"https://docs.dreep.cloud/api-reference/upload/upload-media\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Presigned Upload\",\"item\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload#apireference\",\"headline\":\"Create Presigned Upload\",\"name\":\"Create Presigned Upload\",\"description\":\"Get a short-lived URL to upload file bytes straight to storage, bypassing the API.\",\"url\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dreep.cloud/api-reference/upload/create-presigned-upload#webpage\"},\"dateModified\":\"2026-08-03T06:29:24.855Z\",\"publisher\":{\"@id\":\"https://docs.dreep.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dreep.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dreep API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dreep API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/upload/create-presigned-upload.md","siteName":"Dreep API Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Upload","icon":"cloud-arrow-up","pages":[{"title":"Upload Media","description":"Upload images, videos, or raw files in a single multipart request, with optional transformations.","openapi":"POST /api/v1/upload","href":"/api-reference/upload/upload-media"},{"title":"Create Presigned Upload","openapi":"POST /api/v1/upload/presign","href":"/api-reference/upload/create-presigned-upload"},{"title":"Confirm Upload","description":"Finalize a presigned upload once the file bytes have reached storage.","openapi":"POST /api/v1/upload/{id}/confirm","href":"/api-reference/upload/confirm-upload"}]},{"group":"OCR","icon":"text-size","pages":[{"title":"Upload \u0026 Extract Text","openapi":"POST /api/v1/ocr","href":"/api-reference/ocr/upload-extract-text"},{"title":"Extract Text (OCR)","openapi":"GET /api/v1/fetch/{mediaId}.txt","href":"/api-reference/ocr/extract-text"}]},{"group":"Background Removal","icon":"eraser","pages":[{"title":"Remove Background","openapi":"POST /api/v1/bg-remove","href":"/api-reference/bg-remove/remove-background"}]},{"group":"Image Tags","pages":[{"title":"Tag Image","openapi":"POST /api/v1/image-tagging","href":"/api-reference/image-tags/tag-image"},{"title":"Tag Media","openapi":"POST /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/tag-media"},{"title":"Get Media Tags","openapi":"GET /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/get-media-tags"},{"title":"Set Media Tags","openapi":"PUT /api/v1/media/{mediaId}/tags","href":"/api-reference/image-tags/set-media-tags"},{"title":"List Tags","openapi":"GET /api/v1/tags","href":"/api-reference/image-tags/list-tags"}]},{"group":"Image Search","pages":[{"title":"Index Media","openapi":"POST /api/v1/media/{mediaId}/index","href":"/api-reference/image-search/index-media"},{"title":"Find Similar Media","openapi":"GET /api/v1/media/{mediaId}/similar","href":"/api-reference/image-search/find-similar-media"},{"title":"Search Media","openapi":"GET /api/v1/media/search","href":"/api-reference/image-search/search-media"}]},{"group":"Documents","icon":"file-lines","pages":[{"title":"Convert Document","openapi":"POST /api/v1/convert","href":"/api-reference/documents/convert-document"}]},{"group":"Media","icon":"image","pages":[{"title":"Fetch Media","openapi":"GET /api/v1/fetch/{mediaId}","href":"/api-reference/media/fetch-media"},{"title":"List Media Assets","openapi":"GET /api/v1/media","href":"/api-reference/media/list-media"},{"title":"Delete Media Asset","openapi":"DELETE /api/v1/media/{mediaId}","href":"/api-reference/media/delete-media"}]},{"group":"Folders","icon":"folder","pages":[{"title":"Create Folder","openapi":"POST /api/v1/folders","href":"/api-reference/folders/create-folder"},{"title":"List Folders","openapi":"GET /api/v1/folders","href":"/api-reference/folders/list-folders"}]},{"group":"Presets","icon":"sliders","pages":[{"title":"Create Preset","openapi":"POST /api/v1/presets","href":"/api-reference/presets/create-preset"},{"title":"List Presets","openapi":"GET /api/v1/presets","href":"/api-reference/presets/list-presets"},{"title":"Delete Preset","openapi":"DELETE /api/v1/presets/{id}","href":"/api-reference/presets/delete-preset"}]},{"group":"Usage \u0026 Billing","icon":"chart-simple","pages":[{"title":"Get Usage \u0026 Billing Limits","openapi":"GET /api/v1/usage","href":"/api-reference/usage/get-limits"}]}]},{"tab":"Node SDK","pages":[{"title":"Node SDK","href":"/node-sdk/introduction"}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/python-sdk/introduction"}]},{"tab":"Go SDK","pages":[{"title":"Go SDK","href":"/go-sdk/introduction"}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/introduction"}]}]},"basePath":"","title":"Create Presigned Upload - Dreep API Documentation","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}