Upload Private File
API endpoint for uploading private files. Uploaded files are kept private so that only users with access to the specified environment can retrieve them. The endpoint validates the survey ID, file name, and file type from the request body, and returns a signed URL for S3 uploads along with a local upload URL.
POST
Authorizations
Use your Formbricks x-api-key to authenticate.
Path Parameters
The ID of the environment.
Body
application/json
The ID of the survey associated with the file.
The name of the file to be uploaded.
The MIME type of the file.
Response
200
application/json
OK - Returns the signed URL, signing data, updated file name, and file URL.
Was this page helpful?