There is also a bulk variant of this operation at PATCH /api/v1/workspaces/{workspaceId}/storage/files — same body shape, plus a top-level fileId field to select the target file.
Errors
Status
Error
400
fileId is required / destFolderPath is required for move / newName is required for rename
400
Missing fileId or fileType (Get Content)
401
Unauthorized
404
File not found / Storage key not found / Empty file
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SundayPyjamas AI Suite","colors":{"primary":"#52525B","light":"#A1A1AA","dark":"#27272A"},"logo":{"light":"https://mintcdn.com/sundaypyjamas/mPtTCdYgcCjb2V3-/logo/dark.svg?fit=max\u0026auto=format\u0026n=mPtTCdYgcCjb2V3-\u0026q=85\u0026s=e5e3e1e59634cc40750fcd055681aa89","dark":"https://mintcdn.com/sundaypyjamas/mPtTCdYgcCjb2V3-/logo/light.svg?fit=max\u0026auto=format\u0026n=mPtTCdYgcCjb2V3-\u0026q=85\u0026s=b9d1555ea0161f6a3430f051ece1ad65","href":"https://suite.sundaypyjamas.com"},"favicon":"https://mintcdn.com/sundaypyjamas/cBD4NursMvkHwenF/favicon.ico?fit=max\u0026auto=format\u0026n=cBD4NursMvkHwenF\u0026q=85\u0026s=5434345933ef2101b5a73c0c78e619f4","background":{"decoration":"gradient"},"navbar":{"links":[],"primary":{"type":"button","label":"Get API Key","href":"https://suite.sundaypyjamas.com"}},"footer":{"socials":{"github":"https://github.com/sundaypyjamas"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"API Platform","icon":"gauge-high","href":"https://suite.sundaypyjamas.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/sundaypyjamas"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sundaypyjamas","hasAudioNarration":false,"actualSubdomain":"sundaypyjamas","customDomains":["docs.sundaypyjamas.com"],"gitSource":{"type":"github","owner":"sundaypyjamas","repo":"ai-suite-platform-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92b3fc650774b1d01b165:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":31},{"language":"default","tag":"User Guide","count":26},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Work with Agents","count":6},{"language":"default","tag":"Manage \u0026 Get Help","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"More Ways to Work","count":5},{"language":"default","tag":"Useful Skills","count":5},{"language":"default","tag":"Apps","count":4},{"language":"default","tag":"Storage","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar{z-index:30}.dark #navbar,.dark #navbar-transition{background-color:#0a0a0a!important;opacity:1!important}html:not(.dark) #navbar,html:not(.dark) #navbar-transition{background-color:#ffffff!important;opacity:1!important}#sidebar-content .pointer-events-none.sticky{display:none!important}#navigation-items{padding-top:0.5rem}"}]}
{"page":{"pagePath":"api-reference/storage/files","slug":"/api-reference/storage/files","pageMetadata":{"title":"Files","description":"List, move, rename, and read file content","href":"/api-reference/storage/files"},"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: \"List, move, rename, and read file content\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`list-files`,children:`List Files`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{query:`type`,type:`string`,default:`all`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`all`}),` · `,_jsx(_components.code,{children:`images`}),` · `,_jsx(_components.code,{children:`deliverables`}),` · `,_jsx(_components.code,{children:`documents`}),` · `,_jsx(_components.code,{children:`files`})]})}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,default:`50`,id:`param-limit`,children:`Capped at 200.`}),`\n`,_jsx(ParamField,{query:`search`,type:`string`,id:`param-search`,children:`Filename search (partial match).`}),`\n`,_jsx(ResponseField,{name:`files`,type:`StorageFile[]`,id:`param-files`,children:_jsxs(Expandable,{title:`StorageFile`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`}),_jsxs(ResponseField,{name:`type`,type:`string`,id:`param-type-1`,children:[_jsx(_components.code,{children:`image`}),` · `,_jsx(_components.code,{children:`deliverable`}),` · `,_jsx(_components.code,{children:`document`}),` · `,_jsx(_components.code,{children:`file`})]}),_jsx(ResponseField,{name:`filename`,type:`string`,id:`param-filename`}),_jsx(ResponseField,{name:`mimeType`,type:`string`,id:`param-mime-type`}),_jsx(ResponseField,{name:`sizeBytes`,type:`number | null`,id:`param-size-bytes`}),_jsx(ResponseField,{name:`source`,type:`string | null`,id:`param-source`,children:`Human-readable origin label`}),_jsx(ResponseField,{name:`sourceId`,type:`string | null`,id:`param-source-id`,children:`App ID, run ID, or upload ID that produced this file`}),_jsx(ResponseField,{name:`presignedUrl`,type:`string | null`,id:`param-presigned-url`,children:`Signed S3 URL, valid 15 minutes`}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`}),_jsxs(ResponseField,{name:`path`,type:`string`,id:`param-path`,children:[`Logical path in the workspace tree (`,_jsx(_components.code,{children:`type: \"file\"`}),` only)`]}),_jsx(ResponseField,{name:`isIndexed`,type:`boolean`,id:`param-is-indexed`}),_jsxs(ResponseField,{name:`indexStatus`,type:`string`,id:`param-index-status`,children:[_jsx(_components.code,{children:`none`}),` · `,_jsx(_components.code,{children:`queued`}),` · `,_jsx(_components.code,{children:`processing`}),` · `,_jsx(_components.code,{children:`ready`}),` · `,_jsx(_components.code,{children:`failed`})]}),_jsx(ResponseField,{name:`isGitHubMirror`,type:`boolean`,id:`param-is-git-hub-mirror`,children:`True if this file was imported from GitHub`}),_jsx(ResponseField,{name:`externalRef`,type:`object`,id:`param-external-ref`,children:`GitHub repo/branch/commit metadata, if applicable`})]})}),`\n`,_jsxs(ResponseField,{name:`totals`,type:`object`,id:`param-totals`,children:[_jsx(_components.code,{children:`{ images, deliverables, documents, files }`}),` counts`]}),`\n`,_jsx(ResponseField,{name:`hasMore`,type:`boolean`,id:`param-has-more`}),`\n`,`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-file-content`,children:`Get File Content`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage/content`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{query:`fileId`,type:`string`,required:true,id:`param-file-id`}),`\n`,_jsxs(ParamField,{query:`fileType`,type:`string`,required:true,id:`param-file-type`,children:[_jsx(_components.code,{children:`image`}),` · `,_jsx(_components.code,{children:`deliverable`}),` · `,_jsx(_components.code,{children:`document`}),` · `,_jsx(_components.code,{children:`file`})]}),`\n`,_jsxs(_components.p,{children:[`Streams the raw file with `,_jsx(_components.code,{children:`Content-Type`}),` set to the stored MIME type and `,_jsx(_components.code,{children:`Content-Disposition: inline`}),`.`]}),`\n`,`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`move-or-rename-file`,children:`Move or Rename File`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage/files/{fileId}`})]}),`\n`]})})}),`\n`,_jsxs(ParamField,{body:`action`,type:`string`,default:`rename`,id:`param-action`,children:[_jsx(_components.code,{children:`move`}),` or `,_jsx(_components.code,{children:`rename`})]}),`\n`,_jsxs(ParamField,{body:`destFolderPath`,type:`string`,id:`param-dest-folder-path`,children:[`Required when `,_jsx(_components.code,{children:`action`}),` is `,_jsx(_components.code,{children:`move`}),`.`]}),`\n`,_jsxs(ParamField,{body:`newName`,type:`string`,id:`param-new-name`,children:[`Required when `,_jsx(_components.code,{children:`action`}),` is `,_jsx(_components.code,{children:`rename`}),`.`]}),`\n`,`\n`,`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`There is also a bulk variant of this operation at `,_jsx(_components.code,{children:`PATCH /api/v1/workspaces/{workspaceId}/storage/files`}),` — same body shape, plus a top-level `,_jsx(_components.code,{children:`fileId`}),` field to select the target file.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`fileId is required`}),` / `,_jsx(_components.code,{children:`destFolderPath is required for move`}),` / `,_jsx(_components.code,{children:`newName is required for rename`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Missing fileId or fileType`}),` (Get Content)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Unauthorized`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`File not found`}),` / `,_jsx(_components.code,{children:`Storage key not found`}),` / `,_jsx(_components.code,{children:`Empty file`})]})]})]})]})]})}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":"Files","description":"List, move, rename, and read file content","href":"/api-reference/storage/files"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`list-files`,children:`List Files`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{query:`type`,type:`string`,default:`all`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`all`}),` · `,_jsx(_components.code,{children:`images`}),` · `,_jsx(_components.code,{children:`deliverables`}),` · `,_jsx(_components.code,{children:`documents`}),` · `,_jsx(_components.code,{children:`files`})]})}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,default:`50`,id:`param-limit`,children:`Capped at 200.`}),`\n`,_jsx(ParamField,{query:`search`,type:`string`,id:`param-search`,children:`Filename search (partial match).`}),`\n`,_jsx(ResponseField,{name:`files`,type:`StorageFile[]`,id:`param-files`,children:_jsxs(Expandable,{title:`StorageFile`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`}),_jsxs(ResponseField,{name:`type`,type:`string`,id:`param-type-1`,children:[_jsx(_components.code,{children:`image`}),` · `,_jsx(_components.code,{children:`deliverable`}),` · `,_jsx(_components.code,{children:`document`}),` · `,_jsx(_components.code,{children:`file`})]}),_jsx(ResponseField,{name:`filename`,type:`string`,id:`param-filename`}),_jsx(ResponseField,{name:`mimeType`,type:`string`,id:`param-mime-type`}),_jsx(ResponseField,{name:`sizeBytes`,type:`number | null`,id:`param-size-bytes`}),_jsx(ResponseField,{name:`source`,type:`string | null`,id:`param-source`,children:`Human-readable origin label`}),_jsx(ResponseField,{name:`sourceId`,type:`string | null`,id:`param-source-id`,children:`App ID, run ID, or upload ID that produced this file`}),_jsx(ResponseField,{name:`presignedUrl`,type:`string | null`,id:`param-presigned-url`,children:`Signed S3 URL, valid 15 minutes`}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`}),_jsxs(ResponseField,{name:`path`,type:`string`,id:`param-path`,children:[`Logical path in the workspace tree (`,_jsx(_components.code,{children:`type: \"file\"`}),` only)`]}),_jsx(ResponseField,{name:`isIndexed`,type:`boolean`,id:`param-is-indexed`}),_jsxs(ResponseField,{name:`indexStatus`,type:`string`,id:`param-index-status`,children:[_jsx(_components.code,{children:`none`}),` · `,_jsx(_components.code,{children:`queued`}),` · `,_jsx(_components.code,{children:`processing`}),` · `,_jsx(_components.code,{children:`ready`}),` · `,_jsx(_components.code,{children:`failed`})]}),_jsx(ResponseField,{name:`isGitHubMirror`,type:`boolean`,id:`param-is-git-hub-mirror`,children:`True if this file was imported from GitHub`}),_jsx(ResponseField,{name:`externalRef`,type:`object`,id:`param-external-ref`,children:`GitHub repo/branch/commit metadata, if applicable`})]})}),`\n`,_jsxs(ResponseField,{name:`totals`,type:`object`,id:`param-totals`,children:[_jsx(_components.code,{children:`{ images, deliverables, documents, files }`}),` counts`]}),`\n`,_jsx(ResponseField,{name:`hasMore`,type:`boolean`,id:`param-has-more`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://suite.sundaypyjamas.com/api/v1/workspaces/ws_123/storage?type=documents\u0026limit=20\"`}),_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 spj_ai_your_api_key_here\"`})]}),`\n`]})})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-file-content`,children:`Get File Content`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage/content`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{query:`fileId`,type:`string`,required:true,id:`param-file-id`}),`\n`,_jsxs(ParamField,{query:`fileType`,type:`string`,required:true,id:`param-file-type`,children:[_jsx(_components.code,{children:`image`}),` · `,_jsx(_components.code,{children:`deliverable`}),` · `,_jsx(_components.code,{children:`document`}),` · `,_jsx(_components.code,{children:`file`})]}),`\n`,_jsxs(_components.p,{children:[`Streams the raw file with `,_jsx(_components.code,{children:`Content-Type`}),` set to the stored MIME type and `,_jsx(_components.code,{children:`Content-Disposition: inline`}),`.`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://suite.sundaypyjamas.com/api/v1/workspaces/ws_123/storage/content?fileId=file_1\u0026fileType=document\"`}),_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 spj_ai_your_api_key_here\"`}),_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:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` downloaded-file.pdf`})]}),`\n`]})})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`move-or-rename-file`,children:`Move or Rename File`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/workspaces/{workspaceId}/storage/files/{fileId}`})]}),`\n`]})})}),`\n`,_jsxs(ParamField,{body:`action`,type:`string`,default:`rename`,id:`param-action`,children:[_jsx(_components.code,{children:`move`}),` or `,_jsx(_components.code,{children:`rename`})]}),`\n`,_jsxs(ParamField,{body:`destFolderPath`,type:`string`,id:`param-dest-folder-path`,children:[`Required when `,_jsx(_components.code,{children:`action`}),` is `,_jsx(_components.code,{children:`move`}),`.`]}),`\n`,_jsxs(ParamField,{body:`newName`,type:`string`,id:`param-new-name`,children:[`Required when `,_jsx(_components.code,{children:`action`}),` is `,_jsx(_components.code,{children:`rename`}),`.`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,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:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://suite.sundaypyjamas.com/api/v1/workspaces/ws_123/storage/files/file_1`}),_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 spj_ai_your_api_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"action\": \"move\", \"destFolderPath\": \"/archive\" }'`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"file_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"report.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/archive/report.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`]})})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`There is also a bulk variant of this operation at `,_jsx(_components.code,{children:`PATCH /api/v1/workspaces/{workspaceId}/storage/files`}),` — same body shape, plus a top-level `,_jsx(_components.code,{children:`fileId`}),` field to select the target file.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`fileId is required`}),` / `,_jsx(_components.code,{children:`destFolderPath is required for move`}),` / `,_jsx(_components.code,{children:`newName is required for rename`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Missing fileId or fileType`}),` (Get Content)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Unauthorized`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`File not found`}),` / `,_jsx(_components.code,{children:`Storage key not found`}),` / `,_jsx(_components.code,{children:`Empty file`})]})]})]})]})]})}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":"Files","description":"List, move, rename, and read file content","href":"/api-reference/storage/files"}}}},"mdxExtracts":{"tableOfContents":[{"title":"List Files","slug":"list-files","depth":2,"children":[]},{"title":"Get File Content","slug":"get-file-content","depth":2,"children":[]},{"title":"Move or Rename File","slug":"move-or-rename-file","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://suite.sundaypyjamas.com/api/v1/workspaces/ws_123/storage?type=documents\u0026#x26;limit=20\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer spj_ai_your_api_key_here\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"file\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"file_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"filename\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"report.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"path\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"/archive/report.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"sundaypyjamas","siteName":"SundayPyjamas AI Suite","title":"Files - SundayPyjamas AI Suite","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-09T19:52:30.004Z","originalFileLocation":"api-reference/storage/files.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=\"List, move, rename, and read file content\">\u003cmeta data-mint-head name=\"application-name\" content=\"SundayPyjamas AI Suite\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_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/sundaypyjamas/wQgQ3BV84t2A39dR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Files - SundayPyjamas AI Suite\">\u003cmeta data-mint-head property=\"og:description\" content=\"List, move, rename, and read file content\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SundayPyjamas AI Suite\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sundaypyjamas.com/api-reference/storage/files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sundaypyjamas.mintlify.site/_mintlify/api/og/v2?division=Storage\u0026amp;title=Files\u0026amp;description=List%2C+move%2C+rename%2C+and+read+file+content\u0026amp;theme=fa3b1ef4a5a7bb21408bdce7\u0026amp;signature=46b243954442610426552d59c796f5175e1951af498942b081477911425f8647\">\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=\"Files - SundayPyjamas AI Suite\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List, move, rename, and read file content\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sundaypyjamas.mintlify.site/_mintlify/api/og/v2?division=Storage\u0026amp;title=Files\u0026amp;description=List%2C+move%2C+rename%2C+and+read+file+content\u0026amp;theme=fa3b1ef4a5a7bb21408bdce7\u0026amp;signature=46b243954442610426552d59c796f5175e1951af498942b081477911425f8647\">\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/sundaypyjamas/wQgQ3BV84t2A39dR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SundayPyjamas AI Suite\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#52525B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sundaypyjamas.com/api-reference/storage/files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/storage/files.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sundaypyjamas.com/#organization\",\"name\":\"SundayPyjamas AI Suite\",\"url\":\"https://docs.sundaypyjamas.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sundaypyjamas/mPtTCdYgcCjb2V3-/logo/dark.svg?fit=max\u0026auto=format\u0026n=mPtTCdYgcCjb2V3-\u0026q=85\u0026s=e5e3e1e59634cc40750fcd055681aa89\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sundaypyjamas.com#website\",\"name\":\"SundayPyjamas AI Suite\",\"url\":\"https://docs.sundaypyjamas.com\",\"publisher\":{\"@id\":\"https://docs.sundaypyjamas.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sundaypyjamas.com/api-reference/storage/files#webpage\",\"url\":\"https://docs.sundaypyjamas.com/api-reference/storage/files\",\"name\":\"Files\",\"description\":\"List, move, rename, and read file content\",\"dateModified\":\"2026-07-09T19:52:30.004Z\",\"isPartOf\":{\"@id\":\"https://docs.sundaypyjamas.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sundaypyjamas.com/api-reference/storage/files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sundaypyjamas.com/api-reference/storage/files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Storage\",\"item\":\"https://docs.sundaypyjamas.com/api-reference/storage/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Files\",\"item\":\"https://docs.sundaypyjamas.com/api-reference/storage/files\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sundaypyjamas.com/api-reference/storage/files#article\",\"headline\":\"Files\",\"name\":\"Files\",\"description\":\"List, move, rename, and read file content\",\"url\":\"https://docs.sundaypyjamas.com/api-reference/storage/files\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sundaypyjamas.com/api-reference/storage/files#webpage\"},\"dateModified\":\"2026-07-09T19:52:30.004Z\",\"publisher\":{\"@id\":\"https://docs.sundaypyjamas.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sundaypyjamas.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SundayPyjamas AI Suite\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SundayPyjamas AI Suite\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/storage/files.md","siteName":"SundayPyjamas AI Suite","nav":{"global":{"anchors":[{"anchor":"API Platform","icon":"gauge-high","href":"https://suite.sundaypyjamas.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/sundaypyjamas"}]},"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/user-guide/welcome"}]},{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Chat","pages":[{"title":"Chat API Reference","href":"/api-reference/chat/introduction"},{"title":"POST /chat","api":"POST https://suite.sundaypyjamas.com/api/v1/chat","href":"/api-reference/chat/post-chat"}]},{"group":"Agents","pages":[{"title":"Agents API","href":"/api-reference/agents/introduction"},{"title":"Manage Agents","href":"/api-reference/agents/agents"},{"title":"Runs","href":"/api-reference/agents/runs"},{"title":"Sessions","href":"/api-reference/agents/sessions"},{"title":"Messaging \u0026 Events","href":"/api-reference/agents/messaging"}]},{"group":"RAG","pages":[{"title":"RAG API","href":"/api-reference/rag/introduction"},{"title":"POST /rag/upload","api":"POST https://suite.sundaypyjamas.com/api/v1/rag/upload","href":"/api-reference/rag/upload"},{"title":"POST /rag/query","api":"POST https://suite.sundaypyjamas.com/api/v1/rag/query","href":"/api-reference/rag/query"}]},{"group":"Artifacts","pages":[{"title":"Artifacts API","href":"/api-reference/artifacts/introduction"},{"title":"POST /artifacts/generate","api":"POST https://suite.sundaypyjamas.com/api/v1/artifacts/generate","href":"/api-reference/artifacts/generate"}]},{"group":"Image","pages":[{"title":"Image API","href":"/api-reference/image/introduction"},{"title":"POST /image","api":"POST https://suite.sundaypyjamas.com/api/v1/image","href":"/api-reference/image/generate"}]},{"group":"Vector Store","pages":[{"title":"Vector Store API","href":"/api-reference/vector-store/introduction"},{"title":"Indexes","href":"/api-reference/vector-store/indexes"},{"title":"Vectors","href":"/api-reference/vector-store/vectors"}]},{"group":"Apps","pages":[{"title":"Apps API","href":"/api-reference/apps/introduction"},{"title":"Chat","href":"/api-reference/apps/chat"},{"title":"Memory","href":"/api-reference/apps/memory"},{"title":"Usage","href":"/api-reference/apps/usage"}]},{"group":"Storage","pages":[{"title":"Storage API","description":"Browse, organize, and import files in a workspace's file tree","href":"/api-reference/storage/introduction"},{"title":"Files","href":"/api-reference/storage/files"},{"title":"Folders \u0026 Tree","description":"Create and rename folders, and browse the folder tree","href":"/api-reference/storage/folders"},{"title":"Import","href":"/api-reference/storage/import"}]},{"group":"Integrations","pages":[{"title":"Integrations API","href":"/api-reference/integrations/introduction"},{"title":"Integration Packs","href":"/api-reference/integrations/integration-packs"},{"title":"MCP Connectors","href":"/api-reference/integrations/mcp-connectors"}]},{"group":"Insights","pages":[{"title":"Insights API","href":"/api-reference/insights/introduction"},{"title":"Conversations","href":"/api-reference/insights/conversations"}]},{"group":"Platform Tools","pages":[{"title":"Platform Tools API","href":"/api-reference/platform-tools/introduction"}]}]}]},"basePath":"","title":"Files - SundayPyjamas AI Suite","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["2b790eda92"],"chunks":["ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","utils-D8TRpdk7.js","utils-Dg59J__o.js","isEqual-BObTuQrO.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","snippetPresets-CXnm-WO6.js","style-to-object-BY3JEAdk.js","cloneDeep-DeMZ-lcM.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-CfL-UuDS.js"]}