{
"error": "User does not have access to environment env123"
}
Management API > Storage
Upload Public File
API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Documentation - Feedbackflow","colors":{"primary":"#3145ea","light":"#3145ea","dark":"#3145ea"},"favicon":"/images/favicon.svg","logo":{"light":"https://mintcdn.com/fiscalo/M-oZ6DwX5VooHCX2/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=M-oZ6DwX5VooHCX2\u0026q=85\u0026s=8cdc2574604ecc3e50eaf232fdaf8653","dark":"https://mintcdn.com/fiscalo/M-oZ6DwX5VooHCX2/images/logo-light.svg?fit=max\u0026auto=format\u0026n=M-oZ6DwX5VooHCX2\u0026q=85\u0026s=b7fd18285b2da084fb7123402e10adf4"},"navbar":{"links":[{"label":"Support","href":"support@feedbackflowhq.com"}],"primary":{"type":"button","label":"Go to app","href":"https://app.feedbackflowhq.com"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fiscalo","hasAudioNarration":false,"actualSubdomain":"fiscalo","customDomains":["docs.feedbackflowhq.com"],"gitSource":{"type":"github","owner":"ezehuche","repo":"fiscalo-latest","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c5574d01e0d38c5e780e","collectionId":"650bdf31-1fb5-4555-a55e-516f59bdc88f","schemaVersion":"v2"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6ae9212f516b29d951a197bb:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"XM \u0026 Surveys","count":50},{"language":"default","tag":"Surveys","count":49},{"language":"default","tag":"API v1 Reference","count":46},{"language":"default","tag":"Question Types","count":15},{"language":"default","tag":"General Features","count":14},{"language":"default","tag":"Features","count":12},{"language":"default","tag":"Link Surveys","count":8},{"language":"default","tag":"Website \u0026 App Surveys","count":7},{"language":"default","tag":"Management API > Survey","count":6},{"language":"default","tag":"Integrations","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/management-api->-storage/upload-public-file","slug":"/api-reference/management-api->-storage/upload-public-file","pageMetadata":{"title":"Upload Public File","description":"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/storage","href":"/api-reference/management-api->-storage/upload-public-file","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: \"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\"\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":"Upload Public File","description":"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/storage","href":"/api-reference/management-api->-storage/upload-public-file","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.","parameters":["5b8ca31f-6528-4a1b-9040-965e1c1f4d9b"],"requestBody":"cb19e316-595e-4bae-883a-ec4f48822a15","responses":{"200":"67d4cac4-72ac-4440-9094-ea075e1fd6d9","400":"bfecfe18-3187-4192-a7ad-103a66141803","401":"237dd170-aa36-4a08-a567-937d6a7298dd","403":"21a177d2-d386-4b4d-8efa-326b9f03bcec"},"summary":"Upload Public File","tags":["Management API > Storage"],"method":"post","type":"path","servers":["07032be7-a36f-4478-8617-cfd83a1f1f24"],"security":[],"path":"/api/v1/management/storage","baseUrlOptions":["http://{{baseurl}}"],"title":"Upload Public File","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5b8ca31f-6528-4a1b-9040-965e1c1f4d9b":{"example":"{{apiKey}}","in":"header","name":"x-api-key","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"example":{"allowedFileExtensions":["png","jpg","jpeg"],"environmentId":"env123","fileName":"profile.png","fileType":"image/png"},"schema":{"properties":{"environmentId":{"description":"The ID of the environment.","type":"string","isRequired":true,"uniqueKey":"environmentId","typeLabel":"string"},"fileName":{"description":"The name of the file to be uploaded.","type":"string","isRequired":true,"uniqueKey":"fileName","typeLabel":"string"},"fileType":{"description":"The MIME type of the file.","type":"string","isRequired":true,"uniqueKey":"fileType","typeLabel":"string"},"allowedFileExtensions":{"description":"Optional. List of allowed file extensions.","items":{"type":"string","uniqueKey":"allowedFileExtensions.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"allowedFileExtensions","typeLabel":"string[]"}},"required":["fileName","fileType","environmentId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"allowedFileExtensions":["png","jpg","jpeg"],"environmentId":"env123","fileName":"profile.png","fileType":"image/png"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"67d4cac4-72ac-4440-9094-ea075e1fd6d9":{"content":{"application/json":{"example":{"data":{"fileUrl":"http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile--fid--abc123.png","localUrl":"http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile.png","signedUrl":"http://localhost:3000/api/v1/client/cm1ubebtj000614kqe4hs3c67/storage/public","updatedFileName":"profile--fid--abc123.png"}},"schema":{"properties":{"data":{"properties":{"fileUrl":{"description":"URL where the uploaded file can be accessed.","type":"string","uniqueKey":"data.fileUrl","typeLabel":"string"},"localUrl":{"description":"URL for uploading the file to local storage.","type":"string","uniqueKey":"data.localUrl","typeLabel":"string"},"signedUrl":{"description":"Signed URL for uploading the file to S3.","type":"string","uniqueKey":"data.signedUrl","typeLabel":"string"},"updatedFileName":{"description":"The updated file name after processing.","type":"string","uniqueKey":"data.updatedFileName","typeLabel":"string"}},"type":"object","uniqueKey":"data","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"fileUrl":"http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile--fid--abc123.png","localUrl":"http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile.png","signedUrl":"http://localhost:3000/api/v1/client/cm1ubebtj000614kqe4hs3c67/storage/public","updatedFileName":"profile--fid--abc123.png"}}}},"exampleType":"examples"}},"description":"OK - Returns the signed URL, updated file name, and file URL.","exampleType":"examples"},"bfecfe18-3187-4192-a7ad-103a66141803":{"content":{"application/json":{"example":{"error":"fileName is required"},"schema":{"properties":{"error":{"description":"Detailed error message.","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"fileName is required"}}},"exampleType":"examples"}},"description":"Bad Request - Missing required fields or invalid file extension.","exampleType":"examples"},"237dd170-aa36-4a08-a567-937d6a7298dd":{"content":{"application/json":{"example":{"error":"Not authenticated"},"schema":{"properties":{"error":{"description":"Detailed error message.","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Not authenticated"}}},"exampleType":"examples"}},"description":"Unauthorized - Authentication failed or user not logged in.","exampleType":"examples"},"21a177d2-d386-4b4d-8efa-326b9f03bcec":{"content":{"application/json":{"example":{"error":"User does not have access to environment env123"},"schema":{"properties":{"error":{"description":"Detailed error message.","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"User does not have access to environment env123"}}},"exampleType":"examples"}},"description":"Forbidden - User does not have access to the specified environment.","exampleType":"examples"}},"security":{},"servers":{"07032be7-a36f-4478-8617-cfd83a1f1f24":{"url":"http://{{baseurl}}","variables":{"baseurl":{"default":"localhost:3000"}}}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"fiscalo","siteName":"Documentation - Feedbackflow","title":"Upload Public File - Documentation - Feedbackflow","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T02:47:51.137Z","originalFileLocation":"api-reference/management-api->-storage/upload-public-file.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=\"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentation - Feedbackflow\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_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/fiscalo/ewbFilOtFfOcG9VI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload Public File - Documentation - Feedbackflow\">\u003cmeta data-mint-head property=\"og:description\" content=\"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentation - Feedbackflow\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.feedbackflowhq.com/api-reference/management-api-\u0026gt;-storage/upload-public-file\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fiscalo.mintlify.app/_mintlify/api/og/v2?division=Management+API+%3E+Storage\u0026amp;title=Upload+Public+File\u0026amp;description=API+endpoint+for+uploading+public+files.+Uploaded+files+are+public+and+accessible+by+anyone.+This+endpoint+requires+authentication.+It+accepts+a+JSON+body+with+\u0026amp;theme=f9998d6030a495191786d41b\u0026amp;signature=79ca02b26cac4ee4bd54e819e452f2f23aff00308db76ee1143976829778796f\">\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=\"Upload Public File - Documentation - Feedbackflow\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fiscalo.mintlify.app/_mintlify/api/og/v2?division=Management+API+%3E+Storage\u0026amp;title=Upload+Public+File\u0026amp;description=API+endpoint+for+uploading+public+files.+Uploaded+files+are+public+and+accessible+by+anyone.+This+endpoint+requires+authentication.+It+accepts+a+JSON+body+with+\u0026amp;theme=f9998d6030a495191786d41b\u0026amp;signature=79ca02b26cac4ee4bd54e819e452f2f23aff00308db76ee1143976829778796f\">\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/fiscalo/ewbFilOtFfOcG9VI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentation - Feedbackflow\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3145ea\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.feedbackflowhq.com/api-reference/management-api-\u0026gt;-storage/upload-public-file\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/management-api-%3E-storage/upload-public-file.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.feedbackflowhq.com/#organization\",\"name\":\"Documentation - Feedbackflow\",\"url\":\"https://docs.feedbackflowhq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fiscalo/M-oZ6DwX5VooHCX2/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=M-oZ6DwX5VooHCX2\u0026q=85\u0026s=8cdc2574604ecc3e50eaf232fdaf8653\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.feedbackflowhq.com#website\",\"name\":\"Documentation - Feedbackflow\",\"url\":\"https://docs.feedbackflowhq.com\",\"publisher\":{\"@id\":\"https://docs.feedbackflowhq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file#webpage\",\"url\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file\",\"name\":\"Upload Public File\",\"description\":\"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\",\"dateModified\":\"2026-01-07T02:47:51.137Z\",\"isPartOf\":{\"@id\":\"https://docs.feedbackflowhq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentation - Feedbackflow\",\"item\":\"https://docs.feedbackflowhq.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Public File\",\"item\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file#apireference\",\"headline\":\"Upload Public File\",\"name\":\"Upload Public File\",\"description\":\"API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3 along with a local upload URL.\",\"url\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file\",\"mainEntityOfPage\":{\"@id\":\"https://docs.feedbackflowhq.com/api-reference/management-api-%3E-storage/upload-public-file#webpage\"},\"dateModified\":\"2026-01-07T02:47:51.137Z\",\"publisher\":{\"@id\":\"https://docs.feedbackflowhq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.feedbackflowhq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentation - Feedbackflow\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Documentation - Feedbackflow","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview/introduction"}]},{"tab":"XM \u0026 Surveys","pages":[{"title":"XM \u0026 Surveys","href":"/xm-and-surveys/overview"}]},{"tab":"API v1 Reference","groups":[{"group":"API v1 Documentation","pages":[{"title":"REST API","icon":"code","href":"/api-reference/rest-api"},{"title":"Generate API Key","icon":"key","href":"/api-reference/generate-key"},{"title":"Test API Key","icon":"message-check","href":"/api-reference/test-key"}]},{"group":"Client API > Response","pages":[{"title":"Update Response","deprecated":null,"version":null,"openapi":"api-reference/openapi.json put /api/v1/client/responses/{responseId}","href":"/api-reference/client-api->-response/update-response"},{"title":"Create Response","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/client/{environmentId}/responses","href":"/api-reference/client-api->-response/create-response"}]},{"group":"Client API > Contacts","pages":[{"title":"Update Contact (Attributes)","deprecated":null,"version":null,"openapi":"api-reference/openapi.json put /api/v1/client/{environmentId}/contacts/{userId}/attributes","href":"/api-reference/client-api->-contacts/update-contact-attributes"},{"title":"Get Contact State","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/client/{environmentId}/identify/contacts/{userId}","href":"/api-reference/client-api->-contacts/get-contact-state"}]},{"group":"Client API > Display","pages":[{"title":"Create Display","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/client/{environmentId}/displays","href":"/api-reference/client-api->-display/create-display"},{"title":"Update Display","deprecated":null,"version":null,"openapi":"api-reference/openapi.json put /api/v1/client/{environmentId}/displays/{displayId}","href":"/api-reference/client-api->-display/update-display"}]},{"group":"Client API > Environment","pages":[{"title":"Get Environment State","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/client/{environmentId}/environment","href":"/api-reference/client-api->-environment/get-environment-state"}]},{"group":"Client API > User","pages":[{"title":"Create or Identify User","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/client/{environmentId}/user","href":"/api-reference/client-api->-user/create-or-identify-user"}]},{"group":"Management API > Action Class","pages":[{"title":"Get All Action Classes","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/action-classes","href":"/api-reference/management-api->-action-class/get-all-action-classes"},{"title":"Create Action Class","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/action-classes","href":"/api-reference/management-api->-action-class/create-action-class"},{"title":"Get Action Class by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/action-classes/{actionClassId}","href":"/api-reference/management-api->-action-class/get-action-class-by-id"},{"title":"Delete Action Class","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/management/action-classes/{actionClassId}","href":"/api-reference/management-api->-action-class/delete-action-class"}]},{"group":"Management API > Attribute Class","pages":[{"title":"Get All Attribute Classes","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/attribute-classes","href":"/api-reference/management-api->-attribute-class/get-all-attribute-classes"},{"title":"Create Attribute Class","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/attribute-classes","href":"/api-reference/management-api->-attribute-class/create-attribute-class"},{"title":"Get Attribute Class by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/attribute-classes/{attributeClassId}","href":"/api-reference/management-api->-attribute-class/get-attribute-class-by-id"},{"title":"Delete Attribute Class","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/management/attribute-classes/{attributeClassId}","href":"/api-reference/management-api->-attribute-class/delete-attribute-class"}]},{"group":"Management API > Contact Attribute Keys","pages":[{"title":"Get All Contact Attribute Keys","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/contact-attribute-keys","href":"/api-reference/management-api->-contact-attribute-keys/get-all-contact-attribute-keys"},{"title":"Get Contact Attribute Key by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/contact-attribute-keys/{contactAttributeKeyId}","href":"/api-reference/management-api->-contact-attribute-keys/get-contact-attribute-key-by-id"}]},{"group":"Management API > Contact Attributes","pages":[{"title":"Get All Contact Attributes","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/contact-attributes","href":"/api-reference/management-api->-contact-attributes/get-all-contact-attributes"}]},{"group":"Management API > Contacts","pages":[{"title":"Get All Contacts","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/contacts","href":"/api-reference/management-api->-contacts/get-all-contacts"},{"title":"Get Contact by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/contacts/{contactId}","href":"/api-reference/management-api->-contacts/get-contact-by-id"}]},{"group":"Management API > Me","pages":[{"title":"Me","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/me","href":"/api-reference/management-api->-me/me"}]},{"group":"Management API > People","pages":[{"title":"Get All Persons","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/people","href":"/api-reference/management-api->-people/get-all-persons"},{"title":"Get Person by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/people/{personId}","href":"/api-reference/management-api->-people/get-person-by-id"},{"title":"Delete Person","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/management/people/{personId}","href":"/api-reference/management-api->-people/delete-person"}]},{"group":"Management API > Response","pages":[{"title":"Get Survey Responses","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/responses","href":"/api-reference/management-api->-response/get-survey-responses"},{"title":"Create Response","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/responses","href":"/api-reference/management-api->-response/create-response"},{"title":"Get Response by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/responses/{responseId}","href":"/api-reference/management-api->-response/get-response-by-id"},{"title":"Update Response","deprecated":null,"version":null,"openapi":"api-reference/openapi.json put /api/v1/management/responses/{responseId}","href":"/api-reference/management-api->-response/update-response"},{"title":"Delete Response","description":"Delete a response with its ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/management/responses/{responseId}","href":"/api-reference/management-api->-response/delete-response"}]},{"group":"Management API > Storage","pages":[{"title":"Upload Public File","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/storage","href":"/api-reference/management-api->-storage/upload-public-file"},{"title":"Upload Public File to Local Storage","description":"Management API endpoint for uploading public files to local storage. This endpoint requires authentication. File metadata is provided via headers (X-File-Type, X-File-Name, X-Environment-ID, X-Signature, X-UUID, X-Timestamp) and the file is provided as a multipart/form-data file field named \"file\". The \"Content-Type\" header must be set to a valid MIME type.","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/storage/local","href":"/api-reference/management-api->-storage/upload-public-file-to-local-storage"}]},{"group":"Management API > Survey","pages":[{"title":"Get All Surveys","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/surveys","href":"/api-reference/management-api->-survey/get-all-surveys"},{"title":"Create Survey","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/management/surveys","href":"/api-reference/management-api->-survey/create-survey"},{"title":"Get Survey by ID","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/surveys/{surveyId}","href":"/api-reference/management-api->-survey/get-survey-by-id"},{"title":"Update Survey","deprecated":null,"version":null,"openapi":"api-reference/openapi.json put /api/v1/management/surveys/{surveyId}","href":"/api-reference/management-api->-survey/update-survey"},{"title":"Delete Survey","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/management/surveys/{surveyId}","href":"/api-reference/management-api->-survey/delete-survey"},{"title":"Get SingleUse Links","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/management/surveys/{surveyId}/singleUseIds","href":"/api-reference/management-api->-survey/get-singleuse-links"}]},{"group":"Management API > Webhook","pages":[{"title":"Get All Webhooks","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/webhooks","href":"/api-reference/management-api->-webhook/get-all-webhooks"},{"title":"Create Webhook","deprecated":null,"version":null,"openapi":"api-reference/openapi.json post /api/v1/webhooks","href":"/api-reference/management-api->-webhook/create-webhook"},{"title":"Get Webhook","deprecated":null,"version":null,"openapi":"api-reference/openapi.json get /api/v1/webhooks/{webhookId}","href":"/api-reference/management-api->-webhook/get-webhook"},{"title":"Delete Webhook","deprecated":null,"version":null,"openapi":"api-reference/openapi.json delete /api/v1/webhooks/{webhookId}","href":"/api-reference/management-api->-webhook/delete-webhook"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Health Check","href":"/api-reference/health/health-check"}]}]}]},"basePath":"","title":"Upload Public File - Documentation - Feedbackflow","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}