Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived.
The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it.
A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved.
Use dryRun to get the archive’s content and exact size without stopping anything and without uploading.
Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Export options
async
boolean
Async starts the export and answers immediately, leaving it to run: an
archive of a large filesystem takes longer than a request may be held
open. Its progress is reported by /archive/status.
Example:
false
dryRun
boolean
DryRun reports what would be archived, and its exact size, without
stopping anything and without uploading.
Example:
false
excludes
string[]
Excludes are added to the paths excluded by default.
headers
object
Headers are sent with the upload request as given. A presigned URL only
accepts the headers it was signed for, so these have to match what the
caller signed: sending one that was not signed, or signing one that is not
sent, is rejected as a signature mismatch. Typical use is a storage class,
x-amz-storage-class: GLACIER_IR.
Show child attributes
imageDevice
string
ImageDevice is the device holding the pristine image. It is found on its
own, wherever the sandbox booted from attached it, and naming one here
only overrides that.
Example:
"/dev/vda"
imageMountPoint
string
ImageMountPoint is a directory where the pristine image is already mounted.
When set the image device is neither mounted nor unmounted.
Example:
"/mnt/lower"
multipart
object
Multipart uploads the archive part by part instead, which is how an
archive larger than the 5 GB a single PUT accepts is stored. It takes
precedence over URL.
Show child attributes
saveProcesses
boolean
SaveProcesses stores the process list in the archive so restore can
relaunch the workload. Defaults to true; set it to false to archive
storage only.
Example:
true
stopTimeoutSeconds
integer
StopTimeoutSeconds bounds the graceful stop of each process.
Example:
30
url
string
URL is a presigned S3 PUT URL the archive is streamed to. Empty is only
valid with DryRun, or with Multipart.
Example:
"https://bucket.s3.amazonaws.com/key?..."
Response
Export result
manifest
object
required
Show child attributes
changes
object[]
Changes lists every path in the archive. Only filled for a dry run,
where it is the point of the call.
Show child attributes
duration
string
Example:
"4.2s"
size
integer
Size is the exact number of bytes uploaded, known before the upload
starts since the archive is not compressed.
Example:
3074211
stoppedProcesses
string[]
StoppedProcesses are the processes stopped to freeze the filesystem.
uploaded
boolean
Uploaded is false for a dry run.
Example:
true
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Documentation","description":"Blaxel documentation: cloud sandboxes, AI agent hosting, MCP servers, batch jobs, and model gateway for building and deploying AI-powered applications.","colors":{"primary":"#F0652D","light":"#FD7B35","dark":"#F0652D"},"logo":{"light":"https://mintcdn.com/blaxel/Z-RIT2VoXMT2Aw7L/images/logo-light.svg?fit=max\u0026auto=format\u0026n=Z-RIT2VoXMT2Aw7L\u0026q=85\u0026s=7a7cf1e3c766c77f97f32e5c0d4fd209","dark":"https://mintcdn.com/blaxel/Z-RIT2VoXMT2Aw7L/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=Z-RIT2VoXMT2Aw7L\u0026q=85\u0026s=17297eca3e92fe15a91eed262f17d659"},"favicon":"https://mintcdn.com/blaxel/nH6Nd4qmP2OsLhOO/favicon.svg?fit=max\u0026auto=format\u0026n=nH6Nd4qmP2OsLhOO\u0026q=85\u0026s=484b8f0ebe3fb56aef259d514eeaa18c","appearance":{"default":"system"},"background":{"color":{"dark":"#09090B"}},"navbar":{"links":[{"icon":"calendar","href":"/changelog","label":"Changelog"},{"icon":"robot","href":"/skills-mcp","label":"Agent Skill"},{"icon":"puzzle-piece","href":"https://blaxel.ai/integrations","label":"Integrations"},{"icon":"discord","href":"/Community","label":"Community"}],"primary":{"type":"button","label":"Blaxel Console","href":"https://app.blaxel.ai"}},"footer":{"socials":{"github":"https://github.com/blaxel-ai","linkedin":"https://www.linkedin.com/company/blaxel-ai","twitter":"https://x.com/blaxelai","discord":"https://discord.gg/CsWKUZUHFQ"}},"search":{"prompt":"Search Blaxel docs..."},"seo":{"metatags":{"og:type":"website","og:site_name":"Blaxel Documentation"},"indexing":"navigable"},"fonts":{"family":"Inter"},"integrations":{"posthog":{"apiKey":"phc_HGJ7t7Qa8cJJilL0CONU5se4vM6jU6nKFCuoCC9LSha","apiHost":"https://events.blaxel.ai"}},"banner":{"content":"Blaxel has joined Baseten to build the future of agentic infrastructure! [Read our announcement.](https://www.baseten.co/blog/blaxel-is-joining-baseten-to-build-the-future-of-agentic-cloud/)","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","cursor","devin","download-spec"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"calendar","href":"/changelog"},{"anchor":"Blaxel Skills \u0026 MCP","icon":"robot","href":"/skills-mcp"},{"anchor":"Integrations directory","icon":"puzzle-piece","href":"https://blaxel.ai/integrations"},{"anchor":"Community","icon":"discord","href":"/Community"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"blaxel","hasAudioNarration":false,"actualSubdomain":"blaxel","customDomains":["docs.blaxel.ai"],"gitSource":{"type":"github","owner":"blaxel-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b04f311964f92a0ee1fb507","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Platform APIs Reference","count":180},{"language":"default","tag":"Management API","count":177},{"language":"default","tag":"Documentation","count":115},{"language":"default","tag":"Overview","count":75},{"language":"default","tag":"CLI Reference","count":73},{"language":"default","tag":"Commands","count":72},{"language":"default","tag":"Sandbox API Reference","count":46},{"language":"default","tag":"Troubleshooting","count":41},{"language":"default","tag":"Tutorials and Examples","count":35},{"language":"default","tag":"compute","count":35}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@blaxel.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar .nav-logo{height:2.5rem;width:auto}#navbar:has(#banner){display:flex;flex-direction:column}#navbar:has(#banner)>.max-w-8xl{width:100%}#navbar:has(#banner)>div[aria-hidden=\"true\"]{display:none}#banner{position:relative;inset:auto;order:1;padding:1.25rem 3rem;background:transparent;font-size:0.9375rem;font-weight:400}#banner>div{width:100%;max-width:70rem;margin:0;padding:1rem 3.5rem 1rem 1.75rem;border:1px solid #394655;border-radius:0.75rem;background:radial-gradient(ellipse at 50% 0, rgb(99 216 226 / 12%), transparent 70%),\n linear-gradient(110deg, #121b29, #081827 52%, #141925);box-shadow:0 12px 32px -16px rgb(7 11 17 / 40%),\n inset 0 1px 0 rgb(255 255 255 / 5%)}#banner>button{right:max(4rem, calc((100% - 70rem) / 2 + 1rem))}#banner p{color:#dbdbdb!important;line-height:1.5}#banner a{display:inline-flex;align-items:center;gap:0.5rem;margin-left:0.75rem;color:#fff!important;text-decoration:none;white-space:nowrap}#banner a::after{content:\"\";width:1.25rem;height:1.25rem;background-color:#eb7229;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h12M10 4l5 5-5 5'/%3E%3C/svg%3E\") center / contain no-repeat}#banner a:hover{text-decoration:underline;text-decoration-color:#fff}#banner a:focus-visible{border-radius:2px;outline:2px solid #eb7229;outline-offset:4px}@media (max-width: 767px){#banner{padding:1rem;text-align:left}#banner>div{padding:1rem 2.75rem 1rem 1rem}#banner a{display:flex;width:fit-content;margin:0.375rem 0 0}#banner>button{top:1.75rem;right:1.75rem;transform:none}}"}]}
{"page":{"pagePath":"api-reference/archive/export-the-filesystem-changes-to-a-presigned-url","slug":"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url","pageMetadata":{"title":"Export the filesystem changes to a presigned URL","description":"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived.\nThe sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it.\nA sandbox still frozen by an earlier export is exported as it is, with the process list that export saved.\nUse dryRun to get the archive's content and exact size without stopping anything and without uploading.\nSet async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /archive/export","href":"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url","autogeneratedByOpenApi":true},"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: \"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived.\\nThe sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it.\\nA sandbox still frozen by an earlier export is exported as it is, with the process list that export saved.\\nUse dryRun to get the archive’s content and exact size without stopping anything and without uploading.\\nSet async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Export the filesystem changes to a presigned URL","description":"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived.\nThe sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it.\nA sandbox still frozen by an earlier export is exported as it is, with the process list that export saved.\nUse dryRun to get the archive's content and exact size without stopping anything and without uploading.\nSet async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /archive/export","href":"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived.\nThe sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it.\nA sandbox still frozen by an earlier export is exported as it is, with the process list that export saved.\nUse dryRun to get the archive's content and exact size without stopping anything and without uploading.\nSet async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.","requestBody":"3dfeeca7-7d49-4ce3-93e5-6d1dc8044e53","responses":{"200":"1e576595-c509-4465-8330-603cb1c86e52","202":"4e55f270-9df6-475e-9b91-81410236f86a","400":"6e89da56-3f56-4e97-b85e-e0ed5039a66a","409":"8851f895-863a-4e2f-a487-745ee046a8d3","500":"736e349f-b071-4c40-832b-b98f54f8b86e"},"summary":"Export the filesystem changes to a presigned URL","tags":["archive"],"method":"post","type":"path","servers":["e213c565-3509-42d5-9b74-66f41a9cc7bc"],"security":["df3996ac-2411-4540-a856-3919b3dbf013"],"path":"/archive/export","baseUrlOptions":["https://sbx-{sandbox_id}-{workspace_id}.{region}.bl.run"],"title":"Export the filesystem changes to a presigned URL","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"async":{"description":"Async starts the export and answers immediately, leaving it to run: an\narchive of a large filesystem takes longer than a request may be held\nopen. Its progress is reported by /archive/status.","example":false,"type":"boolean","uniqueKey":"async","typeLabel":"boolean"},"dryRun":{"description":"DryRun reports what would be archived, and its exact size, without\nstopping anything and without uploading.","example":false,"type":"boolean","uniqueKey":"dryRun","typeLabel":"boolean"},"excludes":{"description":"Excludes are added to the paths excluded by default.","items":{"type":"string","uniqueKey":"excludes.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"excludes","typeLabel":"string[]"},"headers":{"additionalProperties":{"type":"string","uniqueKey":"headers.additionalProperties","typeLabel":"string"},"description":"Headers are sent with the upload request as given. A presigned URL only\naccepts the headers it was signed for, so these have to match what the\ncaller signed: sending one that was not signed, or signing one that is not\nsent, is rejected as a signature mismatch. Typical use is a storage class,\nx-amz-storage-class: GLACIER_IR.","type":"object","uniqueKey":"headers","typeLabel":"object"},"imageDevice":{"description":"ImageDevice is the device holding the pristine image. It is found on its\nown, wherever the sandbox booted from attached it, and naming one here\nonly overrides that.","example":"/dev/vda","type":"string","uniqueKey":"imageDevice","typeLabel":"string"},"imageMountPoint":{"description":"ImageMountPoint is a directory where the pristine image is already mounted.\nWhen set the image device is neither mounted nor unmounted.","example":"/mnt/lower","type":"string","uniqueKey":"imageMountPoint","typeLabel":"string"},"multipart":{"type":"object","description":"Multipart uploads the archive part by part instead, which is how an\narchive larger than the 5 GB a single PUT accepts is stored. It takes\nprecedence over URL.","properties":{"abortUrl":{"description":"AbortURL is a presigned DELETE URL that discards the parts already\nuploaded. Without it a failed export leaves them on the storage until a\nlifecycle rule removes them.","type":"string","uniqueKey":"multipart.abortUrl","typeLabel":"string"},"completeUrl":{"description":"CompleteURL is a presigned POST URL that assembles the parts.","type":"string","uniqueKey":"multipart.completeUrl","typeLabel":"string"},"partSize":{"description":"PartSize is the number of bytes sent to every part but the last.","example":536870912,"type":"integer","uniqueKey":"multipart.partSize","typeLabel":"integer"},"partUrls":{"description":"PartURLs are presigned PUT URLs, one per part, in order. Extra ones are\nleft unused.","items":{"type":"string","uniqueKey":"multipart.partUrls.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"multipart.partUrls","typeLabel":"string[]"}},"uniqueKey":"multipart","typeLabel":"object"},"saveProcesses":{"description":"SaveProcesses stores the process list in the archive so restore can\nrelaunch the workload. Defaults to true; set it to false to archive\nstorage only.","example":true,"type":"boolean","uniqueKey":"saveProcesses","typeLabel":"boolean"},"stopTimeoutSeconds":{"description":"StopTimeoutSeconds bounds the graceful stop of each process.","example":30,"type":"integer","uniqueKey":"stopTimeoutSeconds","typeLabel":"integer"},"url":{"description":"URL is a presigned S3 PUT URL the archive is streamed to. Empty is only\nvalid with DryRun, or with Multipart.","example":"https://bucket.s3.amazonaws.com/key?...","type":"string","uniqueKey":"url","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"async":false,"dryRun":false,"excludes":["\u003cstring>"],"headers":{},"imageDevice":"/dev/vda","imageMountPoint":"/mnt/lower","multipart":{"abortUrl":"\u003cstring>","completeUrl":"\u003cstring>","partSize":536870912,"partUrls":["\u003cstring>"]},"saveProcesses":true,"stopTimeoutSeconds":30,"url":"https://bucket.s3.amazonaws.com/key?..."}}},"exampleType":"generated"}},"description":"Export options","required":true,"exampleType":"generated"},"responses":{"1e576595-c509-4465-8330-603cb1c86e52":{"description":"Export result","content":{"application/json":{"schema":{"properties":{"manifest":{"properties":{"createdAt":{"type":"string","isRequired":true,"uniqueKey":"manifest.createdAt","typeLabel":"string"},"root":{"description":"Root is the directory the paths are relative to.","example":"/","type":"string","isRequired":true,"uniqueKey":"manifest.root","typeLabel":"string"},"version":{"example":1,"type":"integer","isRequired":true,"uniqueKey":"manifest.version","typeLabel":"integer"},"added":{"description":"Added and Modified count the archive's payload members.","example":11,"type":"integer","uniqueKey":"manifest.added","typeLabel":"integer"},"apiVersion":{"description":"APIVersion is the sandbox-api build that produced the archive.","example":"v0.1.0","type":"string","uniqueKey":"manifest.apiVersion","typeLabel":"string"},"deleted":{"description":"Deleted are paths the image has and the sandbox deleted. Tar cannot carry\na deletion, so import applies these from the manifest.","items":{"type":"string","uniqueKey":"manifest.deleted.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"manifest.deleted","typeLabel":"string[]"},"excludes":{"description":"Excludes are the paths left out of the comparison.","items":{"type":"string","uniqueKey":"manifest.excludes.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"manifest.excludes","typeLabel":"string[]"},"imageDevice":{"description":"ImageDevice is the device the pristine image was read from, for the record:\nit says where the sandbox that exported the archive found its image.","example":"/dev/vda","type":"string","uniqueKey":"manifest.imageDevice","typeLabel":"string"},"modified":{"example":3,"type":"integer","uniqueKey":"manifest.modified","typeLabel":"integer"},"payloadBytes":{"description":"PayloadBytes is the total content size of the payload members.","example":3073449,"type":"integer","uniqueKey":"manifest.payloadBytes","typeLabel":"integer"},"processes":{"description":"Processes tells whether ProcessesName is present.","example":true,"type":"boolean","uniqueKey":"manifest.processes","typeLabel":"boolean"}},"required":["createdAt","root","version"],"type":"object","isRequired":true,"uniqueKey":"manifest","typeLabel":"object"},"changes":{"description":"Changes lists every path in the archive. Only filled for a dry run,\nwhere it is the point of the call.","items":{"properties":{"kind":{"type":"string","enum":["added","modified","deleted"],"x-enum-varnames":["ChangeAdded","ChangeModified","ChangeDeleted"],"example":"added","isRequired":true,"uniqueKey":"changes.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"path":{"description":"Path is relative to the root, without a leading slash.","example":"usr/bin/curl","type":"string","isRequired":true,"uniqueKey":"changes.items.[INDEX].path","typeLabel":"string"},"size":{"description":"Size is the file content size in bytes, 0 for anything but a regular file.","example":256216,"type":"integer","uniqueKey":"changes.items.[INDEX].size","typeLabel":"integer"}},"required":["kind","path"],"type":"object","uniqueKey":"changes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"changes","typeLabel":"object[]"},"duration":{"example":"4.2s","type":"string","uniqueKey":"duration","typeLabel":"string"},"size":{"description":"Size is the exact number of bytes uploaded, known before the upload\nstarts since the archive is not compressed.","example":3074211,"type":"integer","uniqueKey":"size","typeLabel":"integer"},"stoppedProcesses":{"description":"StoppedProcesses are the processes stopped to freeze the filesystem.","items":{"type":"string","uniqueKey":"stoppedProcesses.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"stoppedProcesses","typeLabel":"string[]"},"uploaded":{"description":"Uploaded is false for a dry run.","example":true,"type":"boolean","uniqueKey":"uploaded","typeLabel":"boolean"}},"required":["manifest"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"manifest":{"createdAt":"\u003cstring>","root":"/","version":1,"added":11,"apiVersion":"v0.1.0","deleted":["\u003cstring>"],"excludes":["\u003cstring>"],"imageDevice":"/dev/vda","modified":3,"payloadBytes":3073449,"processes":true},"changes":[{"kind":"added","path":"usr/bin/curl","size":256216}],"duration":"4.2s","size":3074211,"stoppedProcesses":["\u003cstring>"],"uploaded":true}}},"exampleType":"generated"}},"exampleType":"generated"},"4e55f270-9df6-475e-9b91-81410236f86a":{"description":"The export was started and runs in the background","content":{"application/json":{"schema":{"properties":{"error":{"description":"Error is why the export failed, without the presigned URL it used.","type":"string","uniqueKey":"error","typeLabel":"string"},"finishedAt":{"type":"string","uniqueKey":"finishedAt","typeLabel":"string"},"size":{"description":"Size is the archive's exact size, known once the filesystem is scanned.","example":3074211,"type":"integer","uniqueKey":"size","typeLabel":"integer"},"startedAt":{"type":"string","uniqueKey":"startedAt","typeLabel":"string"},"state":{"type":"string","enum":["running","succeeded","failed"],"x-enum-varnames":["ExportRunning","ExportSucceeded","ExportFailed"],"example":"running","uniqueKey":"state","typeLabel":"enum\u003cstring>"},"uploaded":{"description":"Uploaded reports whether the storage holds the archive.","example":false,"type":"boolean","uniqueKey":"uploaded","typeLabel":"boolean"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","finishedAt":"\u003cstring>","size":3074211,"startedAt":"\u003cstring>","state":"running","uploaded":false}}},"exampleType":"generated"}},"exampleType":"generated"},"6e89da56-3f56-4e97-b85e-e0ed5039a66a":{"description":"Invalid request","content":{"application/json":{"schema":{"properties":{"error":{"example":"Error message","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"example":"FILE_ALREADY_EXISTS","type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Error message","code":"FILE_ALREADY_EXISTS"}}},"exampleType":"generated"}},"exampleType":"generated"},"8851f895-863a-4e2f-a487-745ee046a8d3":{"description":"An export is already in progress, or the sandbox is frozen for a restore","content":{"application/json":{"schema":{"properties":{"error":{"example":"Error message","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"example":"FILE_ALREADY_EXISTS","type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Error message","code":"FILE_ALREADY_EXISTS"}}},"exampleType":"generated"}},"exampleType":"generated"},"736e349f-b071-4c40-832b-b98f54f8b86e":{"description":"Export failed","content":{"application/json":{"schema":{"properties":{"error":{"example":"Error message","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"example":"FILE_ALREADY_EXISTS","type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Error message","code":"FILE_ALREADY_EXISTS"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"df3996ac-2411-4540-a856-3919b3dbf013":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"e213c565-3509-42d5-9b74-66f41a9cc7bc":{"url":"https://sbx-{sandbox_id}-{workspace_id}.{region}.bl.run","variables":{"sandbox_id":{"default":"unknown"},"workspace_id":{"default":"unknown"},"region":{"default":"unknown"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"},"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":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml"},"subdomain":"blaxel","siteName":"Documentation","title":"Export the filesystem changes to a presigned URL - Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/archive/export-the-filesystem-changes-to-a-presigned-url.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=\"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved. Use dryRun to get the archive\u0026#x27;s content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\">\u003cmeta data-mint-head name=\"application-name\" content=\"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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_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/blaxel/uaLoRkh_ONjRStCE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Export the filesystem changes to a presigned URL - Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved. Use dryRun to get the archive\u0026#x27;s content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Blaxel Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://blaxel.mintlify.site/_mintlify/api/og/v2?division=archive\u0026amp;title=Export+the+filesystem+changes+to+a+presigned+URL\u0026amp;description=Archives+everything+the+sandbox+changed+on+top+of+its+base+image+and+streams+it%2C+uncompressed%2C+to+a+presigned+S3+PUT+URL.+The+memory+of+the+sandbox+is+not+archi\u0026amp;theme=aa6a37f877c64d380f9dda80\u0026amp;signature=1011ea5f55916f39104b36b2742f12bee36b95f2199df303c0ab05644974530c\">\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=\"Export the filesystem changes to a presigned URL - Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved. Use dryRun to get the archive\u0026#x27;s content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://blaxel.mintlify.site/_mintlify/api/og/v2?division=archive\u0026amp;title=Export+the+filesystem+changes+to+a+presigned+URL\u0026amp;description=Archives+everything+the+sandbox+changed+on+top+of+its+base+image+and+streams+it%2C+uncompressed%2C+to+a+presigned+S3+PUT+URL.+The+memory+of+the+sandbox+is+not+archi\u0026amp;theme=aa6a37f877c64d380f9dda80\u0026amp;signature=1011ea5f55916f39104b36b2742f12bee36b95f2199df303c0ab05644974530c\">\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/blaxel/uaLoRkh_ONjRStCE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F0652D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.blaxel.ai/#organization\",\"name\":\"Documentation\",\"url\":\"https://docs.blaxel.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/blaxel/Z-RIT2VoXMT2Aw7L/images/logo-light.svg?fit=max\u0026auto=format\u0026n=Z-RIT2VoXMT2Aw7L\u0026q=85\u0026s=7a7cf1e3c766c77f97f32e5c0d4fd209\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.blaxel.ai#website\",\"name\":\"Documentation\",\"url\":\"https://docs.blaxel.ai\",\"publisher\":{\"@id\":\"https://docs.blaxel.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url#webpage\",\"url\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url\",\"name\":\"Export the filesystem changes to a presigned URL\",\"description\":\"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved. Use dryRun to get the archive's content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\",\"isPartOf\":{\"@id\":\"https://docs.blaxel.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentation\",\"item\":\"https://docs.blaxel.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export the filesystem changes to a presigned URL\",\"item\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url#apireference\",\"headline\":\"Export the filesystem changes to a presigned URL\",\"name\":\"Export the filesystem changes to a presigned URL\",\"description\":\"Archives everything the sandbox changed on top of its base image and streams it, uncompressed, to a presigned S3 PUT URL. The memory of the sandbox is not archived. The sandbox is quiesced first: the process list is saved (unless saveProcesses is false), every process is stopped, and the API then refuses the calls that would write to the filesystem. The freeze is not lifted afterwards, since an exported sandbox is meant to be restored elsewhere; call POST /archive/resume to lift it. A sandbox still frozen by an earlier export is exported as it is, with the process list that export saved. Use dryRun to get the archive's content and exact size without stopping anything and without uploading. Set async to start the export and answer immediately, which is what archiving a large filesystem needs: the export then reports itself through GET /archive/status.\",\"url\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url\",\"mainEntityOfPage\":{\"@id\":\"https://docs.blaxel.ai/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url#webpage\"},\"publisher\":{\"@id\":\"https://docs.blaxel.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.blaxel.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url.md","siteName":"Documentation","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"calendar","href":"/changelog"},{"anchor":"Blaxel Skills \u0026 MCP","icon":"robot","href":"/skills-mcp"},{"anchor":"Integrations directory","icon":"puzzle-piece","href":"https://blaxel.ai/integrations"},{"anchor":"Community","icon":"discord","href":"/Community"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/Overview"}]},{"tab":"Tutorials and Examples","pages":[{"title":"Tutorials and Examples","href":"/Tutorials/Overview"}]},{"tab":"Platform APIs Reference","pages":[{"title":"Platform APIs Reference","href":"/api-reference/introduction"}]},{"tab":"Sandbox API Reference","groups":[{"group":"archive","pages":[{"title":"Export the filesystem changes to a presigned URL","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /archive/export","href":"/api-reference/archive/export-the-filesystem-changes-to-a-presigned-url"},{"title":"Lift the archive freeze","description":"Makes the API serve every route again after an export. The processes stopped for the export are not relaunched: this exists so a failed or aborted export does not leave the sandbox unusable.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /archive/resume","href":"/api-reference/archive/lift-the-archive-freeze"},{"title":"Get the archive status","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /archive/status","href":"/api-reference/archive/get-the-archive-status"}]},{"group":"fastapply","pages":[{"title":"Apply code edit","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml put /codegen/fastapply/{path}","href":"/api-reference/fastapply/apply-code-edit"}]},{"group":"codegen","pages":[{"title":"Code reranking/semantic search","deprecated":true,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /codegen/reranking/{path}","href":"/api-reference/codegen/code-rerankingsemantic-search"}]},{"group":"drive","pages":[{"title":"List currently mounted drives","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /drives/mount","href":"/api-reference/drive/list-currently-mounted-drives"},{"title":"Attach a drive to a local path","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /drives/mount","href":"/api-reference/drive/attach-a-drive-to-a-local-path"},{"title":"Detach a drive from a local path","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /drives/mount/{mountPath}","href":"/api-reference/drive/detach-a-drive-from-a-local-path"}]},{"group":"system","pages":[{"title":"Reload environment from guest metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /environment/reload","href":"/api-reference/system/reload-environment-from-guest-metadata"},{"title":"Health check","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /health","href":"/api-reference/system/health-check"},{"title":"Resume the sandbox","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /resume","href":"/api-reference/system/resume-the-sandbox"},{"title":"Put the sandbox in standby","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /standby","href":"/api-reference/system/put-the-sandbox-in-standby"},{"title":"Upgrade the sandbox-api","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /upgrade","href":"/api-reference/system/upgrade-the-sandbox-api"}]},{"group":"filesystem","pages":[{"title":"Search for text content in files","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem-content-search/{path}","href":"/api-reference/filesystem/search-for-text-content-in-files"},{"title":"Copy a file or directory","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /filesystem-copy","href":"/api-reference/filesystem/copy-a-file-or-directory"},{"title":"Find files and directories","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem-find/{path}","href":"/api-reference/filesystem/find-files-and-directories"},{"title":"List multipart uploads","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem-multipart","href":"/api-reference/filesystem/list-multipart-uploads"},{"title":"Abort multipart upload","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /filesystem-multipart/{uploadId}/abort","href":"/api-reference/filesystem/abort-multipart-upload"},{"title":"Complete multipart upload","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /filesystem-multipart/{uploadId}/complete","href":"/api-reference/filesystem/complete-multipart-upload"},{"title":"Upload part","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml put /filesystem-multipart/{uploadId}/part","href":"/api-reference/filesystem/upload-part"},{"title":"List parts","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem-multipart/{uploadId}/parts","href":"/api-reference/filesystem/list-parts"},{"title":"Initiate multipart upload","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /filesystem-multipart/initiate/{path}","href":"/api-reference/filesystem/initiate-multipart-upload"},{"title":"Fuzzy search for files and directories","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem-search/{path}","href":"/api-reference/filesystem/fuzzy-search-for-files-and-directories"},{"title":"Get file or directory information","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem/{path}","href":"/api-reference/filesystem/get-file-or-directory-information"},{"title":"Create or update a file or directory","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml put /filesystem/{path}","href":"/api-reference/filesystem/create-or-update-a-file-or-directory"},{"title":"Delete file or directory","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /filesystem/{path}","href":"/api-reference/filesystem/delete-file-or-directory"},{"title":"Stat a file or directory","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml head /filesystem/{path}","href":"/api-reference/filesystem/stat-a-file-or-directory"},{"title":"Get directory tree","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /filesystem/tree/{path}","href":"/api-reference/filesystem/get-directory-tree"},{"title":"Create or update directory tree","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml put /filesystem/tree/{path}","href":"/api-reference/filesystem/create-or-update-directory-tree"},{"title":"Delete directory tree","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /filesystem/tree/{path}","href":"/api-reference/filesystem/delete-directory-tree"},{"title":"Stream file modification events in a directory","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /watch/filesystem/{path}","href":"/api-reference/filesystem/stream-file-modification-events-in-a-directory"}]},{"group":"network","pages":[{"title":"Start monitoring ports for a process","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /network/process/{pid}/monitor","href":"/api-reference/network/start-monitoring-ports-for-a-process"},{"title":"Stop monitoring ports for a process","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /network/process/{pid}/monitor","href":"/api-reference/network/stop-monitoring-ports-for-a-process"},{"title":"Get open ports for a process","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /network/process/{pid}/ports","href":"/api-reference/network/get-open-ports-for-a-process"},{"title":"Disconnect tunnel","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /network/tunnel","href":"/api-reference/network/disconnect-tunnel"},{"title":"Update tunnel configuration","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml put /network/tunnel/config","href":"/api-reference/network/update-tunnel-configuration"}]},{"group":"process","pages":[{"title":"List all processes","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /process","href":"/api-reference/process/list-all-processes"},{"title":"Execute a command","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /process","href":"/api-reference/process/execute-a-command"},{"title":"Get process by identifier","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /process/{identifier}","href":"/api-reference/process/get-process-by-identifier"},{"title":"Stop a process","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /process/{identifier}","href":"/api-reference/process/stop-a-process"},{"title":"Kill a process","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /process/{identifier}/kill","href":"/api-reference/process/kill-a-process"},{"title":"Get process logs","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /process/{identifier}/logs","href":"/api-reference/process/get-process-logs"},{"title":"Stream process logs in real time","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /process/{identifier}/logs/stream","href":"/api-reference/process/stream-process-logs-in-real-time"},{"title":"Write to a process's stdin","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml post /process/{identifier}/stdin","href":"/api-reference/process/write-to-a-processs-stdin"},{"title":"Close a process's stdin","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml delete /process/{identifier}/stdin","href":"/api-reference/process/close-a-processs-stdin"},{"title":"Wait for a process to finish","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/blaxel-ai/sandbox/refs/heads/main/sandbox-api/docs/openapi.yml get /process/{identifier}/wait","href":"/api-reference/process/wait-for-a-process-to-finish"}]}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference/introduction"}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli-reference/introduction"}]},{"tab":"Deployment Reference","pages":[{"title":"Deployment Reference","href":"/deployment-reference"}]}]},"basePath":"","title":"Export the filesystem changes to a presigned URL - Documentation","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-C6Yt8aJE.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js"]}