Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project’s default folder.
The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes.
Each conversion counts toward your plan’s monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.
Upload a document and get it back in another format, saved as a new asset.
Use it when the file isn’t in Dreep yet, or when you want the converted file
stored on its own. For documents you’ve already uploaded, you can also
convert them by URL.
With no folder given, the result is saved to the project’s default folder.
Name one with folder (a path, created on demand), folderId (a UUID) or
key (a full path that also names the file):
Anything else returns 400 with the formats that file can convert to.
Converting a spreadsheet to csv exports its first sheet.To render one page of a PDF as an image, pass page:
The request waits for the result, up to two minutes. Most documents take a
second or two and return 201.A very long document returns 202 with status: "processing". The asset
already exists, and its url answers 202 until the conversion finishes,
then serves the file. Poll the URL, as with
video transformations.
Each conversion counts toward your plan’s monthly document conversions:
Free 100, Starter 2,000, Pro 10,000. Once those are used,
conversions come from a +1,000 add-on pack ($4.99). If the same document was
already converted the same way through its fetch URL, that result is reused
for free.
Free
Starter and Pro
Largest document
10 MB
100 MB
PDF output
First 5 pages
All pages
PDF to Word
Not included
Included
PDF page images
Pages 1 to 5
Any page
Going over a limit returns 402 with code: "LIMIT_EXCEEDED" and
featureKey: "document_conversions_monthly". The saved result also counts
toward your storage, so a full storage quota returns 402 too. A conversion
only counts once the result is stored, so a failed request costs nothing.
Only when converting a PDF to png or jpeg: which page to render as the image (page 1 if omitted). Leave it out for every other format - those always include all pages.
{"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":""},"chroma":{"collectionId":"4147ef37-2c95-4e1a-a3ea-8a3597d1b528","liveDeploymentHistoryId":"6aeb8c1aade2e7c90cd545b0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb8c1aade2e7c90cd545b0"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeb8c1aade2e7c90cd545b0","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Go SDK","count":18},{"language":"default","tag":"Node SDK","count":18},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Media","count":13},{"language":"default","tag":"Presets","count":9},{"language":"default","tag":"Upload","count":9},{"language":"default","tag":"Folders","count":6},{"language":"default","tag":"OCR","count":4},{"language":"default","tag":"Getting Started","count":4}]},"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":"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":"vite-origin","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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/documents/convert-document","slug":"/api-reference/documents/convert-document","pageMetadata":{"title":"Convert Document","openapi":"POST /api/v1/convert","description":"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project's default folder.\n\nThe request waits for the conversion, up to two minutes. Most documents take a second or two and return `201` with the ready asset. A very long one returns `202`: the asset is created and its `url` answers `202` until the conversion finishes.\n\nEach conversion counts toward your plan's monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\n","href":"/api-reference/documents/convert-document"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project’s default folder.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The request waits for the conversion, up to two minutes. Most documents take a second or two and return \", _jsx(_components.code, {\n children: \"201\"\n }), \" with the ready asset. A very long one returns \", _jsx(_components.code, {\n children: \"202\"\n }), \": the asset is created and its \", _jsx(_components.code, {\n children: \"url\"\n }), \" answers \", _jsx(_components.code, {\n children: \"202\"\n }), \" until the conversion finishes.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Each conversion counts toward your plan’s monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\"\n })]\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Upload a document and get it back in another format, saved as a new asset.\nUse it when the file isn’t in Dreep yet, or when you want the converted file\nstored on its own. For documents you’ve already uploaded, you can also\n`,_jsx(_components.a,{href:`/transformations/documents`,children:`convert them by URL`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`word-to-pdf`,children:`Word to PDF`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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://api.dreep.cloud/api/v1/convert\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer drp_live_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"[email protected]\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format=pdf\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,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:` \"asset\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5c1d8a72-3f0e-4b8d-9a61-2e7b4c9d0f13\"`}),_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:` \"folderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a41f0c2e-6b7d-4e8a-9f3c-1d2e5b6a7c8d\"`}),_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:` \"filename\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contract.pdf\"`}),_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:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pdf\"`}),_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:` \"mimetype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/pdf\"`}),_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:` \"sizeBytes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`104719`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ready\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.dreep.cloud/api/v1/fetch/5c1d8a72-3f0e-4b8d-9a61-2e7b4c9d0f13.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`saving-to-a-folder`,children:`Saving to a folder`}),`\n`,_jsxs(_components.p,{children:[`With no folder given, the result is saved to the project’s default folder.\nName one with `,_jsx(_components.code,{children:`folder`}),` (a path, created on demand), `,_jsx(_components.code,{children:`folderId`}),` (a UUID) or\n`,_jsx(_components.code,{children:`key`}),` (a full path that also names the file):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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://api.dreep.cloud/api/v1/convert\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer drp_live_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"[email protected]\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format=pdf\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder=reports/2026\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/folders-and-paths`,children:`Folders \u0026 Paths`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-converts-to-what`,children:`What converts to what`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Upload`}),_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`format`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[`Word: `,_jsx(_components.code,{children:`doc`}),`, `,_jsx(_components.code,{children:`docx`}),`, `,_jsx(_components.code,{children:`odt`}),`, `,_jsx(_components.code,{children:`rtf`})]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`docx`}),`, `,_jsx(_components.code,{children:`odt`}),`, `,_jsx(_components.code,{children:`rtf`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[`Excel: `,_jsx(_components.code,{children:`xls`}),`, `,_jsx(_components.code,{children:`xlsx`}),`, `,_jsx(_components.code,{children:`ods`}),`, `,_jsx(_components.code,{children:`csv`})]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`xlsx`}),`, `,_jsx(_components.code,{children:`ods`}),`, `,_jsx(_components.code,{children:`csv`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[`PowerPoint: `,_jsx(_components.code,{children:`ppt`}),`, `,_jsx(_components.code,{children:`pptx`}),`, `,_jsx(_components.code,{children:`odp`})]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`pptx`}),`, `,_jsx(_components.code,{children:`odp`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`PDF`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`docx`}),`, `,_jsx(_components.code,{children:`png`}),`, `,_jsx(_components.code,{children:`jpeg`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Anything else returns `,_jsx(_components.code,{children:`400`}),` with the formats that file can convert to.\nConverting a spreadsheet to `,_jsx(_components.code,{children:`csv`}),` exports its first sheet.`]}),`\n`,_jsxs(_components.p,{children:[`To render one page of a PDF as an image, pass `,_jsx(_components.code,{children:`page`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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://api.dreep.cloud/api/v1/convert\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer drp_live_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"[email protected]\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format=png\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"page=2\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`long-conversions`,children:`Long conversions`}),`\n`,_jsxs(_components.p,{children:[`The request waits for the result, up to two minutes. Most documents take a\nsecond or two and return `,_jsx(_components.code,{children:`201`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A very long document returns `,_jsx(_components.code,{children:`202`}),` with `,_jsx(_components.code,{children:`status: \"processing\"`}),`. The asset\nalready exists, and its `,_jsx(_components.code,{children:`url`}),` answers `,_jsx(_components.code,{children:`202`}),` until the conversion finishes,\nthen serves the file. Poll the URL, as with\n`,_jsx(_components.a,{href:`/transformations/videos`,children:`video transformations`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`billing-and-limits`,children:`Billing and limits`}),`\n`,_jsxs(_components.p,{children:[`Each conversion counts toward your plan’s monthly document conversions:\n`,_jsx(_components.strong,{children:`Free`}),` 100, `,_jsx(_components.strong,{children:`Starter`}),` 2,000, `,_jsx(_components.strong,{children:`Pro`}),` 10,000. Once those are used,\nconversions come from a +1,000 add-on pack ($4.99). If the same document was\nalready converted the same way through its fetch URL, that result is reused\nfor free.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`}}),_jsx(_components.th,{style:{textAlign:`left`},children:`Free`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Starter and Pro`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Largest document`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`10 MB`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`100 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`PDF output`}),_jsx(_components.td,{style:{textAlign:`left`},children:`First 5 pages`}),_jsx(_components.td,{style:{textAlign:`left`},children:`All pages`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`PDF to Word`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Not included`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Included`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`PDF page images`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Pages 1 to 5`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Any page`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Going over a limit returns `,_jsx(_components.code,{children:`402`}),` with `,_jsx(_components.code,{children:`code: \"LIMIT_EXCEEDED\"`}),` and\n`,_jsx(_components.code,{children:`featureKey: \"document_conversions_monthly\"`}),`. The saved result also counts\ntoward your storage, so a full storage quota returns `,_jsx(_components.code,{children:`402`}),` too. A conversion\nonly counts once the result is stored, so a failed request costs nothing.`]})]})}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":"Convert Document","openapi":"POST /api/v1/convert","description":"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project's default folder.\n\nThe request waits for the conversion, up to two minutes. Most documents take a second or two and return `201` with the ready asset. A very long one returns `202`: the asset is created and its `url` answers `202` until the conversion finishes.\n\nEach conversion counts toward your plan's monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\n","href":"/api-reference/documents/convert-document"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Word to PDF","slug":"word-to-pdf","depth":2,"children":[]},{"title":"Saving to a folder","slug":"saving-to-a-folder","depth":2,"children":[]},{"title":"What converts to what","slug":"what-converts-to-what","depth":2,"children":[]},{"title":"Long conversions","slug":"long-conversions","depth":2,"children":[]},{"title":"Billing and limits","slug":"billing-and-limits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dreep/94f2727abcb3c306/update_openapi.js"],"openApiReferenceData":{"operation":{"summary":"Convert Document","description":"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project's default folder.\n\nThe request waits for the conversion, up to two minutes. Most documents take a second or two and return `201` with the ready asset. A very long one returns `202`: the asset is created and its `url` answers `202` until the conversion finishes.\n\nEach conversion counts toward your plan's monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\n","tags":["Media"],"security":["a80ce9d8-1a54-4f54-8c95-d99551196361"],"requestBody":"7e68148a-b6aa-4538-9c6b-8fe0d93938fd","responses":{"201":"06ca7960-8a36-4f26-8110-af1714a40acd","202":"f3f2ce2c-aa9b-4ba4-b030-3ec924c5e859","400":"81a6686b-df25-40dd-bf58-4c092d22f97d","401":"e6c836cc-b865-4466-bb90-fc5e08fbe865","402":"0d3d1c0d-45bb-44da-8a2e-01047f2a065e","413":"12bf6afe-eb78-4076-9ad3-b3a2a04e7e15","502":"7a15e989-32b2-42bc-b3d2-5b74e1b63acc"},"method":"post","type":"path","servers":["2784756b-b8fc-4c58-8fee-98c8e0ba9eec"],"path":"/api/v1/convert","baseUrlOptions":["https://api.dreep.cloud"],"title":"Convert Document","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","format"],"properties":{"file":{"type":"string","format":"binary","description":"The document to convert. Word (doc, docx, odt, rtf), Excel (xls, xlsx, ods, csv), PowerPoint (ppt, pptx, odp) or PDF.\n","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"format":{"type":"string","enum":["pdf","docx","odt","rtf","xlsx","ods","csv","pptx","odp","png","jpeg"],"description":"The format to convert to. Documents convert within their own family (a spreadsheet can't become a Word document); PDFs convert to docx, png or jpeg.\n","isRequired":true,"uniqueKey":"format","typeLabel":"enum\u003cstring>"},"page":{"type":"integer","minimum":1,"description":"Only when converting a PDF to `png` or `jpeg`: which page to render as the image (page 1 if omitted). Leave it out for every other format - those always include all pages.\n","uniqueKey":"page","typeLabel":"integer"},"folder":{"type":"string","description":"Slug path of the folder to save the result into, relative to the project root. Missing folders are created.\n","example":"contracts/pdf","uniqueKey":"folder","typeLabel":"string"},"folderId":{"type":"string","format":"uuid","description":"UUID of an existing folder to save the result into. Mutually exclusive with `folder`.\n","uniqueKey":"folderId","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Full storage path for the result, e.g. `contracts/pdf/acme`. The folder part is created like `folder`; the last segment names the file.\n","uniqueKey":"key","typeLabel":"string"},"autoCreateFolders":{"type":"string","enum":["true","false"],"default":"true","description":"Set to `false` to require that `folder` already exists.","uniqueKey":"autoCreateFolders","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","page":2,"folder":"contracts/pdf","folderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"\u003cstring>","autoCreateFolders":"true"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"06ca7960-8a36-4f26-8110-af1714a40acd":{"description":"Document converted and saved","content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"object","description":"The saved result.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"asset.id","typeLabel":"string\u003cuuid>"},"folderId":{"type":"string","format":"uuid","uniqueKey":"asset.folderId","typeLabel":"string\u003cuuid>"},"filename":{"type":"string","example":"contract.pdf","uniqueKey":"asset.filename","typeLabel":"string"},"format":{"type":"string","example":"pdf","uniqueKey":"asset.format","typeLabel":"string"},"mimetype":{"type":"string","example":"application/pdf","uniqueKey":"asset.mimetype","typeLabel":"string"},"sizeBytes":{"type":"integer","description":"0 while still processing.","uniqueKey":"asset.sizeBytes","typeLabel":"integer"},"status":{"type":"string","enum":["ready","processing"],"uniqueKey":"asset.status","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Fetch URL for the result.","uniqueKey":"asset.url","typeLabel":"string"}},"uniqueKey":"asset","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"asset":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","folderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","filename":"contract.pdf","format":"pdf","mimetype":"application/pdf","sizeBytes":123,"status":"ready","url":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f3f2ce2c-aa9b-4ba4-b030-3ec924c5e859":{"description":"Still converting after two minutes. The asset exists with `status: \"processing\"`; its `url` answers `202` until it's ready.\n","content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"object","description":"The saved result.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"asset.id","typeLabel":"string\u003cuuid>"},"folderId":{"type":"string","format":"uuid","uniqueKey":"asset.folderId","typeLabel":"string\u003cuuid>"},"filename":{"type":"string","example":"contract.pdf","uniqueKey":"asset.filename","typeLabel":"string"},"format":{"type":"string","example":"pdf","uniqueKey":"asset.format","typeLabel":"string"},"mimetype":{"type":"string","example":"application/pdf","uniqueKey":"asset.mimetype","typeLabel":"string"},"sizeBytes":{"type":"integer","description":"0 while still processing.","uniqueKey":"asset.sizeBytes","typeLabel":"integer"},"status":{"type":"string","enum":["ready","processing"],"uniqueKey":"asset.status","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Fetch URL for the result.","uniqueKey":"asset.url","typeLabel":"string"}},"uniqueKey":"asset","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"asset":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","folderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","filename":"contract.pdf","format":"pdf","mimetype":"application/pdf","sizeBytes":123,"status":"ready","url":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"81a6686b-df25-40dd-bf58-4c092d22f97d":{"description":"Unsupported file type or format pair, `page` on a non-image format, a bad folder, or a document that can't be converted (corrupt or password-protected, or a page it doesn't have).\n","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"},"e6c836cc-b865-4466-bb90-fc5e08fbe865":{"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"},"0d3d1c0d-45bb-44da-8a2e-01047f2a065e":{"description":"Monthly document conversions or storage used up, or a paid-only conversion on the Free plan (PDF to Word, page images past page 5). The body carries `code: \"LIMIT_EXCEEDED\"` and the `featureKey`.\n","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"},"12bf6afe-eb78-4076-9ad3-b3a2a04e7e15":{"description":"The document is over your plan's size limit (10 MB on Free, 100 MB on paid plans).","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"},"7a15e989-32b2-42bc-b3d2-5b74e1b63acc":{"description":"The conversion failed for a reason other than the document. Safe to retry.","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":{"a80ce9d8-1a54-4f54-8c95-d99551196361":{"ApiKeyAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"2784756b-b8fc-4c58-8fee-98c8e0ba9eec":{"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":"Convert Document - Dreep API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T19:48:47.380Z","originalFileLocation":"api-reference/documents/convert-document.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=\"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project\u0026#x27;s default folder. The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes. Each conversion counts toward your plan\u0026#x27;s monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\">\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=\"Convert Document - Dreep API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project\u0026#x27;s default folder. The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes. Each conversion counts toward your plan\u0026#x27;s monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\">\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/documents/convert-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dreep.mintlify.app/_mintlify/api/og/v2?division=Documents\u0026amp;title=Convert+Document\u0026amp;description=Upload+a+document+and+convert+it+to+another+format+-+Word+to+PDF%2C+PDF+to+Word%2C+a+spreadsheet+to+CSV%2C+a+PDF+page+to+an+image.+The+result+is+saved+to+your+Dreep+s\u0026amp;theme=926f4afbdf6913c3e6ae193d\u0026amp;signature=0afe270a3eec6ff901ab43de7b7586798a68db5060f346f2e6079b9decd0c362\">\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=\"Convert Document - Dreep API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project\u0026#x27;s default folder. The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes. Each conversion counts toward your plan\u0026#x27;s monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dreep.mintlify.app/_mintlify/api/og/v2?division=Documents\u0026amp;title=Convert+Document\u0026amp;description=Upload+a+document+and+convert+it+to+another+format+-+Word+to+PDF%2C+PDF+to+Word%2C+a+spreadsheet+to+CSV%2C+a+PDF+page+to+an+image.+The+result+is+saved+to+your+Dreep+s\u0026amp;theme=926f4afbdf6913c3e6ae193d\u0026amp;signature=0afe270a3eec6ff901ab43de7b7586798a68db5060f346f2e6079b9decd0c362\">\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/documents/convert-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/documents/convert-document.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/documents/convert-document#webpage\",\"url\":\"https://docs.dreep.cloud/api-reference/documents/convert-document\",\"name\":\"Convert Document\",\"description\":\"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project's default folder. The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes. Each conversion counts toward your plan's monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\",\"dateModified\":\"2026-11-04T19:48:47.380Z\",\"isPartOf\":{\"@id\":\"https://docs.dreep.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dreep.cloud/api-reference/documents/convert-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dreep.cloud/api-reference/documents/convert-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dreep API Documentation\",\"item\":\"https://docs.dreep.cloud\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert Document\",\"item\":\"https://docs.dreep.cloud/api-reference/documents/convert-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dreep.cloud/api-reference/documents/convert-document#apireference\",\"headline\":\"Convert Document\",\"name\":\"Convert Document\",\"description\":\"Upload a document and convert it to another format - Word to PDF, PDF to Word, a spreadsheet to CSV, a PDF page to an image. The result is saved to your Dreep storage as a new asset, in the folder you name or the project's default folder. The request waits for the conversion, up to two minutes. Most documents take a second or two and return 201 with the ready asset. A very long one returns 202: the asset is created and its url answers 202 until the conversion finishes. Each conversion counts toward your plan's monthly document conversions. If the same document was already converted the same way through its fetch URL, that result is reused for free.\",\"url\":\"https://docs.dreep.cloud/api-reference/documents/convert-document\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dreep.cloud/api-reference/documents/convert-document#webpage\"},\"dateModified\":\"2026-11-04T19:48:47.380Z\",\"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\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","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","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","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","description":"Upload an image and get back a cutout of the subject with a transparent background, saved to your Dreep storage as a new asset.\n\nThe cutout keeps its alpha channel — it is never flattened onto a colour. To serve it on a background, pass `bg` to the fetch endpoint (`/api/v1/fetch/{id}?bg=ffffff`). That runs as an ordinary transformation, so a single removal can serve any number of background colours without being charged again.\n\nBackground removals are billed from a consumable add-on rather than a plan allowance. With no credits remaining the endpoint returns `402`.\n","href":"/api-reference/bg-remove/remove-background"}]},{"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}","description":"Get an asset by ID, applying optional transforms on the fly via query parameters.\n\nThis endpoint is public (no API key needed) — how much of that matters depends on the access control of the folder the asset lives in: - **public** folders: fetchable by anyone with the URL. - **private** folders: not fetchable through this endpoint at all. Private\n assets can only be viewed by an authenticated project member from the\n Dreep dashboard.\n- **signed** folders: not fetchable with a bare URL, but accessible via temporary time-limited URLs generated using your project's URL Signing Secret (with `exp` and `sig` HMAC-SHA256 query parameters).\nA request for a private or signed asset without valid credentials returns `401`.\n","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":"Go SDK","pages":[{"title":"Go SDK","href":"/go-sdk/introduction"}]}]},"basePath":"","title":"Convert Document - Dreep API Documentation","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}