Skip to main content
POST
/
api
/
v1
/
management
/
storage
{
  "data": {
    "fileUrl": "http://localhost:3000/storage/cm1ubebtj000614kqe4hs3c67/public/profile--fid--abc123.png",
    "presignedFields": {
      "Policy": "base64EncodedPolicy",
      "X-Amz-Algorithm": "AWS4-HMAC-SHA256",
      "X-Amz-Credential": "your-credential",
      "X-Amz-Date": "20250312T000000Z",
      "X-Amz-Signature": "your-signature",
      "key": "uploads/public/profile--fid--abc123.png"
    },
    "signedUrl": "https://s3.example.com/your-bucket",
    "updatedFileName": "profile--fid--abc123.png"
  }
}

Headers

x-api-key
string
required

Body

application/json
environmentId
string
required

The ID of the environment.

fileName
string
required

The name of the file to be uploaded.

fileType
string
required

The MIME type of the file.

allowedFileExtensions
string[]

Optional. List of allowed file extensions.

Response

OK - Returns the signed URL, presigned fields, updated file name, and file URL.

data
object
I