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.
POST
Headers
Body
application/json
The ID of the environment.
The name of the file to be uploaded.
The MIME type of the file.
Optional. List of allowed file extensions.
Response
200
application/json
OK - Returns the signed URL, updated file name, and file URL.
Was this page helpful?